[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] target/loongarch: Enables plugins to get instruction codes
From: |
Alex Bennée |
Subject: |
Re: [PATCH] target/loongarch: Enables plugins to get instruction codes |
Date: |
Thu, 30 Mar 2023 14:56:43 +0100 |
User-agent: |
mu4e 1.10.0; emacs 29.0.60 |
tan_hong_ze <tan_hong_ze@163.com> writes:
> Signed-off-by: tan_hong_ze <tan_hong_ze@163.com>
> ---
> target/loongarch/translate.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c
> index 3bb63bfb3e..50d6b62f39 100644
> --- a/target/loongarch/translate.c
> +++ b/target/loongarch/translate.c
> @@ -198,7 +198,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. "
Acked-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro