3 #include <asm/reboot.h>
4 #include <asm/cacheflush.h>
7 static void qemu_machine_restart(char *command
)
9 volatile unsigned int *reg
= (unsigned int *)QEMU_RESTART_REG
;
11 set_c0_status(ST0_BEV
| ST0_ERL
);
12 change_c0_config(CONF_CM_CMASK
, CONF_CM_UNCACHED
);
20 static void qemu_machine_halt(void)
22 volatile unsigned int *reg
= (unsigned int *)QEMU_HALT_REG
;
29 void qemu_reboot_setup(void)
31 _machine_restart
= qemu_machine_restart
;
32 _machine_halt
= qemu_machine_halt
;