aboutsummaryrefslogtreecommitdiff
path: root/target/rx/disas.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/rx/disas.c')
-rw-r--r--target/rx/disas.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/target/rx/disas.c b/target/rx/disas.c
index 0c41156..a0c4440 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;
}