summaryrefslogtreecommitdiffstats
path: root/target/riscv
diff options
context:
space:
mode:
authorEmilio G. Cota2018-12-08 03:11:44 +0100
committerAlex Bennée2019-10-28 16:12:38 +0100
commit4b9fa0b4fadfe645e812f808a9b96adeb1ecdb20 (patch)
tree48340589eeade54c33f55ebaa00469a759a34184 /target/riscv
parenttarget/alpha: fetch code with translator_ld (diff)
downloadqemu-4b9fa0b4fadfe645e812f808a9b96adeb1ecdb20.tar.gz
qemu-4b9fa0b4fadfe645e812f808a9b96adeb1ecdb20.tar.xz
qemu-4b9fa0b4fadfe645e812f808a9b96adeb1ecdb20.zip
target/riscv: fetch code with translator_ld
Signed-off-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Acked-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'target/riscv')
-rw-r--r--target/riscv/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/translate.c b/target/riscv/translate.c
index adeddb85f6..b26533d4fd 100644
--- a/target/riscv/translate.c
+++ b/target/riscv/translate.c
@@ -779,7 +779,7 @@ static void riscv_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)
DisasContext *ctx = container_of(dcbase, DisasContext, base);
CPURISCVState *env = cpu->env_ptr;
- ctx->opcode = cpu_ldl_code(env, ctx->base.pc_next);
+ ctx->opcode = translator_ldl(env, ctx->base.pc_next);
decode_opc(ctx);
ctx->base.pc_next = ctx->pc_succ_insn;