diff options
author | Richard Henderson <rth@twiddle.net> | 2013-09-18 12:53:09 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:32:25 -0600 |
commit | ccd5adddee208df7a4494d771503192c96fd1b71 (patch) | |
tree | 64c8239229907e0d592ff4d225c871340b5adc8f /target-tilegx/translate.c | |
parent | 6b8b5330fe1d83d26b05388cdbada83270f21fd5 (diff) | |
download | hqemu-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-tilegx/translate.c')
-rw-r--r-- | target-tilegx/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c index a5bb8d4..7073aba 100644 --- a/target-tilegx/translate.c +++ b/target-tilegx/translate.c @@ -2442,9 +2442,9 @@ void tilegx_tcg_init(void) int i; cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); - cpu_pc = tcg_global_mem_new_i64(TCG_AREG0, offsetof(CPUTLGState, pc), "pc"); + cpu_pc = tcg_global_mem_new_i64(cpu_env, offsetof(CPUTLGState, pc), "pc"); for (i = 0; i < TILEGX_R_COUNT; i++) { - cpu_regs[i] = tcg_global_mem_new_i64(TCG_AREG0, + cpu_regs[i] = tcg_global_mem_new_i64(cpu_env, offsetof(CPUTLGState, regs[i]), reg_names[i]); } |