aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/translate.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-01 22:12:06 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-01 22:12:06 +0000
commit7fdf924fdd970a78862e3b9367c91e27a9fbf648 (patch)
tree2ccde651c6617c4ca5c1a62e50f7aeca73c3d01b /target-sh4/translate.c
parentcc4ba6a9826d94bb46f13856927f7883fd6b9d51 (diff)
downloadqemu-7fdf924fdd970a78862e3b9367c91e27a9fbf648.zip
qemu-7fdf924fdd970a78862e3b9367c91e27a9fbf648.tar.gz
qemu-7fdf924fdd970a78862e3b9367c91e27a9fbf648.tar.bz2
SH4: final conversion to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5125 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r--target-sh4/translate.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 30362a8..ff43882 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -1593,7 +1593,13 @@ void _decode_opc(DisasContext * ctx)
}
return;
case 0xf04d: /* fneg FRn/DRn - FPSCR: Nothing */
- gen_op_fneg_frN(FREG(B11_8));
+ {
+ TCGv fp = tcg_temp_new(TCG_TYPE_I32);
+ gen_load_fpr32(fp, FREG(B11_8));
+ tcg_gen_helper_1_1(helper_fneg_T, fp, fp);
+ gen_store_fpr32(fp, FREG(B11_8));
+ tcg_temp_free(fp);
+ }
return;
case 0xf05d: /* fabs FRn/DRn */
if (ctx->fpscr & FPSCR_PR) {