Revision 4c823cff hw/ppc_oldworld.c
b/hw/ppc_oldworld.c | ||
---|---|---|
135 | 135 |
register_savevm("cpu", 0, 3, cpu_save, cpu_load, env); |
136 | 136 |
envs[i] = env; |
137 | 137 |
} |
138 |
if (env->nip < 0xFFF80000) { |
|
139 |
/* Special test for PowerPC 601: |
|
140 |
* the boot vector is at 0xFFF00100, then we need a 1MB BIOS. |
|
141 |
* But the NVRAM is located at 0xFFF04000... |
|
142 |
*/ |
|
143 |
cpu_abort(env, "G3BW Mac hardware can not handle 1 MB BIOS\n"); |
|
144 |
} |
|
138 | 145 |
|
139 | 146 |
/* allocate RAM */ |
140 | 147 |
cpu_register_physical_memory(0, ram_size, IO_MEM_RAM); |
... | ... | |
150 | 157 |
exit(1); |
151 | 158 |
} |
152 | 159 |
bios_size = (bios_size + 0xfff) & ~0xfff; |
160 |
if (bios_size > 0x00080000) { |
|
161 |
/* As the NVRAM is located at 0xFFF04000, we cannot use 1 MB BIOSes */ |
|
162 |
cpu_abort(env, "G3BW Mac hardware can not handle 1 MB BIOS\n"); |
|
163 |
} |
|
153 | 164 |
cpu_register_physical_memory((uint32_t)(-bios_size), |
154 | 165 |
bios_size, bios_offset | IO_MEM_ROM); |
155 | 166 |
|
Also available in: Unified diff