[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/13] target/rx: Use prt_ldmi for XCHG_mr disassembly
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 09/13] target/rx: Use prt_ldmi for XCHG_mr disassembly |
Date: |
Tue, 17 Mar 2020 17:36:12 +0100 |
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>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Acked-by: Richard Henderson <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <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 0c4115669d..a0c444020c 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.21.1
- [PULL 00/13] target: Add the Renesas RX architecture, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 01/13] hw/registerfields.h: Add 8bit and 16bit register macros, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 02/13] MAINTAINERS: Add entry for the Renesas RX architecture, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 04/13] target/rx: TCG helpers, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 07/13] target/rx: Disassemble rx_index_addr into a string, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 09/13] target/rx: Use prt_ldmi for XCHG_mr disassembly,
Philippe Mathieu-Daudé <=
- [PULL 05/13] target/rx: CPU definitions, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 08/13] target/rx: Replace operand with prt_ldmi in disassembler, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 12/13] target/rx: Dump bytes for each insn during disassembly, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 10/13] target/rx: Emit all disassembly in one prt(), Philippe Mathieu-Daudé, 2020/03/17
- [PULL 11/13] target/rx: Collect all bytes during disassembly, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 06/13] target/rx: RX disassembler, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 13/13] Add rx-softmmu, Philippe Mathieu-Daudé, 2020/03/17
- [PULL 03/13] target/rx: TCG translation, Philippe Mathieu-Daudé, 2020/03/17
- Re: [PULL 00/13] target: Add the Renesas RX architecture, no-reply, 2020/03/17
- Re: [PULL 00/13] target: Add the Renesas RX architecture, no-reply, 2020/03/17