Rev 1 | Rev 125 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 15 | ||
---|---|---|---|
Line 81... | Line 81... | ||
81 | { |
81 | { |
82 | } |
82 | } |
83 | 83 | ||
84 | void cpu_identify(void) |
84 | void cpu_identify(void) |
85 | { |
85 | { |
86 | the->cpu->arch.rev_num = cp0_prid_read() & 0xff; |
86 | CPU->arch.rev_num = cp0_prid_read() & 0xff; |
87 | the->cpu->arch.imp_num = (cp0_prid_read() >> 8) & 0xff; |
87 | CPU->arch.imp_num = (cp0_prid_read() >> 8) & 0xff; |
88 | } |
88 | } |
89 | 89 | ||
90 | void cpu_print_report(cpu_t *m) |
90 | void cpu_print_report(cpu_t *m) |
91 | { |
91 | { |
92 | printf("cpu%d: %s %s (rev=%d.%d, imp=%d)\n", |
92 | printf("cpu%d: %s %s (rev=%d.%d, imp=%d)\n", |