hw/m68k: QOMify the mcf5206 system integration module
PATCH 1/1 hw/m68k: QOMify the mcf5206 system integration module
The mcf5206 system integration module should be a proper device. Let's finally QOMify it.
--- hw/m68k/an5206.c | 14 ++++++++++++-- hw/m68k/mcf5206.c | 44 ++++++++++++++++++++++++++++++++++--------- include/hw/m68k/mcf.h | 3 +-- 3 files changed, 48 insertions(+), 13 deletions(-)
hw/m68k/an5206.c +12 -2
@@ -21,7 +21,17 @@#define AN5206_MBAR_ADDR 0x10000000#define AN5206_RAMBAR_ADDR 0x20000000 -/* Board init. */ +static void mcf5206_init (MemoryRegion *sysmem,uint32_t base) +{ +DeviceState *dev; +SysBusDevice *s; + + dev =qdev_new (TYPE_MCF5206_MBAR ); + s =SYS_BUS_DEVICE (dev); +sysbus_realize_and_unref (s, &error_fatal); + +memory_region_add_subregion (sysmem, base,sysbus_mmio_get_region (s,0 )); +}static void an5206_init (MachineState *machine) {
@@ -51,7 +61,7 @@ static void an5206_init(MachineState *machine)memory_region_init_ram (sram,NULL ,"an5206.sram" ,512 , &error_fatal);memory_region_add_subregion (address_space_mem,AN5206_RAMBAR_ADDR , sram); -mcf5206_init (address_space_mem,AN5206_MBAR_ADDR , cpu); +mcf5206_init (address_space_mem,AN5206_MBAR_ADDR );/* Load kernel. */ if (!kernel_filename) {
hw/m68k/mcf5206.c +35 -9
85 lines not on this page · raw message
include/hw/m68k/mcf.h +1 -2
@@ -18,7 +18,6 @@ qemu_irq *mcf_intc_init(struct MemoryRegion *sysmem, M68kCPU *cpu);/* mcf5206.c */ -qemu_irq *mcf5206_init (struct MemoryRegion *sysmem, -uint32_t base,M68kCPU *cpu); +#define TYPE_MCF5206_MBAR "mcf5206-mbar"#endif
Signature · 1 line
2.26.2
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1 === TEST SCRIPT END ===
TEST check-unit: tests/test-char
Unexpected error in object_property_try_add() at /tmp/qemu-test/src/qom/object.c:1181:
attempt to add duplicate property 'serial-id' to object (type 'container')
ERROR test-char - too few tests run (expected 38, got 9)
make: *** [check-unit] Error 1
make: *** Waiting for unfinished jobs....
TEST iotest-qcow2: 024
TEST iotest-qcow2: 025
---
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=c7043a273bd442bb9a9adffcf0104667', '-u', '1001', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-n8gugtlv/src/docker-src.2020-08-19-03.37.05.10441:/var/tmp/qemu:z,ro', 'qemu/centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2. filter=--filter=label=com.qemu.instance.uuid=c7043a273bd442bb9a9adffcf0104667
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-n8gugtlv/src'
make: *** [docker-run-test-quick@centos7] Error 2
real 13m36.209s
user 0m8.909s
The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]