This is a reworking of Ben's original implementation of the SunGEM device from last year: https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg02571.html.
The reason for implenting this device is that it allows out-of-the-box networking for most MacOS 9 and MacOS X OSs running under qemu-system-ppc without having to obtain any external vendor drivers. The main changes I've made to Ben's original patch are listed below: - Remove sungem.h file, moving constants into sungem.c as required - Switch to using tracepoints for debugging - Split register blocks into separate memory regions - Use arrays in SunGEMState to hold register values - Add state-saving support Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> Benjamin Herrenschmidt (1): net: Add SunGEM device emulation as found on Apple UniNorth default-configs/ppc-softmmu.mak | 1 + hw/net/Makefile.objs | 1 + hw/net/sungem.c | 1447 +++++++++++++++++++++++++++++++++++++++ hw/net/trace-events | 44 ++ hw/pci/pci.c | 2 + include/hw/pci/pci_ids.h | 1 + 6 files changed, 1496 insertions(+) create mode 100644 hw/net/sungem.c -- 1.7.10.4