[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v29 10/22] target/rx: Use prt_ldmi for XCHG_mr disassembly
From: |
Yoshinori Sato |
Subject: |
[PATCH v29 10/22] target/rx: Use prt_ldmi for XCHG_mr disassembly |
Date: |
Thu, 23 Jan 2020 22:25:13 +0900 |
From: Richard Henderson <address@hidden>
Note that the ld == 3 case handled by prt_ldmi is decoded as
XCHG_rr and cannot appear here.
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Yoshinori Sato <address@hidden>
Signed-off-by: Yoshinori Sato <address@hidden>
Message-Id: <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/rx/disas.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/target/rx/disas.c b/target/rx/disas.c
index 515b365528..db10385fd0 100644
--- a/target/rx/disas.c
+++ b/target/rx/disas.c
@@ -366,13 +366,7 @@ static bool trans_XCHG_rr(DisasContext *ctx, arg_XCHG_rr
*a)
/* xchg dsp[rs].<mi>,rd */
static bool trans_XCHG_mr(DisasContext *ctx, arg_XCHG_mr *a)
{
- static const char msize[][4] = {
- "b", "w", "l", "ub", "uw",
- };
- char dsp[8];
-
- rx_index_addr(ctx, dsp, a->ld, a->mi);
- prt("xchg\t%s[r%d].%s, r%d", dsp, a->rs, msize[a->mi], a->rd);
+ prt_ldmi(ctx, "xchg", a->ld, a->mi, a->rs, a->rd);
return true;
}
--
2.20.1
- [PATCH v29 08/22] target/rx: Disassemble rx_index_addr into a string, (continued)
- [PATCH v29 08/22] target/rx: Disassemble rx_index_addr into a string, Yoshinori Sato, 2020/01/23
- [PATCH v29 11/22] target/rx: Emit all disassembly in one prt(), Yoshinori Sato, 2020/01/23
- [PATCH v29 20/22] Add rx-softmmu, Yoshinori Sato, 2020/01/23
- [PATCH v29 09/22] target/rx: Replace operand with prt_ldmi in disassembler, Yoshinori Sato, 2020/01/23
- [PATCH v29 17/22] hw/rx: RX Target hardware definition, Yoshinori Sato, 2020/01/23
- [PATCH v29 07/22] target/rx: RX disassembler, Yoshinori Sato, 2020/01/23
- [PATCH v29 21/22] BootLinuxConsoleTest: Test the RX-Virt machine, Yoshinori Sato, 2020/01/23
- [PATCH v29 05/22] target/rx: TCG helper, Yoshinori Sato, 2020/01/23
- [PATCH v29 14/22] hw/intc: RX62N interrupt controller (ICUa), Yoshinori Sato, 2020/01/23
- [PATCH v29 22/22] qemu-doc.texi: Add RX section., Yoshinori Sato, 2020/01/23
- [PATCH v29 10/22] target/rx: Use prt_ldmi for XCHG_mr disassembly,
Yoshinori Sato <=
- [PATCH v29 16/22] hw/char: RX62N serial communication interface (SCI), Yoshinori Sato, 2020/01/23
- [PATCH v29 06/22] target/rx: CPU definition, Yoshinori Sato, 2020/01/23
- [PATCH v29 15/22] hw/timer: RX62N internal timer modules, Yoshinori Sato, 2020/01/23
- [PATCH v29 04/22] target/rx: TCG translation, Yoshinori Sato, 2020/01/23
- Re: [PATCH v29 00/22] Add RX archtecture support, no-reply, 2020/01/23
- Re: [PATCH v29 00/22] Add RX archtecture support, Yoshinori Sato, 2020/01/23