void spapr_events_init(sPAPRMachineState *spapr)

{

    QTAILQ_INIT(&spapr->pending_events);

    spapr->check_exception_irq = xics_spapr_alloc(spapr->xics, 0, false,

                                            &error_fatal);

    spapr->epow_notifier.notify = spapr_powerdown_req;

    qemu_register_powerdown_notifier(&spapr->epow_notifier);

    spapr_rtas_register(RTAS_CHECK_EXCEPTION, "check-exception",

                        check_exception);

    spapr_rtas_register(RTAS_EVENT_SCAN, "event-scan", event_scan);

}

void spapr_events_init(sPAPRMachineState *spapr)

{

    QTAILQ_INIT(&spapr->pending_events);

    spapr->check_exception_irq = xics_spapr_alloc(spapr->xics, 0, false,

                                            &error_fatal);

    spapr->epow_notifier.notify = spapr_powerdown_req;

    qemu_register_powerdown_notifier(&spapr->epow_notifier);

    spapr_rtas_register(RTAS_CHECK_EXCEPTION, "check-exception",

                        check_exception);

    spapr_rtas_register(RTAS_EVENT_SCAN, "event-scan", event_scan);

}

void FUNC_0(sPAPRMachineState *VAR_0)

{

    QTAILQ_INIT(&VAR_0->pending_events);

    VAR_0->check_exception_irq = xics_spapr_alloc(VAR_0->xics, 0, false,

                                            &error_fatal);

    VAR_0->epow_notifier.notify = spapr_powerdown_req;

    qemu_register_powerdown_notifier(&VAR_0->epow_notifier);

    spapr_rtas_register(RTAS_CHECK_EXCEPTION, "check-exception",

                        check_exception);

    spapr_rtas_register(RTAS_EVENT_SCAN, "event-scan", event_scan);

}

void FUNC_0(sPAPRMachineState *VAR_0)
{ QTAILQ_INIT(&VAR_0->pending_events); VAR_0->check_exception_irq = xics_spapr_alloc(VAR_0->xics, 0, false,
&error_fatal); VAR_0->epow_notifier.notify = spapr_powerdown_req; qemu_register_powerdown_notifier(&VAR_0->epow_notifier); spapr_rtas_register(RTAS_CHECK_EXCEPTION, "check-exception",
check_exception); spapr_rtas_register(RTAS_EVENT_SCAN, "event-scan", event_scan); }