diff options
author | Richard Henderson | 2013-09-18 21:53:09 +0200 |
---|---|---|
committer | Richard Henderson | 2016-02-09 00:19:32 +0100 |
commit | e1ccc05444676b92c63708096e36582be27fbee1 (patch) | |
tree | 8a9d3260acc2e260157f602c3b7acf16b171bb4f /target-unicore32/translate.c | |
parent | tcg: Remove lingering references to gen_opc_buf (diff) | |
download | qemu-e1ccc05444676b92c63708096e36582be27fbee1.tar.gz qemu-e1ccc05444676b92c63708096e36582be27fbee1.tar.xz qemu-e1ccc05444676b92c63708096e36582be27fbee1.zip |
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-unicore32/translate.c')
-rw-r--r-- | target-unicore32/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index ec2cc13eb6..1dd086d11b 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c @@ -71,7 +71,7 @@ void uc32_translate_init(void) cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); for (i = 0; i < 32; i++) { - cpu_R[i] = tcg_global_mem_new_i32(TCG_AREG0, + cpu_R[i] = tcg_global_mem_new_i32(cpu_env, offsetof(CPUUniCore32State, regs[i]), regnames[i]); } } |