リビジョン | 813253439a0b838744776eef35bf208e1ad38136 (tree) |
---|---|
日時 | 2020-02-24 23:09:50 |
作者 | Richard Henderson <richard.henderson@lina...> |
コミッター | 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 |