qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: 谭弘泽 <tanhongze@loongson.cn>, qemu-devel@nongnu.org
Subject: Re: [PATCH] target/loongarch: Enables plugins to get instruction codes
Date: Wed, 22 Mar 2023 05:31:50 -0700	[thread overview]
Message-ID: <0717dc3c-5372-01ff-2fb9-531daa7e0ef3@linaro.org> (raw)
In-Reply-To: <29262b57.2c2b7.187085217c7.Coremail.tanhongze@loongson.cn>

On 3/22/23 00:56, 谭弘泽 wrote:
> diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c
> index f443b5822f..21d86077f4 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);

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


  reply	other threads:[~2023-03-22 12:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22  7:56 [PATCH] target/loongarch: Enables plugins to get instruction codes 谭弘泽
2023-03-22 12:31 ` Richard Henderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-30 11:38 tan_hong_ze
2023-03-30 13:56 ` Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0717dc3c-5372-01ff-2fb9-531daa7e0ef3@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=tanhongze@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).