]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: introduce ppc_maybe_interrupt
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Fri, 21 Oct 2022 14:21:54 +0000 (11:21 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:15:22 +0000 (13:15 -0300)
commit2fdedcbc69564f52a1c33bedfa291707e998a132
tree445127d2d72a83b5ccb54350a9589fd072a6f962
parent6a8e8188c3c99e987e3d5b9df614a68a5d4bd1e0
target/ppc: introduce ppc_maybe_interrupt

This new method will check if any pending interrupt was unmasked and
then call cpu_interrupt/cpu_reset_interrupt accordingly. Code that
raises/lowers or masks/unmasks interrupts should call this method to
keep CPU_INTERRUPT_HARD coherent with env->pending_interrupts.

Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221021142156.4134411-2-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/pnv_core.c
hw/ppc/ppc.c
hw/ppc/spapr_hcall.c
hw/ppc/spapr_rtas.c
target/ppc/cpu.c
target/ppc/cpu.h
target/ppc/excp_helper.c
target/ppc/helper.h
target/ppc/helper_regs.c
target/ppc/translate.c