diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-22 21:30:28 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-22 21:30:28 +0000 |
commit | 825c69ce025d293baee28dca6538b64ea2a3900a (patch) | |
tree | e0a74806734b43da439cd2b3ebcc0d948a6122b2 /target-sh4/translate.c | |
parent | f066404827c54ada88d10ee2c267ee11555ae148 (diff) |
sh4: fix tas.b @Rn instruction
(Shin-ichiro KAWASAKI, based on a patch from Andrzej Zaborowski)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5074 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 2403515c0b..9ea6b3ed43 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1100,7 +1100,12 @@ void _decode_opc(DisasContext * ctx) gen_op_shlr16_Rn(REG(B11_8)); return; case 0x401b: /* tas.b @Rn */ - gen_op_tasb_rN(REG(B11_8)); + gen_op_movl_rN_T0(REG(B11_8)); + gen_op_movl_T0_T1(); + gen_op_ldub_T0_T0(ctx); + gen_op_cmp_eq_imm_T0(0); + gen_op_or_imm_T0(0x80); + gen_op_stb_T0_T1(ctx); return; case 0xf00d: /* fsts FPUL,FRn - FPSCR: Nothing */ gen_op_movl_fpul_FT0(); |