1 #include <linux/config.h>
4 #include <asm/reboot.h>
5 #include <asm/cacheflush.h>
8 static void qemu_machine_restart(char *command)
10 volatile unsigned int *reg = (unsigned int *)QEMU_RESTART_REG;
12 set_c0_status(ST0_BEV | ST0_ERL);
13 change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
21 static void qemu_machine_halt(void)
23 volatile unsigned int *reg = (unsigned int *)QEMU_HALT_REG;
30 void qemu_reboot_setup(void)
32 _machine_restart = qemu_machine_restart;
33 _machine_halt = qemu_machine_halt;