mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
hw/sparc/sun4m: Use UnimplementedDevice for I/O devices
These devices are not slots on a bus, but real I/O devices that we do not implement. As the ISDN ROM would be a ROMD device, also model it as UnimplementedDevice. Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com> Message-Id: <20200510152840.13558-2-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
49ee115552
commit
077f0f3dad
2 changed files with 8 additions and 4 deletions
|
@ -5,6 +5,7 @@ config SUN4M
|
||||||
select CS4231
|
select CS4231
|
||||||
select ECCMEMCTL
|
select ECCMEMCTL
|
||||||
select EMPTY_SLOT
|
select EMPTY_SLOT
|
||||||
|
select UNIMP
|
||||||
select ESCC
|
select ESCC
|
||||||
select ESP
|
select ESP
|
||||||
select FDC
|
select FDC
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
#include "hw/nvram/fw_cfg.h"
|
#include "hw/nvram/fw_cfg.h"
|
||||||
#include "hw/char/escc.h"
|
#include "hw/char/escc.h"
|
||||||
#include "hw/empty_slot.h"
|
#include "hw/empty_slot.h"
|
||||||
|
#include "hw/misc/unimp.h"
|
||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
#include "hw/loader.h"
|
#include "hw/loader.h"
|
||||||
#include "elf.h"
|
#include "elf.h"
|
||||||
|
@ -968,7 +969,7 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hwdef->sx_base) {
|
if (hwdef->sx_base) {
|
||||||
empty_slot_init(hwdef->sx_base, 0x2000);
|
create_unimplemented_device("SUNW,sx", hwdef->sx_base, 0x2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
nvram = m48t59_init(slavio_irq[0], hwdef->nvram_base, 0, 0x2000, 1968, 8);
|
nvram = m48t59_init(slavio_irq[0], hwdef->nvram_base, 0, 0x2000, 1968, 8);
|
||||||
|
@ -1031,14 +1032,16 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef,
|
||||||
if (hwdef->dbri_base) {
|
if (hwdef->dbri_base) {
|
||||||
/* ISDN chip with attached CS4215 audio codec */
|
/* ISDN chip with attached CS4215 audio codec */
|
||||||
/* prom space */
|
/* prom space */
|
||||||
empty_slot_init(hwdef->dbri_base+0x1000, 0x30);
|
create_unimplemented_device("SUNW,DBRI.prom",
|
||||||
|
hwdef->dbri_base + 0x1000, 0x30);
|
||||||
/* reg space */
|
/* reg space */
|
||||||
empty_slot_init(hwdef->dbri_base+0x10000, 0x100);
|
create_unimplemented_device("SUNW,DBRI",
|
||||||
|
hwdef->dbri_base + 0x10000, 0x100);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hwdef->bpp_base) {
|
if (hwdef->bpp_base) {
|
||||||
/* parallel port */
|
/* parallel port */
|
||||||
empty_slot_init(hwdef->bpp_base, 0x20);
|
create_unimplemented_device("SUNW,bpp", hwdef->bpp_base, 0x20);
|
||||||
}
|
}
|
||||||
|
|
||||||
initrd_size = 0;
|
initrd_size = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue