qemu-arm
[Top][All Lists]
Advanced

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

Re: [Qemu-arm] [PATCH v3 09/22] target/arm: Add pre-EL change hooks


From: Peter Maydell
Subject: Re: [Qemu-arm] [PATCH v3 09/22] target/arm: Add pre-EL change hooks
Date: Thu, 12 Apr 2018 18:21:02 +0100

On 12 April 2018 at 18:01, Aaron Lindsay <address@hidden> wrote:
> On Apr 12 17:49, Peter Maydell wrote:
>> Do we make the guarantee that if we call the pre-change hook
>> then we will definitely subsequently call the post-change hook?
>> (ie does the PMU hook rely on that?)
>
> Yes, the PMU relies on the pre- and post- hooks being called in pairs
> since they drive the state machine of sorts that exists in the variables
> holding the counter values/deltas. And unless I've really screwed up the
> implementation, I believe the change hooks in my patchset make that
> guarantee.

Yes, I think I agree. We should document in the comment that
this is a guarantee that we make.

thanks
-- PMM



reply via email to

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