1 |
|
/* |
2 |
|
* emul_op.cpp - 68k opcodes for ROM patches |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
51 |
|
#include "debug.h" |
52 |
|
|
53 |
|
|
54 |
– |
#if __BEOS__ |
55 |
– |
#define PRECISE_TIMING 1 |
56 |
– |
#else |
57 |
– |
#define PRECISE_TIMING 0 |
58 |
– |
#endif |
59 |
– |
|
60 |
– |
|
54 |
|
// TVector of MakeExecutable |
55 |
|
static uint32 MakeExecutableTvec; |
56 |
|
|
252 |
|
InstallDrivers(); |
253 |
|
|
254 |
|
// Patch MakeExecutable() |
255 |
< |
MakeExecutableTvec = (uint32)FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable"); |
255 |
> |
MakeExecutableTvec = FindLibSymbol("\023PrivateInterfaceLib", "\016MakeExecutable"); |
256 |
|
D(bug("MakeExecutable TVECT at %08x\n", MakeExecutableTvec)); |
257 |
|
WriteMacInt32(MakeExecutableTvec, NativeFunction(NATIVE_MAKE_EXECUTABLE)); |
258 |
|
#if !EMULATED_PPC |
282 |
|
MacOSUtilReset(); |
283 |
|
AudioReset(); |
284 |
|
|
285 |
< |
// Enable DR emulator |
286 |
< |
if (PrefsFindBool("jit68k")) { |
285 |
> |
// Enable DR emulator (disabled for now) |
286 |
> |
if (PrefsFindBool("jit68k") && 0) { |
287 |
|
D(bug("DR activated\n")); |
288 |
|
WriteMacInt32(KernelDataAddr + 0x17a0, 3); // Prepare for DR emulator activation |
289 |
|
WriteMacInt32(KernelDataAddr + 0x17c0, DR_CACHE_BASE); |