Disable direct block chaining if DYNGEN_FAST_DISPATCH is not defined. Note

this is a workaround prior to enabling it on mips and the future JIT.
This commit is contained in:
gbeauche 2005-12-12 21:44:50 +00:00
parent d9fc0aa5ad
commit 0a9a210c30

View File

@ -51,8 +51,12 @@ static inline bool is_read_only_memory(uintptr addr)
} }
// Returns TRUE if we can directly generate a jump to the target block // Returns TRUE if we can directly generate a jump to the target block
// XXX mixing front-end and back-end conditions is not a very good idea...
static inline bool direct_chaining_possible(uint32 bpc, uint32 tpc) static inline bool direct_chaining_possible(uint32 bpc, uint32 tpc)
{ {
#ifndef DYNGEN_FAST_DISPATCH
return false;
#endif
return ((bpc ^ tpc) >> 12) == 0 || is_read_only_memory(tpc); return ((bpc ^ tpc) >> 12) == 0 || is_read_only_memory(tpc);
} }