Set mmu type according to cpu type when gestalt() says noMMU

This commit is contained in:
Laurent Vivier 2004-06-02 21:11:21 +00:00
parent 8c80180a73
commit 3fb94f986f

View File

@ -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)