OSDN Git Service

target-mips: fix bad shifts in {dextp|dextpdp}
authorYongbok Kim <yongbok.kim@imgtec.com>
Wed, 30 Nov 2016 15:25:04 +0000 (15:25 +0000)
committerYongbok Kim <yongbok.kim@imgtec.com>
Sun, 4 Dec 2016 00:57:06 +0000 (00:57 +0000)
commite6e2784cacd4cfec149a7690976b9ff15e541c4d
treeee873949b8c4404a837a9e6a3047c89f1431be61
parentb5a587b613f6151c2ce164552579ae64f2ddfd1c
target-mips: fix bad shifts in {dextp|dextpdp}

Fixed issues in the MIPSDSP64 instructions dextp and dextpdp.
Shifting can go out of 32 bit range.

https://bugs.launchpad.net/qemu/+bug/1631625

Reported-by: Thomas Huth <thuth@redhat.com>
Reported-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
target-mips/dsp_helper.c