mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/ppc: add power-saving interrupt masking logic to p7_next_unmasked_interrupt
Export p7_interrupt_powersave and use it in p7_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-26-matheus.ferst@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
b34d358a21
commit
022b712853
3 changed files with 14 additions and 13 deletions
|
@ -5960,7 +5960,7 @@ static bool ppc_pvr_match_power7(PowerPCCPUClass *pcc, uint32_t pvr, bool best)
|
|||
return true;
|
||||
}
|
||||
|
||||
static int p7_interrupt_powersave(CPUPPCState *env)
|
||||
int p7_interrupt_powersave(CPUPPCState *env)
|
||||
{
|
||||
if ((env->pending_interrupts & PPC_INTERRUPT_EXT) &&
|
||||
(env->spr[SPR_LPCR] & LPCR_P7_PECE0)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue