1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 65 unchanged lines hidden (view full) --- 74 /** 75 * All writes are simply ignored. 76 * @param pkt The memory request. 77 * @param data the data to not write. 78 */ 79 virtual Tick write(PacketPtr pkt); 80}; 81 |
82/** 83 * BadAddr is a device that fills the packet's result field with "BadAddress". 84 * @todo: Consider consolidating with IsaFake and similar classes. 85 */ 86class BadAddr : public BasicPioDevice 87{ 88 public: 89 struct Params : public BasicPioDevice::Params 90 { 91 }; 92 93 BadAddr(Params *p); 94 virtual void init(); 95 virtual Tick read(PacketPtr pkt); 96 virtual Tick write(PacketPtr pkt); 97}; 98 |
99#endif // __TSUNAMI_FAKE_HH__ |