mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-05 19:28:58 +00:00
Fix Kernel Data for Gossamer ROMs: PVR, CPUClockSpeed et al.
This commit is contained in:
parent
a79ecf38ef
commit
9b17e04150
@ -1034,6 +1034,20 @@ int main(int argc, char **argv)
|
|||||||
kernel_data->v[0xf64 >> 2] = htonl(CPUClockSpeed); // clock-frequency
|
kernel_data->v[0xf64 >> 2] = htonl(CPUClockSpeed); // clock-frequency
|
||||||
kernel_data->v[0xf68 >> 2] = htonl(BusClockSpeed); // bus-frequency
|
kernel_data->v[0xf68 >> 2] = htonl(BusClockSpeed); // bus-frequency
|
||||||
kernel_data->v[0xf6c >> 2] = htonl(TimebaseSpeed); // timebase-frequency
|
kernel_data->v[0xf6c >> 2] = htonl(TimebaseSpeed); // timebase-frequency
|
||||||
|
} else if (ROMType == ROMTYPE_GOSSAMER) {
|
||||||
|
kernel_data->v[0xc80 >> 2] = htonl(RAMSize);
|
||||||
|
kernel_data->v[0xc84 >> 2] = htonl(RAMSize);
|
||||||
|
kernel_data->v[0xc90 >> 2] = htonl(RAMSize);
|
||||||
|
kernel_data->v[0xc94 >> 2] = htonl(RAMSize);
|
||||||
|
kernel_data->v[0xc98 >> 2] = htonl(0x00010020);
|
||||||
|
kernel_data->v[0xc9c >> 2] = htonl(0x00200001);
|
||||||
|
kernel_data->v[0xca0 >> 2] = htonl(0x00010000);
|
||||||
|
kernel_data->v[0xcb0 >> 2] = htonl(RAMBase);
|
||||||
|
kernel_data->v[0xcb4 >> 2] = htonl(RAMSize);
|
||||||
|
kernel_data->v[0xf60 >> 2] = htonl(PVR);
|
||||||
|
kernel_data->v[0xf64 >> 2] = htonl(CPUClockSpeed); // clock-frequency
|
||||||
|
kernel_data->v[0xf68 >> 2] = htonl(BusClockSpeed); // bus-frequency
|
||||||
|
kernel_data->v[0xf6c >> 2] = htonl(TimebaseSpeed); // timebase-frequency
|
||||||
} else {
|
} else {
|
||||||
kernel_data->v[0xc80 >> 2] = htonl(RAMSize);
|
kernel_data->v[0xc80 >> 2] = htonl(RAMSize);
|
||||||
kernel_data->v[0xc84 >> 2] = htonl(RAMSize);
|
kernel_data->v[0xc84 >> 2] = htonl(RAMSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user