mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
ppc: export the XICS and XIVE set_irq handlers
To support the 'dual' interrupt mode, XICS and XIVE, we plan to move the qemu_irq array of each interrupt controller under the machine and do the allocation under the sPAPR IRQ init method. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
e502202c9b
commit
734d9c8905
5 changed files with 7 additions and 3 deletions
|
@ -461,7 +461,7 @@ static void ics_simple_set_irq_lsi(ICSState *ics, int srcno, int val)
|
|||
ics_simple_resend_lsi(ics, srcno);
|
||||
}
|
||||
|
||||
static void ics_simple_set_irq(void *opaque, int srcno, int val)
|
||||
void ics_simple_set_irq(void *opaque, int srcno, int val)
|
||||
{
|
||||
ICSState *ics = (ICSState *)opaque;
|
||||
|
||||
|
|
|
@ -298,7 +298,7 @@ static int ics_set_kvm_state(ICSState *ics, int version_id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void ics_kvm_set_irq(void *opaque, int srcno, int val)
|
||||
void ics_kvm_set_irq(void *opaque, int srcno, int val)
|
||||
{
|
||||
ICSState *ics = opaque;
|
||||
struct kvm_irq_level args;
|
||||
|
|
|
@ -845,7 +845,7 @@ static const MemoryRegionOps xive_source_esb_ops = {
|
|||
},
|
||||
};
|
||||
|
||||
static void xive_source_set_irq(void *opaque, int srcno, int val)
|
||||
void xive_source_set_irq(void *opaque, int srcno, int val)
|
||||
{
|
||||
XiveSource *xsrc = XIVE_SOURCE(opaque);
|
||||
bool notify = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue