* [PATCH] target/loongarch: Enables plugins to get instruction codes
@ 2023-03-22 7:56 谭弘泽
2023-03-22 12:31 ` Richard Henderson
0 siblings, 1 reply; 4+ messages in thread
From: 谭弘泽 @ 2023-03-22 7:56 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 992 bytes --]
From 2b196a6e520bc42bb8dbbc569184fb3cdc3ae8f5 Mon Sep 17 00:00:00 2001
From: tanhongze <tanhongze@loongson.cn>
Date: Tue, 21 Mar 2023 20:43:46 +0800
Subject: [PATCH] target/loongarch: Enables plugins to get instruction codes
Signed-off-by: tanhongze <tanhongze@loongson.cn>
---
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 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);
if (!decode(ctx, ctx->opcode)) {
qemu_log_mask(LOG_UNIMP, "Error: unknown opcode. "
--
2.34.1
[-- Attachment #2: Type: text/html, Size: 2565 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] target/loongarch: Enables plugins to get instruction codes
2023-03-22 7:56 [PATCH] target/loongarch: Enables plugins to get instruction codes 谭弘泽
@ 2023-03-22 12:31 ` Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2023-03-22 12:31 UTC (permalink / raw)
To: 谭弘泽, qemu-devel
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~
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] target/loongarch: Enables plugins to get instruction codes
@ 2023-03-30 11:38 tan_hong_ze
2023-03-30 13:56 ` Alex Bennée
0 siblings, 1 reply; 4+ messages in thread
From: tan_hong_ze @ 2023-03-30 11:38 UTC (permalink / raw)
To: qemu-devel; +Cc: tan_hong_ze
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. "
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] target/loongarch: Enables plugins to get instruction codes
2023-03-30 11:38 tan_hong_ze
@ 2023-03-30 13:56 ` Alex Bennée
0 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2023-03-30 13:56 UTC (permalink / raw)
To: tan_hong_ze; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-30 13:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22 7:56 [PATCH] target/loongarch: Enables plugins to get instruction codes 谭弘泽
2023-03-22 12:31 ` Richard Henderson
-- 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
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).