qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 08/10] target/tricore: Swap src and dst reg for RCRR_INSERT


From: Richard Henderson
Subject: Re: [PATCH 08/10] target/tricore: Swap src and dst reg for RCRR_INSERT
Date: Sat, 26 Aug 2023 22:06:22 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 8/26/23 09:02, Bastian Koppelmann wrote:
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
---
  target/tricore/translate.c          | 8 ++++----
  tests/tcg/tricore/asm/macros.h      | 9 +++++++++
  tests/tcg/tricore/asm/test_insert.S | 5 +++++
  3 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index d13f85c03a..a68660b326 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -8225,12 +8225,12 @@ static void decode_32Bit_opc(DisasContext *ctx)
          temp2 = tcg_temp_new(); /* width*/
          temp3 = tcg_temp_new(); /* pos */
- CHECK_REG_PAIR(r3);
+        CHECK_REG_PAIR(r2);

While it looks as if the end result is the same, it appears the macros used just above are wrong. The field definitions for RCRR on page 1-4 do not match the field definitions for INSERT.RCRR on page 3-118.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]