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 |
|
|
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); |
463 |
|
case OP_IDLE_TIME: |
464 |
|
// Sleep if no events pending |
465 |
|
if (ReadMacInt32(0x14c) == 0) |
466 |
< |
Delay_usec(16667); |
466 |
> |
idle_wait(); |
467 |
|
r->a[0] = ReadMacInt32(0x2b6); |
468 |
|
break; |
469 |
|
|
470 |
|
case OP_IDLE_TIME_2: |
471 |
|
// Sleep if no events pending |
472 |
|
if (ReadMacInt32(0x14c) == 0) |
473 |
< |
Delay_usec(16667); |
473 |
> |
idle_wait(); |
474 |
|
r->d[0] = (uint32)-2; |
475 |
|
break; |
476 |
|
|