mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-01 15:06:12 +00:00
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:
parent
d9fc0aa5ad
commit
0a9a210c30
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user