static void mips_qemu_write (void *opaque, target_phys_addr_t addr,

                             uint64_t val, unsigned size)

{

    if ((addr & 0xffff) == 0 && val == 42)

        qemu_system_reset_request ();

    else if ((addr & 0xffff) == 4 && val == 42)

        qemu_system_shutdown_request ();

}

static void mips_qemu_write (void *opaque, target_phys_addr_t addr,

                             uint64_t val, unsigned size)

{

    if ((addr & 0xffff) == 0 && val == 42)

        qemu_system_reset_request ();

    else if ((addr & 0xffff) == 4 && val == 42)

        qemu_system_shutdown_request ();

}

static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1,

                             uint64_t VAR_2, unsigned VAR_3)

{

    if ((VAR_1 & 0xffff) == 0 && VAR_2 == 42)

        qemu_system_reset_request ();

    else if ((VAR_1 & 0xffff) == 4 && VAR_2 == 42)

        qemu_system_shutdown_request ();

}

static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{ if ((VAR_1 & 0xffff) == 0 && VAR_2 == 42)
qemu_system_reset_request (); else if ((VAR_1 & 0xffff) == 4 && VAR_2 == 42)
qemu_system_shutdown_request (); }