Revision | adb77a9f123114836b92c2c53dc88e90d840031c (tree) |
---|---|
Time | 2019-06-16 22:31:40 |
Author | Richard Henderson <richard.henderson@lina...> |
Commiter | Yoshinori Sato |
target/rx: Use prt_ldmi for XCHG_mr disassembly
Note that the ld == 3 case handled by prt_ldmi is decoded as
XCHG_rr and cannot appear here.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Message-Id: <20190607091116.49044-21-ysato@users.sourceforge.jp>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
@@ -366,13 +366,7 @@ static bool trans_XCHG_rr(DisasContext *ctx, arg_XCHG_rr *a) | ||
366 | 366 | /* xchg dsp[rs].<mi>,rd */ |
367 | 367 | static bool trans_XCHG_mr(DisasContext *ctx, arg_XCHG_mr *a) |
368 | 368 | { |
369 | - static const char msize[][4] = { | |
370 | - "b", "w", "l", "ub", "uw", | |
371 | - }; | |
372 | - char dsp[8]; | |
373 | - | |
374 | - rx_index_addr(ctx, dsp, a->ld, a->mi); | |
375 | - prt("xchg\t%s[r%d].%s, r%d", dsp, a->rs, msize[a->mi], a->rd); | |
369 | + prt_ldmi(ctx, "xchg", a->ld, a->mi, a->rs, a->rd); | |
376 | 370 | return true; |
377 | 371 | } |
378 | 372 |