target/ppc: move power-saving interrupt masking out of cpu_has_work_POWER8
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Tue, 11 Oct 2022 20:48:17 +0000 (17:48 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:15:22 +0000 (13:15 -0300)
commit788ff1ce44b813475ddcb95726bdd3afdaa40d6d
treea154e5b42e0cc2037e19a51141d7e3e7858aa528
parentd66b441d64ca63bb9b50d5d8a054b1836297a6e3
target/ppc: move power-saving interrupt masking out of cpu_has_work_POWER8

Move the interrupt masking logic out of cpu_has_work_POWER8 in a new
method, p8_interrupt_powersave, that only returns an interrupt if it can
wake the processor from power-saving mode.

Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Message-Id: <20221011204829.1641124-18-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu_init.c