projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print a warning if two devices are sharing the same interrupt
[gem5.git]
/
dev
/
io_device.cc
diff --git
a/dev/io_device.cc
b/dev/io_device.cc
index 65a18aec60f07cfb9ff9f5ab8aae7fb4f76dae1f..7703ad5e303647e2ff5045a50602ebd2c5179fe0 100644
(file)
--- a/
dev/io_device.cc
+++ b/
dev/io_device.cc
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 200
3
The Regents of The University of Michigan
+ * Copyright (c) 200
4
The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-28,9
+28,11
@@
#include "dev/io_device.hh"
#include "mem/bus/base_interface.hh"
#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)
PioDevice::PioDevice(const std::string &name)
- : FunctionalMemory(name), pioInterface(NULL)
+ : FunctionalMemory(name), pioInterface(NULL)
, pioLatency(0)
{}
PioDevice::~PioDevice()
{}
PioDevice::~PioDevice()
@@
-39,6
+41,8
@@
PioDevice::~PioDevice()
delete pioInterface;
}
delete pioInterface;
}
+DEFINE_SIM_OBJECT_CLASS_NAME("PioDevice", PioDevice)
+
DmaDevice::DmaDevice(const std::string &name)
: PioDevice(name), dmaInterface(NULL)
{}
DmaDevice::DmaDevice(const std::string &name)
: PioDevice(name), dmaInterface(NULL)
{}
@@
-49,3
+53,5
@@
DmaDevice::~DmaDevice()
delete dmaInterface;
}
delete dmaInterface;
}
+DEFINE_SIM_OBJECT_CLASS_NAME("DmaDevice", DmaDevice)
+