diff options
author | tanhongze <tanhongze@loongson.cn> | 2023-03-30 20:46:00 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-04-04 19:33:23 +0800 |
commit | ec28dd6c6fc1366504003c25828953cac49e2da7 (patch) | |
tree | f2f9d967db64e943b1ec1727148887c9d268166a /target | |
parent | 51d54503e8049512bdbe55d4f87caf97cd99ca23 (diff) | |
download | qemu-ec28dd6c6fc1366504003c25828953cac49e2da7.zip qemu-ec28dd6c6fc1366504003c25828953cac49e2da7.tar.gz qemu-ec28dd6c6fc1366504003c25828953cac49e2da7.tar.bz2 |
target/loongarch: Enables plugins to get instruction codes
Signed-off-by: tanhongze <tanhongze@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230330124600.1523026-1-tanhongze@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'target')
-rw-r--r-- | target/loongarch/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c index f443b58..21d8607 100644 --- a/target/loongarch/translate.c +++ b/target/loongarch/translate.c @@ -177,7 +177,7 @@ static void loongarch_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs) CPULoongArchState *env = cs->env_ptr; DisasContext *ctx = container_of(dcbase, DisasContext, base); - ctx->opcode = cpu_ldl_code(env, ctx->base.pc_next); + ctx->opcode = translator_ldl(env, &ctx->base, ctx->base.pc_next); if (!decode(ctx, ctx->opcode)) { qemu_log_mask(LOG_UNIMP, "Error: unknown opcode. " |