]> git.proxmox.com Git - 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)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 9 Jun 2012 10:49:21 +0000 (10:49 +0000)
commitd865f307399441919d6646545b7735e57920da04
tree7fe0bfe1f75e87f5300078738d6ba858bd571ae6
parent9d70c4b7b8a580959cc4f739e7c9a04964d00d46
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>
target-xtensa/translate.c