mirror of https://github.com/xemu-project/xemu.git
target/sh4: Improve swap.b translation
Remove TCG_BSWAP_IZ and the preceding zero-extension. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
94fdf98721
commit
b983a0e172
|
@ -676,8 +676,7 @@ static void _decode_opc(DisasContext * ctx)
|
|||
case 0x6008: /* swap.b Rm,Rn */
|
||||
{
|
||||
TCGv low = tcg_temp_new();
|
||||
tcg_gen_ext16u_i32(low, REG(B7_4));
|
||||
tcg_gen_bswap16_i32(low, low, TCG_BSWAP_IZ | TCG_BSWAP_OZ);
|
||||
tcg_gen_bswap16_i32(low, REG(B7_4), 0);
|
||||
tcg_gen_deposit_i32(REG(B11_8), REG(B7_4), low, 0, 16);
|
||||
tcg_temp_free(low);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue