summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorMax Filippov2013-07-22 06:02:43 +0200
committerMax Filippov2017-01-15 22:01:56 +0100
commitd2132510ca88340bed89db5655e65b7cd87d3d8b (patch)
tree374d8cab3c669ef02e54d2483e4f1f4923689950 /include/exec
parenttarget/xtensa: refactor CCOUNT/CCOMPARE (diff)
downloadqemu-d2132510ca88340bed89db5655e65b7cd87d3d8b.tar.gz
qemu-d2132510ca88340bed89db5655e65b7cd87d3d8b.tar.xz
qemu-d2132510ca88340bed89db5655e65b7cd87d3d8b.zip
target/xtensa: support icount
Delimit each instruction that may access timers or IRQ state with qemu_io_start/qemu_io_end, so that qemu-system-xtensa could be run with -icount option. Raise EXCP_YIELD after CCOMPARE reprogramming to let tcg_cpu_exec recalculate how long this CPU is allowed to run. RSR now may need to terminate TB, but it can't be done in RSR handler because the same handler is used for XSR together with WSR handler, which may also need to terminate TB. Change RSR and WSR handlers return type to bool indicating whether TB termination is needed (RSR) or has been done (WSR), and add TB termination after RSR/WSR dispatcher call. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions