Commit bc8191fce98cf4faa6440baab0a223912809f9e3
1 parent
5ef62c5c
Hopefully the final fix for LUI sign extensions.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2745 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-mips/op_template.c
... | ... | @@ -54,7 +54,7 @@ void glue(op_load_gpr_T2_gpr, REG) (void) |
54 | 54 | #define SET_RESET(treg, tregname) \ |
55 | 55 | void glue(op_set, tregname)(void) \ |
56 | 56 | { \ |
57 | - treg = (int32_t)PARAM1; \ | |
57 | + treg = (int32_t)(uint32_t)PARAM1;\ | |
58 | 58 | RETURN(); \ |
59 | 59 | } \ |
60 | 60 | void glue(op_reset, tregname)(void) \ | ... | ... |