diff options
author | Petar Jovanovic <petar.jovanovic@rt-rk.com> | 2013-01-23 04:17:41 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2013-01-31 23:42:04 +0100 |
commit | e62a214cd49f836339fe3fd8126fc81d66c3c917 (patch) | |
tree | c2e3b48670a05c0955a0d79205b99d90648fff61 /tests/tcg/mips | |
parent | 6f0af30449b4780c65723d0d45d0f956af5e8c4e (diff) | |
download | hqemu-e62a214cd49f836339fe3fd8126fc81d66c3c917.zip hqemu-e62a214cd49f836339fe3fd8126fc81d66c3c917.tar.gz |
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 <petarj@mips.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tests/tcg/mips')
-rw-r--r-- | tests/tcg/mips/mips32-dsp/mthlip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcg/mips/mips32-dsp/mthlip.c b/tests/tcg/mips/mips32-dsp/mthlip.c index 9549aae..85f94d8 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; |