• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョン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>

変更サマリ

差分

--- 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)
366366 /* xchg dsp[rs].<mi>,rd */
367367 static bool trans_XCHG_mr(DisasContext *ctx, arg_XCHG_mr *a)
368368 {
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);
376370 return true;
377371 }
378372