Changeset 24241cf in mainline for arch/mips/src/cpu/cpu.c
- Timestamp:
- 2005-09-10T17:30:56Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1493d9
- Parents:
- 9060bd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/src/cpu/cpu.c
r9060bd1 r24241cf 78 78 { "Sony", "R3000" }, /* 0x21 */ 79 79 { "Toshiba", "R3000" }, /* 0x22 */ 80 { "NKK", "R3000" } /* 0x23 */ 80 { "NKK", "R3000" }, /* 0x23 */ 81 { NULL, NULL } 81 82 }; 82 83 … … 85 86 {"Invalid","Invalid"}, /* 0x81 */ 86 87 {"Invalid","Invalid"}, /* 0x82 */ 87 {"MIPS","4Km & 4Kp"} /* 0x83 */ 88 {"MIPS","4Km & 4Kp"}, /* 0x83 */ 89 { NULL, NULL} 88 90 }; 89 91 … … 101 103 { 102 104 struct data_t *data; 105 int i; 103 106 104 107 if (m->arch.imp_num & 0x80) { 108 /* Count records */ 109 for (i=0;imp_data80[i].vendor;i++) 110 ; 111 if (m->arch.imp_num & 0x7f >= i) { 112 printf("imp=%d\n",m->arch.imp_num); 113 return; 114 } 105 115 data = &imp_data80[m->arch.imp_num & 0x7f]; 106 } else 116 } else { 117 for (i=0;imp_data[i].vendor;i++) 118 ; 119 if (m->arch.imp_num >= i) { 120 printf("imp=%d\n",m->arch.imp_num); 121 return; 122 } 107 123 data = &imp_data[m->arch.imp_num]; 124 } 108 125 109 126 printf("cpu%d: %s %s (rev=%d.%d, imp=%d)\n",
Note:
See TracChangeset
for help on using the changeset viewer.