mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
Set mmu type according to cpu type when gestalt() says noMMU
This commit is contained in:
parent
8c80180a73
commit
3fb94f986f
@ -34,6 +34,21 @@ void arch_init()
|
||||
|
||||
Gestalt(gestaltMMUType, &mmu_type);
|
||||
|
||||
/* I'v got a 'noMMU' with my 68030, not cool... */
|
||||
|
||||
if (mmu_type == gestaltNoMMU)
|
||||
{
|
||||
switch(cpu_type)
|
||||
{
|
||||
case gestalt68030:
|
||||
mmu_type = gestalt68030MMU;
|
||||
break;
|
||||
case gestalt68040:
|
||||
mmu_type = gestalt68040MMU;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* get architecture type: powerPC or m68k */
|
||||
|
||||
if (Gestalt(gestaltSysArchitecture, &arch_type) != noErr)
|
||||
|
Loading…
Reference in New Issue
Block a user