mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target/ppc: add power-saving interrupt masking logic to p8_next_unmasked_interrupt
Export p8_interrupt_powersave and use it in p8_next_unmasked_interrupt. Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Message-Id: <20221011204829.1641124-19-matheus.ferst@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
788ff1ce44
commit
64a9b5eebe
3 changed files with 14 additions and 13 deletions
|
@ -6133,7 +6133,7 @@ static bool ppc_pvr_match_power8(PowerPCCPUClass *pcc, uint32_t pvr, bool best)
|
|||
return true;
|
||||
}
|
||||
|
||||
static int p8_interrupt_powersave(CPUPPCState *env)
|
||||
int p8_interrupt_powersave(CPUPPCState *env)
|
||||
{
|
||||
if ((env->pending_interrupts & PPC_INTERRUPT_EXT) &&
|
||||
(env->spr[SPR_LPCR] & LPCR_P8_PECE2)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue