quic/qbox
|
QEMU device abstraction as a SystemC module. More...
#include <device.h>
Public Member Functions | |
void | instantiate () |
void | realize () |
QemuDevice (const sc_core::sc_module_name &name, QemuInstance &inst, const char *qom_type) | |
Construct a QEMU device. | |
virtual void | before_end_of_elaboration () override |
virtual void | end_of_elaboration () override |
void | set_qom_type (std::string const &qom_type) |
const char * | get_qom_type () const |
qemu::Device | get_qemu_dev () |
QemuInstance & | get_qemu_inst () |
void | set_sysbus_as_parent_bus (void) |
![]() | |
virtual bool | can_run () |
SCP_LOGGER () | |
Protected Attributes | |
QemuInstance & | m_inst |
qemu::Device | m_dev |
bool | m_instanciated = false |
bool | m_realized = false |
QEMU device abstraction as a SystemC module.
This class abstract a QEMU device as a SystemC module. It is constructed using the QEMU instance it will lie in, and the QOM type name corresponding to the device. This class is meant to be inherited from by children classes that implement a given device.
The elaboration flow is as follows:
|
inline |
Construct a QEMU device.
[in] | name | SystemC module name |
[in] | inst | QEMU instance the device will be created in |
[in] | qom_type | Device QOM type name |
Reimplemented in qemu_xhci::Device.