]> git.proxmox.com Git - qemu.git/commit
target-mips: fix rndrashift_short_acc and code for EXTR_ instructions
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 15 Mar 2013 17:56:19 +0000 (18:56 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 4 Apr 2013 21:58:41 +0000 (16:58 -0500)
commitd019dd928c68038c539fa0a5ba92f046fed12a6c
tree3cad6e3b184a3ee257bb594a2d48178f1b9aef44
parentdac077f0e6f02791d4206aa05e034b6ebbce0ba7
target-mips: fix rndrashift_short_acc and code for EXTR_ instructions

Fix for rndrashift_short_acc to set correct value to higher 64 bits.
This change also corrects conditions when bit 23 of the DSPControl register
is set.

The existing test files have been extended with several examples that
trigger the issues. One bug/example in the test file for EXTR_RS_W has been
found and reported by Klaus Peichl.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 8b758d0568a986d58c254b3c209691c82e0f82a1)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-mips/dsp_helper.c
tests/tcg/mips/mips32-dsp/extr_r_w.c
tests/tcg/mips/mips32-dsp/extr_rs_w.c
tests/tcg/mips/mips32-dsp/extr_w.c