Skip to content
  • Alistair Francis's avatar
    41bcc44a
    hw/intc: sifive_plic: Cleanup remaining functions · 41bcc44a
    Alistair Francis authored
    
    
    We can remove the original sifive_plic_irqs_pending() function and
    instead just use the sifive_plic_claim() function (renamed to
    sifive_plic_claimed()) to determine if any interrupts are pending.
    
    This requires move the side effects outside of sifive_plic_claimed(),
    but as they are only invoked once that isn't a problem.
    
    We have also removed all of the old #ifdef debugging logs, so let's
    cleanup the last remaining debug function while we are here.
    
    Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Message-Id: <20220105213937.1113508-5-alistair.francis@opensource.wdc.com>
    41bcc44a
    hw/intc: sifive_plic: Cleanup remaining functions
    Alistair Francis authored
    
    
    We can remove the original sifive_plic_irqs_pending() function and
    instead just use the sifive_plic_claim() function (renamed to
    sifive_plic_claimed()) to determine if any interrupts are pending.
    
    This requires move the side effects outside of sifive_plic_claimed(),
    but as they are only invoked once that isn't a problem.
    
    We have also removed all of the old #ifdef debugging logs, so let's
    cleanup the last remaining debug function while we are here.
    
    Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
    Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Message-Id: <20220105213937.1113508-5-alistair.francis@opensource.wdc.com>
Loading