]> git.proxmox.com Git - qemu.git/commitdiff
target-mips: fix incorrect test for MTHLIP
authorPetar Jovanovic <petar.jovanovic@rt-rk.com>
Wed, 23 Jan 2013 03:17:41 +0000 (04:17 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 31 Jan 2013 22:42:04 +0000 (23:42 +0100)
The pos field in the DSPControl register is not correctly initialized.
Per documentation, the result of MTHLIP is unpredictable if the value of the
pos field before the execution is greater than 32.

Signed-off-by: Petar Jovanovic <petarj@mips.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tests/tcg/mips/mips32-dsp/mthlip.c

index 9549aae36a36f5098999555f35a2b7fd5da50e1e..85f94d8450eae54c91379ce674a4172a3cc72863 100644 (file)
@@ -30,7 +30,7 @@ int main()
     assert(ach == resulth);
     assert(acl == resultl);
 
-    dsp = 0x3f;
+    dsp = 0x1f;
     ach = 0x05;
     acl = 0xB4CB;
     rs  = 0x00FFBBAA;