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

Comparing SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp (file contents):
Revision 1.18 by gbeauche, 2003-11-24T23:45:41Z vs.
Revision 1.20 by gbeauche, 2003-12-03T10:52:49Z

# Line 93 | Line 93 | static KernelData * const kernel_data =
93   // SIGSEGV handler
94   static sigsegv_return_t sigsegv_handler(sigsegv_address_t, sigsegv_address_t);
95  
96 + // JIT Compiler enabled?
97 + static inline bool enable_jit_p()
98 + {
99 +        return PrefsFindBool("jit");
100 + }
101 +
102  
103   /**
104   *              PowerPC emulator glue with special 'sheep' opcodes
# Line 118 | Line 124 | public:
124          uint32 get_cr() const           { return cr().get(); }
125          void set_cr(uint32 v)           { cr().set(v); }
126  
121        // Execution loop
122        void execute(uint32 entry, bool enable_cache = false);
123
127          // Execute 68k routine
128          void execute_68k(uint32 entry, M68kRegisters *r);
129  
# Line 153 | Line 156 | public:
156   lazy_allocator< sheepshaver_cpu > allocator_helper< sheepshaver_cpu, lazy_allocator >::allocator;
157  
158   sheepshaver_cpu::sheepshaver_cpu()
159 <        : powerpc_cpu()
159 >        : powerpc_cpu(enable_jit_p())
160   {
161          init_decoder();
162   }
# Line 244 | Line 247 | void sheepshaver_cpu::execute_sheep(uint
247          }
248   }
249  
247 // Execution loop
248 void sheepshaver_cpu::execute(uint32 entry, bool enable_cache)
249 {
250        powerpc_cpu::execute(entry, enable_cache);
251 }
252
250   // Handle MacOS interrupt
251   void sheepshaver_cpu::interrupt(uint32 entry)
252   {
# Line 686 | Line 683 | void emul_ppc(uint32 entry)
683          current_cpu->start_log();
684   #endif
685          // start emulation loop and enable code translation or caching
686 <        current_cpu->execute(entry, true);
686 >        current_cpu->execute(entry);
687   }
688  
689   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines