target/avr: call plugin trap callbacks
We recently introduced API for registering callbacks for trap related events as well as the corresponding hook functions. Due to differences between architectures, the latter need to be called from target specific code. This change places the hook for AVR targets. That architecture appears to only know interrupts. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Julian Ganz <neither@nut.email> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20251027110344.2289945-14-alex.bennee@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
105e3c7569
commit
14e1f3186c
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include "exec/target_page.h"
|
||||
#include "accel/tcg/cpu-ldst.h"
|
||||
#include "exec/helper-proto.h"
|
||||
#include "qemu/plugin.h"
|
||||
|
||||
bool avr_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
||||
{
|
||||
|
|
@ -102,6 +103,8 @@ void avr_cpu_do_interrupt(CPUState *cs)
|
|||
env->sregI = 0; /* clear Global Interrupt Flag */
|
||||
|
||||
cs->exception_index = -1;
|
||||
|
||||
qemu_plugin_vcpu_interrupt_cb(cs, ret);
|
||||
}
|
||||
|
||||
hwaddr avr_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue