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> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20190531134315.4109-21-richard.henderson@linaro.org> Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
e283adea34
commit
5cf7c96008
|
@ -366,13 +366,7 @@ static bool trans_XCHG_rr(DisasContext *ctx, arg_XCHG_rr *a)
|
||||||
/* xchg dsp[rs].<mi>,rd */
|
/* xchg dsp[rs].<mi>,rd */
|
||||||
static bool trans_XCHG_mr(DisasContext *ctx, arg_XCHG_mr *a)
|
static bool trans_XCHG_mr(DisasContext *ctx, arg_XCHG_mr *a)
|
||||||
{
|
{
|
||||||
static const char msize[][4] = {
|
prt_ldmi(ctx, "xchg", a->ld, a->mi, a->rs, a->rd);
|
||||||
"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);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue