Revision 7ee274c1 hw/mips_mipssim.c
b/hw/mips_mipssim.c | ||
---|---|---|
140 | 140 |
MemoryRegion *address_space_mem = get_system_memory(); |
141 | 141 |
MemoryRegion *ram = g_new(MemoryRegion, 1); |
142 | 142 |
MemoryRegion *bios = g_new(MemoryRegion, 1); |
143 |
MIPSCPU *cpu; |
|
143 | 144 |
CPUMIPSState *env; |
144 | 145 |
ResetData *reset_info; |
145 | 146 |
int bios_size; |
... | ... | |
152 | 153 |
cpu_model = "24Kf"; |
153 | 154 |
#endif |
154 | 155 |
} |
155 |
env = cpu_init(cpu_model);
|
|
156 |
if (!env) {
|
|
156 |
cpu = cpu_mips_init(cpu_model);
|
|
157 |
if (cpu == NULL) {
|
|
157 | 158 |
fprintf(stderr, "Unable to find CPU definition\n"); |
158 | 159 |
exit(1); |
159 | 160 |
} |
161 |
env = &cpu->env; |
|
162 |
|
|
160 | 163 |
reset_info = g_malloc0(sizeof(ResetData)); |
161 | 164 |
reset_info->env = env; |
162 | 165 |
reset_info->vector = env->active_tc.PC; |
Also available in: Unified diff