ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/emul_op.cpp
(Generate patch)

Comparing SheepShaver/src/emul_op.cpp (file contents):
Revision 1.11 by gbeauche, 2004-05-31T10:02:20Z vs.
Revision 1.12 by gbeauche, 2004-05-31T11:00:13Z

# Line 287 | Line 287 | void EmulOp(M68kRegisters *r, uint32 pc,
287                          TimerReset();
288                          MacOSUtilReset();
289                          AudioReset();
290 <
290 > #if 0
291                          // Enable DR emulator
292 <                        if (1) {
293 <                                D(bug("DR activated\n"));
294 <                                WriteMacInt32(KernelDataAddr + 0x17a0, 3);              // Prepare for DR emulator activation
295 <                                WriteMacInt32(KernelDataAddr + 0x17c0, DR_CACHE_BASE);
296 <                                WriteMacInt32(KernelDataAddr + 0x17c4, DR_CACHE_SIZE);
297 <                                WriteMacInt32(KernelDataAddr + 0x1b04, DR_CACHE_BASE);
298 <                                WriteMacInt32(KernelDataAddr + 0x1b00, DR_EMULATOR_BASE);
299 <                                memcpy((void *)DR_EMULATOR_BASE, (void *)(ROM_BASE + 0x370000), DR_EMULATOR_SIZE);
300 <                                MakeExecutable(0, (void *)DR_EMULATOR_BASE, DR_EMULATOR_SIZE);
301 <                        }
292 >                        D(bug("DR activated\n"));
293 >                        WriteMacInt32(KernelDataAddr + 0x17a0, 3);              // Prepare for DR emulator activation
294 >                        WriteMacInt32(KernelDataAddr + 0x17c0, DR_CACHE_BASE);
295 >                        WriteMacInt32(KernelDataAddr + 0x17c4, DR_CACHE_SIZE);
296 >                        WriteMacInt32(KernelDataAddr + 0x1b04, DR_CACHE_BASE);
297 >                        WriteMacInt32(KernelDataAddr + 0x1b00, DR_EMULATOR_BASE);
298 >                        memcpy((void *)DR_EMULATOR_BASE, (void *)(ROM_BASE + 0x370000), DR_EMULATOR_SIZE);
299 >                        MakeExecutable(0, (void *)DR_EMULATOR_BASE, DR_EMULATOR_SIZE);
300 > #endif
301                          break;
302  
303                  case OP_IRQ:                    // Level 1 interrupt

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines