summaryrefslogtreecommitdiff
path: root/src/dev/isa_fake.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-11-02 15:18:35 -0500
committerKevin Lim <ktlim@umich.edu>2006-11-02 15:18:35 -0500
commitc3485a654888f641dca23128f8197ef747c706d2 (patch)
treeaec1f9bf2932bd10e5c834b61ba9fab4d3a409c0 /src/dev/isa_fake.hh
parent8d53f298a6efd3312cc1096b13b6be9e6a7fe02f (diff)
downloadgem5-c3485a654888f641dca23128f8197ef747c706d2.tar.xz
Implement device that will return BadAddress.
--HG-- extra : convert_revision : d833c20f691e01c84a0678f19f7d83f3ee50c0c1
Diffstat (limited to 'src/dev/isa_fake.hh')
-rw-r--r--src/dev/isa_fake.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/dev/isa_fake.hh b/src/dev/isa_fake.hh
index 366061c25..6665f1a78 100644
--- a/src/dev/isa_fake.hh
+++ b/src/dev/isa_fake.hh
@@ -79,4 +79,21 @@ class IsaFake : public BasicPioDevice
virtual Tick write(PacketPtr pkt);
};
+/**
+ * BadAddr is a device that fills the packet's result field with "BadAddress".
+ * @todo: Consider consolidating with IsaFake and similar classes.
+ */
+class BadAddr : public BasicPioDevice
+{
+ public:
+ struct Params : public BasicPioDevice::Params
+ {
+ };
+
+ BadAddr(Params *p);
+ virtual void init();
+ virtual Tick read(PacketPtr pkt);
+ virtual Tick write(PacketPtr pkt);
+};
+
#endif // __TSUNAMI_FAKE_HH__