diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-14 21:02:59 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-14 21:02:59 +0000 |
commit | 5b7141a11e2ef24caf26af95e59b2ed9552daa0e (patch) | |
tree | 77f69acdae3f1e64f727a4117066931928e22ce2 /target-sh4/translate.c | |
parent | 1b6e5f990641796dc7c370e297a60bfcdb6ca62d (diff) |
sh4: Add FMAC instruction support
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6309 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index ef50f9b53e..7e36cf8dfd 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1176,6 +1176,17 @@ static void _decode_opc(DisasContext * ctx) } } return; + case 0xf00e: /* fmac FR0,RM,Rn */ + { + CHECK_FPU_ENABLED + if (ctx->fpscr & FPSCR_PR) { + break; /* illegal instruction */ + } else { + gen_helper_fmac_FT(cpu_fregs[FREG(B11_8)], + cpu_fregs[FREG(0)], cpu_fregs[FREG(B7_4)], cpu_fregs[FREG(B11_8)]); + return; + } + } } switch (ctx->opcode & 0xff00) { |