summaryrefslogtreecommitdiffstats
path: root/target-moxie/translate.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-09-18 12:53:09 -0700
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:32:25 -0600
commitccd5adddee208df7a4494d771503192c96fd1b71 (patch)
tree64c8239229907e0d592ff4d225c871340b5adc8f /target-moxie/translate.c
parent6b8b5330fe1d83d26b05388cdbada83270f21fd5 (diff)
downloadhqemu-ccd5adddee208df7a4494d771503192c96fd1b71.zip
hqemu-ccd5adddee208df7a4494d771503192c96fd1b71.tar.gz
tcg: Change tcg_global_mem_new_* to take a TCGv_ptr
Thus, use cpu_env as the parameter, not TCG_AREG0 directly. Update all uses in the translators. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-moxie/translate.c')
-rw-r--r--target-moxie/translate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-moxie/translate.c b/target-moxie/translate.c
index 04ab278..bc860a5 100644
--- a/target-moxie/translate.c
+++ b/target-moxie/translate.c
@@ -106,16 +106,16 @@ void moxie_translate_init(void)
return;
}
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
- cpu_pc = tcg_global_mem_new_i32(TCG_AREG0,
+ cpu_pc = tcg_global_mem_new_i32(cpu_env,
offsetof(CPUMoxieState, pc), "$pc");
for (i = 0; i < 16; i++)
- cpu_gregs[i] = tcg_global_mem_new_i32(TCG_AREG0,
+ cpu_gregs[i] = tcg_global_mem_new_i32(cpu_env,
offsetof(CPUMoxieState, gregs[i]),
gregnames[i]);
- cc_a = tcg_global_mem_new_i32(TCG_AREG0,
+ cc_a = tcg_global_mem_new_i32(cpu_env,
offsetof(CPUMoxieState, cc_a), "cc_a");
- cc_b = tcg_global_mem_new_i32(TCG_AREG0,
+ cc_b = tcg_global_mem_new_i32(cpu_env,
offsetof(CPUMoxieState, cc_b), "cc_b");
done_init = 1;
OpenPOWER on IntegriCloud