mirror of
https://github.com/holub/mame
synced 2025-07-07 19:03:29 +03:00
Fixed incorrect assumption in HASHJMP that the base table for a mode
will always be allocated when a fixed mode is first used.
This commit is contained in:
parent
58c7f26d33
commit
10bca54ab0
@ -3165,7 +3165,7 @@ static x86code *op_hashjmp(drcbe_state *drcbe, x86code *dst, const drcuml_instru
|
||||
emit_mov_r64_m64(&dst, REG_RSP, MABS(drcbe, &drcbe->hashstacksave)); // mov rsp,[hashstacksave]
|
||||
|
||||
/* fixed mode cases */
|
||||
if (modep.type == DRCUML_PTYPE_IMMEDIATE)
|
||||
if (modep.type == DRCUML_PTYPE_IMMEDIATE && drcbe->hash->base[modep.value] != drcbe->hash->emptyl1)
|
||||
{
|
||||
/* a straight immediate jump is direct, though we need the PC in EAX in case of failure */
|
||||
if (pcp.type == DRCUML_PTYPE_IMMEDIATE)
|
||||
|
@ -3290,7 +3290,7 @@ static x86code *op_hashjmp(drcbe_state *drcbe, x86code *dst, const drcuml_instru
|
||||
emit_mov_r32_m32(&dst, REG_ESP, MABS(&drcbe->hashstacksave)); // mov esp,[hashstacksave]
|
||||
|
||||
/* fixed mode cases */
|
||||
if (modep.type == DRCUML_PTYPE_IMMEDIATE)
|
||||
if (modep.type == DRCUML_PTYPE_IMMEDIATE && drcbe->hash->base[modep.value] != drcbe->hash->emptyl1)
|
||||
{
|
||||
/* a straight immediate jump is direct, though we need the PC in EAX in case of failure */
|
||||
if (pcp.type == DRCUML_PTYPE_IMMEDIATE)
|
||||
|
Loading…
Reference in New Issue
Block a user