]> git.proxmox.com Git - qemu.git/commit
target-mips: fix EXTPDP and setting up pos field in the DSPControl reg
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Sat, 18 May 2013 01:53:41 +0000 (03:53 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 19 May 2013 13:10:51 +0000 (15:10 +0200)
commit0ba365f4a9752a82502e829a3e8cb5f03a1ffc0c
tree7ca5a7b2d4a046505f12ebd588a597a7ac8528a7
parent489ed4bbae309a6d897f6e037481c4c04f0737b5
target-mips: fix EXTPDP and setting up pos field in the DSPControl reg

This change makes sure that modifications of pos field in the DSPControl
register do not trash other bits in the register. This bug can be triggered
with the additional test case in mips32-dsp/extpdp.c in this commit.

In addition to this, this change corrects incorrect calculation of the mask
for EXTPDP.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/dsp_helper.c
tests/tcg/mips/mips32-dsp/extpdp.c