Use the env pointer in DisasContext.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/m68k/translate.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/target/m68k/translate.c b/target/m68k/translate.c
index a3452ace96..8a96b38682 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -843,8 +843,7 @@ static TCGv gen_load_mode(DisasContext *s, int mode, int reg0, int opsize,
return ret;
}
-static bool gen_store_mode(CPUM68KState *env, DisasContext *s,
- int mode, int reg0, int opsize,
+static bool gen_store_mode(DisasContext *s, int mode, int reg0, int opsize,
TCGv val, TCGv addr, int index)
{
TCGv reg;
@@ -1334,7 +1333,7 @@ static void gen_exit_tb(DisasContext *s)
#define DEST_EA(env, insn, opsize, val, addrp) \
do { \
TCGv *addrp_ = (addrp); \
- if (!gen_store_mode(env, s, extract32(insn, 3, 3), \
+ if (!gen_store_mode(s, extract32(insn, 3, 3), \
REG(insn, 0), opsize, val, \
addrp_ ? *addrp_ : NULL, IS_USER(s))) { \
gen_addr_fault(s); \
@@ -1703,7 +1702,7 @@ DISAS_INSN(abcd_mem)
bcd_add(dest, src);
- gen_store_mode(env, s, 4, REG(insn, 9), OS_BYTE, dest, addr, IS_USER(s));
+ gen_store_mode(s, 4, REG(insn, 9), OS_BYTE, dest, addr, IS_USER(s));
bcd_flags(dest);
}
@@ -1737,7 +1736,7 @@ DISAS_INSN(sbcd_mem)
bcd_sub(dest, src);
- gen_store_mode(env, s, 4, REG(insn, 9), OS_BYTE, dest, addr, IS_USER(s));
+ gen_store_mode(s, 4, REG(insn, 9), OS_BYTE, dest, addr, IS_USER(s));
bcd_flags(dest);
}
--
2.43.0