qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org,
	"Anton Kochkov" <anton.kochkov@proton.me>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Eitan Eliahu" <eitan_eliahu@hotmail.com>
Subject: [PULL 11/12] target/tricore: Fix OPC1_16_SRO_LD_H translation
Date: Wed,  8 Feb 2023 10:14:21 +0100	[thread overview]
Message-ID: <20230208091422.1243084-12-kbastian@mail.uni-paderborn.de> (raw)
In-Reply-To: <20230208091422.1243084-1-kbastian@mail.uni-paderborn.de>

From: Anton Kochkov <anton.kochkov@proton.me>

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Eitan Eliahu <eitan_eliahu@hotmail.com>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/652
Message-Id: <20230112142258.514079-1-anton.kochkov@proton.me>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
---
 target/tricore/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index ab386cef50..7ac34efd76 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -3878,7 +3878,7 @@ static void decode_sro_opc(DisasContext *ctx, int op1)
         gen_offset_ld(ctx, cpu_gpr_d[15], cpu_gpr_a[r2], address, MO_UB);
         break;
     case OPC1_16_SRO_LD_H:
-        gen_offset_ld(ctx, cpu_gpr_d[15], cpu_gpr_a[r2], address, MO_LESW);
+        gen_offset_ld(ctx, cpu_gpr_d[15], cpu_gpr_a[r2], address * 2, MO_LESW);
         break;
     case OPC1_16_SRO_LD_W:
         gen_offset_ld(ctx, cpu_gpr_d[15], cpu_gpr_a[r2], address * 4, MO_LESL);
-- 
2.39.1



  parent reply	other threads:[~2023-02-08  9:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-08  9:14 [PULL 00/12] tricore queue Bastian Koppelmann
2023-02-08  9:14 ` [PULL 01/12] target/tricore: Fix OPC2_32_RCRW_IMASK translation Bastian Koppelmann
2023-02-08  9:14 ` [PULL 02/12] tests/tcg/tricore: Add test for OPC2_32_RCRW_IMASK Bastian Koppelmann
2023-02-08  9:14 ` [PULL 03/12] target/tricore: Fix OPC2_32_RCRW_INSERT translation Bastian Koppelmann
2023-02-08  9:14 ` [PULL 04/12] tests/tcg/tricore: Add test for OPC2_32_RCRW_INSERT Bastian Koppelmann
2023-02-08  9:14 ` [PULL 05/12] target/tricore: Fix RRPW_DEXTR Bastian Koppelmann
2023-02-08  9:14 ` [PULL 06/12] tests/tcg/tricore: Add tests for RRPW_DEXTR Bastian Koppelmann
2023-02-08  9:14 ` [PULL 07/12] target/tricore: Fix OPC2_32_RRRR_DEXTR Bastian Koppelmann
2023-02-08  9:14 ` [PULL 08/12] tests/tcg/tricore: Add OPC2_32_RRRR_DEXTR tests Bastian Koppelmann
2023-02-08  9:14 ` [PULL 09/12] target/tricore: Fix OPC2_32_BO_LD_BU_PREINC Bastian Koppelmann
2023-02-08  9:14 ` [PULL 10/12] tests/tcg/tricore: Add LD.BU tests Bastian Koppelmann
2023-02-08  9:14 ` Bastian Koppelmann [this message]
2023-02-08  9:14 ` [PULL 12/12] tests/tcg/tricore: Add test for ld.h Bastian Koppelmann
2023-02-09 11:23 ` [PULL 00/12] tricore queue Peter Maydell

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=20230208091422.1243084-12-kbastian@mail.uni-paderborn.de \
    --to=kbastian@mail.uni-paderborn.de \
    --cc=anton.kochkov@proton.me \
    --cc=eitan_eliahu@hotmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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).