void vm_stop(int reason)

{

    QemuThread me;

    qemu_thread_self(&me);



    if (!qemu_thread_equal(&me, &io_thread)) {

        qemu_system_vmstop_request(reason);

        /*

         * FIXME: should not return to device code in case

         * vm_stop() has been requested.

         */

        cpu_stop_current();

        return;

    }

    do_vm_stop(reason);

}

void vm_stop(int reason)

{

    QemuThread me;

    qemu_thread_self(&me);



    if (!qemu_thread_equal(&me, &io_thread)) {

        qemu_system_vmstop_request(reason);

        







        cpu_stop_current();

        return;

    }

    do_vm_stop(reason);

}

void FUNC_0(int VAR_0)

{

    QemuThread me;

    qemu_thread_self(&me);



    if (!qemu_thread_equal(&me, &io_thread)) {

        qemu_system_vmstop_request(VAR_0);

        







        cpu_stop_current();

        return;

    }

    do_vm_stop(VAR_0);

}

void FUNC_0(int VAR_0)
{ QemuThread me; qemu_thread_self(&me); if (!qemu_thread_equal(&me, &io_thread)) { qemu_system_vmstop_request(VAR_0); cpu_stop_current(); return; } do_vm_stop(VAR_0); }