qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] implementing architectural timers using QEMU timers


From: Peter Maydell
Subject: Re: [Qemu-devel] implementing architectural timers using QEMU timers
Date: Tue, 10 Jan 2017 18:47:04 +0000

On 10 January 2017 at 18:39, Max Filippov <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]