On 14 July 2018 at 18:15, Luc Michel <[email protected]> wrote: > Add the gic_update_virt() function to update the vCPU interface states > and raise vIRQ and vFIQ as needed. This commit renames gic_update() to > gic_update_internal() and generalizes it to handle both cases, with a > `virt' parameter to track whether we are updating the CPU or vCPU > interfaces. > > The main difference between CPU and vCPU is the way we select the best > IRQ. This part has been split into the gic_get_best_(v)irq functions. > For the virt case, the LRs are iterated to find the best candidate. > > Signed-off-by: Luc Michel <[email protected]> > --- > hw/intc/arm_gic.c | 186 ++++++++++++++++++++++++++++++++++++---------- > 1 file changed, 146 insertions(+), 40 deletions(-)
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
