mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
target-mips: fix DINSU instruction
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
33dd298323
commit
6fbab86925
@ -2764,7 +2764,7 @@ static void gen_bitops (DisasContext *ctx, uint32_t opc, int rt,
|
||||
case OPC_DINSU:
|
||||
if (lsb > msb)
|
||||
goto fail;
|
||||
mask = ((1ULL << (msb - lsb + 1)) - 1) << lsb;
|
||||
mask = ((1ULL << (msb - lsb + 1)) - 1) << (lsb + 32);
|
||||
gen_load_gpr(t0, rt);
|
||||
tcg_gen_andi_tl(t0, t0, ~mask);
|
||||
tcg_gen_shli_tl(t1, t1, lsb + 32);
|
||||
|
Loading…
Reference in New Issue
Block a user