summaryrefslogtreecommitdiff
path: root/dev/io_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/io_device.cc')
-rw-r--r--dev/io_device.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev/io_device.cc b/dev/io_device.cc
index 4f53ba48d..910b889d8 100644
--- a/dev/io_device.cc
+++ b/dev/io_device.cc
@@ -29,6 +29,7 @@
#include "dev/io_device.hh"
#include "mem/bus/base_interface.hh"
#include "mem/bus/dma_interface.hh"
+#include "sim/builder.hh"
PioDevice::PioDevice(const std::string &name)
: FunctionalMemory(name), pioInterface(NULL)
@@ -40,6 +41,8 @@ PioDevice::~PioDevice()
delete pioInterface;
}
+DEFINE_SIM_OBJECT_CLASS_NAME("PioDevice", PioDevice)
+
DmaDevice::DmaDevice(const std::string &name)
: PioDevice(name), dmaInterface(NULL)
{}
@@ -50,3 +53,5 @@ DmaDevice::~DmaDevice()
delete dmaInterface;
}
+DEFINE_SIM_OBJECT_CLASS_NAME("DmaDevice", DmaDevice)
+