1751 |
|
*wp++ = htons(M68K_NOP); |
1752 |
|
*wp = htons(M68K_NOP); |
1753 |
|
|
1754 |
< |
// Gestalt PowerPC page size, RAM size (InitGestalt, via 0x25c) |
1754 |
> |
// Gestalt PowerPC page size, CPU type, RAM size (InitGestalt, via 0x25c) |
1755 |
|
static const uint8 page_size2_dat[] = {0x26, 0x79, 0x5f, 0xff, 0xef, 0xd8, 0x25, 0x6b, 0x00, 0x10, 0x00, 0x1e}; |
1756 |
|
if ((base = find_rom_data(0x50000, 0x70000, page_size2_dat, sizeof(page_size2_dat))) == 0) return false; |
1757 |
|
D(bug("page_size2 %08lx\n", base)); |
1761 |
|
*wp++ = htons(0x1000); |
1762 |
|
*wp++ = htons(0x001e); |
1763 |
|
*wp++ = htons(0x157c); // move.b #PVR,$1d(a2) |
1764 |
< |
*wp++ = htons(((PVR & 0x80000000) ? 0x10 : 0) | ((PVR >> 16) & 0xff)); |
1764 |
> |
uint32 cput = (PVR >> 16); |
1765 |
> |
if (cput == 0x7000) |
1766 |
> |
cput |= 0x20; |
1767 |
> |
else if (cput >= 0x8000 && cput <= 0x8002) |
1768 |
> |
cput |= 0x10; |
1769 |
> |
cput &= 0xff; |
1770 |
> |
*wp++ = htons(cput); |
1771 |
|
*wp++ = htons(0x001d); |
1772 |
|
*wp++ = htons(0x263c); // move.l #RAMSize,d3 |
1773 |
|
*wp++ = htons(RAMSize >> 16); |