Skip to content

MIPS Magnum conversion to qdev

Hervé Poussineau qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20cpu: add a init inplace methodtarget-mips/cpu.h target-mips/translate.c+13 -40 replies
2/20cpu: convert to qdevhw/mips_cpudevs.h hw/mips_int.c+85 -00 replies
3/20Jazz emulation: create a qdev cpuhw/mips_jazz.c+5 -160 replies
4/20rc4030: convert to qdevhw/mips.h hw/mips_jazz.c hw/rc4030.c +1 more+199 -240 replies
5/20Add a stub for some rc4030 functions, if rc4030 support is not compiled in.arch_init.c+21 -00 replies
6/20qdev: convert i8042 to rc4030 devicehw/mips_jazz.c hw/pc.h hw/pckbd.c+46 -240 replies
7/20qdev: convert parallel port to rc4030 devicehw/mips_jazz.c hw/parallel.c hw/pc.h+51 -140 replies
8/20qdev: convert serial port to rc4030 devicehw/mips_jazz.c hw/pc.h hw/serial.c+81 -100 replies
9/20qdev: convert jazz-led to sysbus deviceMakefile.objs Makefile.target default-configs/mips-softmmu.mak +6 more+38 -340 replies
10/20Jazz emulation: make video card optionalhw/mips_jazz.c+12 -100 replies
11/20qdev: convert vga-isa-mm to ISA devicehw/mips_jazz.c hw/pc.h hw/vga-isa-mm.c +1 more+41 -300 replies
12/20qdev: convert g364fb to rc4030 devicehw/g364fb.c hw/mips.h hw/mips_jazz.c +1 more+48 -220 replies
13/20qdev: add a rtc forwarder devicehw/mc146818rtc.c hw/mips_jazz.c+56 -260 replies
14/20qdev: add an isa bus devicehw/isa-bus.c hw/mips_jazz.c+31 -100 replies
15/20qdev: convert dp83932 network card to rc4030 devicehw/dp8393x.c hw/mips.h hw/mips_jazz.c+46 -290 replies
16/20qdev: convert floppy disk controller to rc4030 devicehw/fdc.c hw/fdc.h hw/mips_jazz.c+68 -300 replies
17/20qdev: convert esp scsi adapter to rc4030 devicehw/esp.c hw/mips_jazz.c+80 -81 reply
18/20qdev: convert ds1225y nvram to sysbus devicehw/ds1225y.c hw/mips.h hw/mips_jazz.c+76 -700 replies
19/20qdev: add a mips board device, which initializes the ram and the romhw/mips_jazz.c hw/qdev.c+84 -00 replies
20/20qdev: Complete rc4030 conversion, by removing legacy stuffhw/mips_jazz.c hw/rc4030.c hw/rc4030.h+3 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/20] MIPS Magnum conversion to qdev

This series converts devices used by MIPS Magnum emulation to qdev devices.
Once applied, Magnum emulation will be fully creatable by a configuration file (see attached file)

usage:
qemu-system-mips64el -M empty -nodefaults -readconfig magnum -netdev id=nic,type=user
-drive id=disk,format=qcow2,if=none,file=1G.qcow2 -drive id=cdrom,media=cdrom,format=raw,if=none,file=arccd.iso -chardev id=serial0,backend=vc
-chardev id=serial1,backend=vc
-chardev id=parallel0,backend=vc

All feedback is very appreciated.

Regards,

Hervé

# MIPS Magnum definition for QEMU

[device]
driver = "mips-board"
romfile = "/mnt/C/NTPROM.bin"
ramsize = "64"

[device]
driver = "cpu-mips"
model = "R4000"

[device]
driver = "rc4030"

[device]
driver = "isabus"
iobase = "0x90000000"
size = "0x1000000"

[device]
driver = "mc146818rtc"
base_year = "1980"

[device]
driver = "rc4030-g364fb"
iobase = "0x60000000"
vram = "0x40000000"
vram_size = "0x800000"
irq = "3"

[device]
driver = "rc4030-dp83932"
iobase = "0x80001000"
irq = "4"
mac = "52:54:00:12:34:56"
netdev = "nic"

[device]
driver = "rc4030-esp"
iobase = "0x80002000"
irq = "5"
dma = "0"

[device]
driver = "scsi-disk"
drive = "disk"
scsi-id = "0"

[device]
driver = "scsi-disk"
drive = "cdrom"
scsi-id = "4"

[device]
driver = "rc4030-fdc"
iobase = "0x80003000"
irq = "1"
dma = "0"

[device]
driver = "rtc-forward"
iobase = "0x80004000"
size = "0x1000"

[device]
driver = "rc4030-i8042"
iobase = "0x80005000"
size = "0x1000"
mask = "0x1"
irq_kbd = "6"
irq_aux = "7"

[device]
driver = "rc4030-serial"
chardev = "serial0"
iobase = "0x80006000"
irq = "8"

[device]
driver = "rc4030-serial"
chardev = "serial1"
iobase = "0x80007000"
irq = "9"

[device]
driver = "rc4030-parallel"
chardev = "parallel0"
iobase = "0x80008000"
irq = "0"

[device]
driver = "ds1225y"
iobase = "0x80009000"
size = "0x2000"
filename = "nvram"

[device]
driver = "jazz-led"
iobase = "0x8000f000"
size = "0x1000"