Revision 4c823cff hw/ppc_chrp.c
b/hw/ppc_chrp.c | ||
---|---|---|
98 | 98 |
register_savevm("cpu", 0, 3, cpu_save, cpu_load, env); |
99 | 99 |
envs[i] = env; |
100 | 100 |
} |
101 |
if (env->nip < 0xFFF80000) { |
|
102 |
/* Special test for PowerPC 601: |
|
103 |
* the boot vector is at 0xFFF00100, then we need a 1MB BIOS. |
|
104 |
* But the NVRAM is located at 0xFFF04000... |
|
105 |
*/ |
|
106 |
cpu_abort(env, "Mac99 hardware can not handle 1 MB BIOS\n"); |
|
107 |
} |
|
101 | 108 |
|
102 | 109 |
/* allocate RAM */ |
103 | 110 |
cpu_register_physical_memory(0, ram_size, IO_MEM_RAM); |
... | ... | |
113 | 120 |
exit(1); |
114 | 121 |
} |
115 | 122 |
bios_size = (bios_size + 0xfff) & ~0xfff; |
123 |
if (bios_size > 0x00080000) { |
|
124 |
/* As the NVRAM is located at 0xFFF04000, we cannot use 1 MB BIOSes */ |
|
125 |
cpu_abort(env, "Mac99 hardware can not handle 1 MB BIOS\n"); |
|
126 |
} |
|
116 | 127 |
cpu_register_physical_memory((uint32_t)(-bios_size), |
117 | 128 |
bios_size, bios_offset | IO_MEM_ROM); |
118 | 129 |
|
Also available in: Unified diff