projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check NIC model in some NIC init functions (Mark McLoughlin)
[qemu]
/
hw
/
smc91c111.c
diff --git
a/hw/smc91c111.c
b/hw/smc91c111.c
index
27a3158
..
f5b29a7
100644
(file)
--- a/
hw/smc91c111.c
+++ b/
hw/smc91c111.c
@@
-695,6
+695,8
@@
void smc91c111_init(NICInfo *nd, uint32_t base, qemu_irq irq)
smc91c111_state *s;
int iomemtype;
+ qemu_check_nic_model(nd, "smc91c111");
+
s = (smc91c111_state *)qemu_mallocz(sizeof(smc91c111_state));
iomemtype = cpu_register_io_memory(0, smc91c111_readfn,
smc91c111_writefn, s);