]> git.proxmox.com Git - qemu.git/commit
target-xtensa: fix guest hang on masked CCOMPARE interrupt
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 10 Oct 2011 02:25:04 +0000 (06:25 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 15 Oct 2011 21:03:03 +0000 (21:03 +0000)
commit890c6333b28a4dcbf2a26a5a17b0e71304d5a851
treed9243ab3e1a3eab793184eb49134b9c1d9c6fa87
parent9870a5e6cd3df584328728b3d822b23cee28c561
target-xtensa: fix guest hang on masked CCOMPARE interrupt

QEMU timer is used to post CCOMPARE interrupt when the core is halted.
If that CCOMPARE interrupt is masked off then the timer must be rearmed
in the callback, otherwise it will be rearmed next time the core goes to
halt by the waiti instruction.

Add test case into timer testsuite.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/xtensa_pic.c
target-xtensa/cpu.h
target-xtensa/op_helper.c
tests/xtensa/test_timer.S