qemu/hw/m68k
Jason A. Donenfeld e24e58e8ac q800: implement mac rom reset function for BIOS-less mode
On Linux, calling `reboot(RB_AUTOBOOT);` will result in
arch/m68k/mac/misc.c's mac_reset function being called. That in turn
looks at the rombase (or uses 0x40800000 is there's no rombase), adds
0xa, and jumps to that address. At the moment, there's nothing there, so
the kernel just crashes when trying to reboot. So, this commit adds a
very simple implementation at that location, which just writes to via2
to power down. We also correct the value of ROMBASE while we're at it.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200102120150.281082-1-Jason@zx2c4.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2020-01-07 13:35:53 +01:00
..
an5206.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
bootinfo.h hw/m68k: define Macintosh Quadra 800 2019-10-28 19:06:53 +01:00
Kconfig hw/m68k: define Macintosh Quadra 800 2019-10-28 19:06:53 +01:00
Makefile.objs hw/m68k: define Macintosh Quadra 800 2019-10-28 19:06:53 +01:00
mcf5206.c hw/m68k/mcf5206.c: Switch to transaction-based ptimer API 2019-10-25 13:09:27 +01:00
mcf5208.c hw/m68k/mcf5208.c: Switch to transaction-based ptimer API 2019-10-22 17:44:00 +01:00
mcf_intc.c Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
next-cube.c hw/m68k/next-cube: Avoid static RTC variables and introduce control register 2019-10-01 11:42:27 +02:00
next-kbd.c m68k: Add NeXTcube keyboard device 2019-09-07 08:31:33 +02:00
q800.c q800: implement mac rom reset function for BIOS-less mode 2020-01-07 13:35:53 +01:00