summaryrefslogtreecommitdiffstats
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-29 20:13:19 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-29 20:13:19 +0000
commitbc8191fce98cf4faa6440baab0a223912809f9e3 (patch)
tree7f3096ac75b10c7f674ce24edd5d7c53bb4ee838 /target-mips
parent5ef62c5c4224afdce2f98fb2c3b43f734ab47f72 (diff)
downloadhqemu-bc8191fce98cf4faa6440baab0a223912809f9e3.zip
hqemu-bc8191fce98cf4faa6440baab0a223912809f9e3.tar.gz
Hopefully the final fix for LUI sign extensions.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2745 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/op_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/op_template.c b/target-mips/op_template.c
index 04677cd..71e30d3 100644
--- a/target-mips/op_template.c
+++ b/target-mips/op_template.c
@@ -54,7 +54,7 @@ void glue(op_load_gpr_T2_gpr, REG) (void)
#define SET_RESET(treg, tregname) \
void glue(op_set, tregname)(void) \
{ \
- treg = (int32_t)PARAM1; \
+ treg = (int32_t)(uint32_t)PARAM1;\
RETURN(); \
} \
void glue(op_reset, tregname)(void) \
OpenPOWER on IntegriCloud