diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2021-08-09 12:32:59 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-09-14 12:00:20 -0700 |
commit | 4e116893c6079b51efdc9e226be3f1a530f47f5e (patch) | |
tree | dd83c64b73a5a2da8e7eb51b18604f5888ee95a1 /include/exec | |
parent | 4c9af1ea1457782cf0adb293179335ef6de942aa (diff) | |
download | qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.zip qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.tar.gz qemu-4e116893c6079b51efdc9e226be3f1a530f47f5e.tar.bz2 |
accel/tcg: Add DisasContextBase argument to translator_ld*
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
[rth: Split out of a larger patch.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/translator.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/exec/translator.h b/include/exec/translator.h index d318803..6c054e8 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -157,7 +157,8 @@ bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest); #define GEN_TRANSLATOR_LD(fullname, type, load_fn, swap_fn) \ static inline type \ - fullname ## _swap(CPUArchState *env, abi_ptr pc, bool do_swap) \ + fullname ## _swap(CPUArchState *env, DisasContextBase *dcbase, \ + abi_ptr pc, bool do_swap) \ { \ type ret = load_fn(env, pc); \ if (do_swap) { \ @@ -166,10 +167,10 @@ bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest); plugin_insn_append(&ret, sizeof(ret)); \ return ret; \ } \ - \ - static inline type fullname(CPUArchState *env, abi_ptr pc) \ + static inline type fullname(CPUArchState *env, \ + DisasContextBase *dcbase, abi_ptr pc) \ { \ - return fullname ## _swap(env, pc, false); \ + return fullname ## _swap(env, dcbase, pc, false); \ } GEN_TRANSLATOR_LD(translator_ldub, uint8_t, cpu_ldub_code, /* no swap */) |