On 10 January 2017 at 18:39, Max Filippov <jcmvb...@gmail.com> wrote: > Ok, looks like what happens in my case is that instruction that > sets CCOMPARE and thus changes remaining icount does not > cause exit from the cpu_exec. So merely ending TB on > QEMU_CLOCK_VIRTUAL timer update is not enough, I need to > throw an exception of some kind? Or does the timer code need > to take care of that?
Is your code calling gen_io_start() and gen_io_end() in the right places around where it generates code to do the CCOMPARE accesses ? (the rules for getting icount to work right are a bit fiddly) thanks -- PMM