--- SheepShaver/src/emul_op.cpp 2004/05/15 16:36:41 1.9 +++ SheepShaver/src/emul_op.cpp 2004/05/31 11:00:13 1.12 @@ -288,13 +288,15 @@ void EmulOp(M68kRegisters *r, uint32 pc, MacOSUtilReset(); AudioReset(); #if 0 - printf("DR activated\n"); + // Enable DR emulator + D(bug("DR activated\n")); WriteMacInt32(KernelDataAddr + 0x17a0, 3); // Prepare for DR emulator activation WriteMacInt32(KernelDataAddr + 0x17c0, DR_CACHE_BASE); WriteMacInt32(KernelDataAddr + 0x17c4, DR_CACHE_SIZE); - WriteMacInt32(KernelDataAddr + 0x1b00, DR_CACHE_BASE + 0x10000); - memcpy((void *)(DR_CACHE_BASE + 0x10000), (void *)(ROM_BASE + 0x370000), 0x10000); - clear_caches((void *)(DR_CACHE_BASE + 0x10000), 0x10000, B_INVALIDATE_ICACHE | B_FLUSH_DCACHE); + WriteMacInt32(KernelDataAddr + 0x1b04, DR_CACHE_BASE); + WriteMacInt32(KernelDataAddr + 0x1b00, DR_EMULATOR_BASE); + memcpy((void *)DR_EMULATOR_BASE, (void *)(ROM_BASE + 0x370000), DR_EMULATOR_SIZE); + MakeExecutable(0, (void *)DR_EMULATOR_BASE, DR_EMULATOR_SIZE); #endif break;