mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
Fix slti/sltiu for MIPS64, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2833 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5d46d55d4b
commit
f469b9db01
2 changed files with 8 additions and 8 deletions
|
@ -921,7 +921,7 @@ static void gen_flt_ldst (DisasContext *ctx, uint32_t opc, int ft,
|
|||
static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt,
|
||||
int rs, int16_t imm)
|
||||
{
|
||||
uint32_t uimm;
|
||||
target_ulong uimm;
|
||||
const char *opn = "imm arith";
|
||||
|
||||
if (rt == 0 && opc != OPC_ADDI && opc != OPC_DADDI) {
|
||||
|
@ -941,7 +941,7 @@ static void gen_arith_imm (DisasContext *ctx, uint32_t opc, int rt,
|
|||
#endif
|
||||
case OPC_SLTI:
|
||||
case OPC_SLTIU:
|
||||
uimm = (int32_t)imm; /* Sign extend to 32 bits */
|
||||
uimm = (target_long)imm; /* Sign extend to 32/64 bits */
|
||||
/* Fall through. */
|
||||
case OPC_ANDI:
|
||||
case OPC_ORI:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue