]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-xtensa: fix CCOUNT for conditional branches
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 27 May 2012 23:18:33 +0000 (03:18 +0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 25 Jun 2012 13:48:56 +0000 (08:48 -0500)
commitb993b863e78ae54c5e966f4e1626bc37c560e6aa
tree2772f6eac19cdec84859dabc117fda1918018d4a
parent07ff37597bee726681c94c650568870bd4ff94d1
target-xtensa: fix CCOUNT for conditional branches

Taken conditional branches fail to update CCOUNT register because
accumulated ccount_delta is reset during translation of non-taken
branch. To fix it only update CCOUNT once per conditional branch
instruction translation.

This fixes guest linux freeze on LTP waitpid06 test.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit d865f307399441919d6646545b7735e57920da04)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-xtensa/translate.c