mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
m68k: QOMify the MCF Fast Ethernet Controller device
When running qemu-system-m68k with the "-net" parameter (for example simply "-net nic -net user"), there is currently a confusing warning message saying: Warning: requested NIC (anonymous, model mcf_fec) was not created (not supported by this machine?) This seems to happen because the MCF NIC has never been adapted to the currently expected QEMU device behavior. Thus let's QOMify the NIC now to get rid of the warning message. Signed-off-by: Thomas Huth <huth@tuxfamily.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
d5aa3e6e0c
commit
6ac38ed42b
4 changed files with 94 additions and 27 deletions
13
include/hw/m68k/mcf_fec.h
Normal file
13
include/hw/m68k/mcf_fec.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Definitions for the ColdFire Fast Ethernet Controller emulation.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#define TYPE_MCF_FEC_NET "mcf-fec"
|
||||
#define MCF_FEC_NET(obj) OBJECT_CHECK(mcf_fec_state, (obj), TYPE_MCF_FEC_NET)
|
||||
|
||||
#define FEC_NUM_IRQ 13
|
Loading…
Add table
Add a link
Reference in a new issue