mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target-mips: Fix incorrect code and test for INSV
Content of register rs should be shifted for pos before applying a mask. This change contains both fix for the instruction and to the existing test. Signed-off-by: Petar Jovanovic <petarj@mips.com> Reviewed-by: Eric Johnson <ericj@mips.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
80625b97b5
commit
34f5606ee1
2 changed files with 2 additions and 2 deletions
|
@ -3152,7 +3152,7 @@ target_ulong helper_##name(CPUMIPSState *env, target_ulong rs, \
|
|||
\
|
||||
filter = ((int32_t)0x01 << size) - 1; \
|
||||
filter = filter << pos; \
|
||||
temprs = rs & filter; \
|
||||
temprs = (rs << pos) & filter; \
|
||||
temprt = rt & ~filter; \
|
||||
temp = temprs | temprt; \
|
||||
\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue