From: Petar Jovanovic Date: Wed, 23 Jan 2013 03:17:41 +0000 (+0100) Subject: target-mips: fix incorrect test for MTHLIP X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e62a214cd49f836339fe3fd8126fc81d66c3c917;p=qemu.git target-mips: fix incorrect test for MTHLIP 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 Signed-off-by: Aurelien Jarno --- diff --git a/tests/tcg/mips/mips32-dsp/mthlip.c b/tests/tcg/mips/mips32-dsp/mthlip.c index 9549aae36a..85f94d8450 100644 --- a/tests/tcg/mips/mips32-dsp/mthlip.c +++ b/tests/tcg/mips/mips32-dsp/mthlip.c @@ -30,7 +30,7 @@ int main() assert(ach == resulth); assert(acl == resultl); - dsp = 0x3f; + dsp = 0x1f; ach = 0x05; acl = 0xB4CB; rs = 0x00FFBBAA;