Gem5 is now linked against fail (not fully working)
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1466 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
27
src/core/sal/gem5/FailGem5Device.cc
Normal file
27
src/core/sal/gem5/FailGem5Device.cc
Normal file
@ -0,0 +1,27 @@
|
||||
#include "FailGem5Device.hh"
|
||||
#include "debug/Fail.hh"
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
FailGem5Device::FailGem5Device(Params *p)
|
||||
: BasicPioDevice(p)
|
||||
{
|
||||
pioSize = 0x60;
|
||||
DPRINTF(Fail, "Fail startup()\n");
|
||||
fail::simulator.startup();
|
||||
}
|
||||
|
||||
Tick FailGem5Device::read(PacketPtr pkt)
|
||||
{
|
||||
return pioDelay;
|
||||
}
|
||||
|
||||
Tick FailGem5Device::write(PacketPtr pkt)
|
||||
{
|
||||
return pioDelay;
|
||||
}
|
||||
|
||||
FailGem5Device* FailGem5DeviceParams::create()
|
||||
{
|
||||
return new FailGem5Device(this);
|
||||
}
|
||||
Reference in New Issue
Block a user