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

Move the interrupt masking logic out of cpu_has_work_POWER9 in a new
method, p9_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-11-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu_init.c