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.71 by gbeauche, 2006-07-09T12:15:48Z vs.
Revision 1.73 by gbeauche, 2007-01-21T13:44:25Z

# Line 118 | Line 118 | static uint8 *emul_op_trampoline;
118   static uint8 *native_op_trampoline;
119   #endif
120  
121 // JIT Compiler enabled?
122 static inline bool enable_jit_p()
123 {
124        return PrefsFindBool("jit");
125 }
126
121  
122   /**
123   *              PowerPC emulator glue with special 'sheep' opcodes
# Line 181 | Line 175 | public:
175   };
176  
177   sheepshaver_cpu::sheepshaver_cpu()
184        : powerpc_cpu(enable_jit_p())
178   {
179          init_decoder();
180 +
181 + #if PPC_ENABLE_JIT
182 +        if (PrefsFindBool("jit"))
183 +                enable_jit();
184 + #endif
185   }
186  
187   void sheepshaver_cpu::init_decoder()
# Line 191 | Line 189 | void sheepshaver_cpu::init_decoder()
189          static const instr_info_t sheep_ii_table[] = {
190                  { "sheep",
191                    (execute_pmf)&sheepshaver_cpu::execute_sheep,
194                  NULL,
192                    PPC_I(SHEEP),
193                    D_form, 6, 0, CFLOW_JUMP | CFLOW_TRAP
194                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines