From bc8191fce98cf4faa6440baab0a223912809f9e3 Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 29 Apr 2007 20:13:19 +0000 Subject: [PATCH] Hopefully the final fix for LUI sign extensions. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2745 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-mips/op_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- 2.7.4