mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/arm: Add pre-EL change hooks
Because the design of the PMU requires that the counter values be converted between their delta and guest-visible forms for mode filtering, an additional hook which occurs before the EL is changed is necessary. Signed-off-by: Aaron Lindsay <alindsay@codeaurora.org> Message-id: 1523997485-1905-8-git-send-email-alindsay@codeaurora.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
08267487c9
commit
b5c53d1b38
5 changed files with 58 additions and 9 deletions
|
@ -728,6 +728,13 @@ void arm_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr,
|
|||
MemTxResult response, uintptr_t retaddr);
|
||||
|
||||
/* Call any registered EL change hooks */
|
||||
static inline void arm_call_pre_el_change_hook(ARMCPU *cpu)
|
||||
{
|
||||
ARMELChangeHook *hook, *next;
|
||||
QLIST_FOREACH_SAFE(hook, &cpu->pre_el_change_hooks, node, next) {
|
||||
hook->hook(cpu, hook->opaque);
|
||||
}
|
||||
}
|
||||
static inline void arm_call_el_change_hook(ARMCPU *cpu)
|
||||
{
|
||||
ARMELChangeHook *hook, *next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue