[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 29/34] target/riscv: Use translator_ld* for everything
From: |
Richard Henderson |
Subject: |
[PULL 29/34] target/riscv: Use translator_ld* for everything |
Date: |
Wed, 15 May 2024 09:52:42 +0200 |
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/riscv/translate.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/riscv/translate.c b/target/riscv/translate.c
index c999e942e1..2c27fd4ce1 100644
--- a/target/riscv/translate.c
+++ b/target/riscv/translate.c
@@ -20,7 +20,6 @@
#include "qemu/log.h"
#include "cpu.h"
#include "tcg/tcg-op.h"
-#include "exec/cpu_ldst.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h"
#include "exec/helper-gen.h"
@@ -1082,7 +1081,7 @@ static uint32_t opcode_at(DisasContextBase *dcbase,
target_ulong pc)
CPUState *cpu = ctx->cs;
CPURISCVState *env = cpu_env(cpu);
- return cpu_ldl_code(env, pc);
+ return translator_ldl(env, &ctx->base, pc);
}
/* Include insn module translation function */
@@ -1243,7 +1242,8 @@ static void riscv_tr_translate_insn(DisasContextBase
*dcbase, CPUState *cpu)
unsigned page_ofs = ctx->base.pc_next & ~TARGET_PAGE_MASK;
if (page_ofs > TARGET_PAGE_SIZE - MAX_INSN_LEN) {
- uint16_t next_insn = cpu_lduw_code(env, ctx->base.pc_next);
+ uint16_t next_insn =
+ translator_lduw(env, &ctx->base, ctx->base.pc_next);
int len = insn_len(next_insn);
if (!is_same_page(&ctx->base, ctx->base.pc_next + len - 1)) {
--
2.34.1
- [PULL 20/34] accel/tcg: Introduce translator_fake_ld, (continued)
- [PULL 20/34] accel/tcg: Introduce translator_fake_ld, Richard Henderson, 2024/05/15
- [PULL 21/34] target/s390x: Fix translator_fake_ld length, Richard Henderson, 2024/05/15
- [PULL 11/34] plugins: Use translator_st for qemu_plugin_insn_data, Richard Henderson, 2024/05/15
- [PULL 26/34] target/avr: Use translator_lduw, Richard Henderson, 2024/05/15
- [PULL 10/34] accel/tcg: Implement translator_st, Richard Henderson, 2024/05/15
- [PULL 25/34] target/i386: Use translator_ldub for everything, Richard Henderson, 2024/05/15
- [PULL 33/34] accel/tcg: Remove cpu_ldsb_code / cpu_ldsw_code, Richard Henderson, 2024/05/15
- [PULL 30/34] target/rx: Use translator_ld*, Richard Henderson, 2024/05/15
- [PULL 34/34] tcg/loongarch64: Fill out tcg_out_{ld, st} for vector regs, Richard Henderson, 2024/05/15
- [PULL 31/34] target/xtensa: Use translator_ldub in xtensa_insn_len, Richard Henderson, 2024/05/15
- [PULL 29/34] target/riscv: Use translator_ld* for everything,
Richard Henderson <=
- [PULL 22/34] target/s390x: Disassemble EXECUTEd instructions, Richard Henderson, 2024/05/15
- [PULL 24/34] target/microblaze: Use translator_ldl, Richard Henderson, 2024/05/15
- [PULL 32/34] target/s390x: Use translator_lduw in get_next_pc, Richard Henderson, 2024/05/15
- [PULL 28/34] target/cris: Use cris_fetch in translate_v10.c.inc, Richard Henderson, 2024/05/15
- Re: [PULL 00/34] tcg patch queue, Richard Henderson, 2024/05/15