aboutsummaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-24 00:10:32 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-24 00:10:32 +0000
commit6ad3872210a45b6741803bd692ee0c38472d9392 (patch)
tree61e6a62ef26e296dc932682751ec964f42824179 /target-mips
parent60445285a84915cc4a064acf0a3d15e89f9fac40 (diff)
downloadqemu-6ad3872210a45b6741803bd692ee0c38472d9392.zip
qemu-6ad3872210a45b6741803bd692ee0c38472d9392.tar.gz
qemu-6ad3872210a45b6741803bd692ee0c38472d9392.tar.bz2
Force proper sign extension for mfc0/mfhc0 on MIPS64.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3432 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-mips/op.c b/target-mips/op.c
index a666006..5c26d17 100644
--- a/target-mips/op.c
+++ b/target-mips/op.c
@@ -2328,7 +2328,7 @@ void op_ctc1 (void)
void op_mfc1 (void)
{
- T0 = WT0;
+ T0 = (int32_t)WT0;
DEBUG_FPU_STATE();
RETURN();
}
@@ -2356,7 +2356,7 @@ void op_dmtc1 (void)
void op_mfhc1 (void)
{
- T0 = WTH0;
+ T0 = (int32_t)WTH0;
DEBUG_FPU_STATE();
RETURN();
}