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; --- 109 unchanged lines hidden (view full) --- 118 TsunamiIO(const Params *p); 119 120 const Params * 121 params() const 122 { 123 return dynamic_cast<const Params *>(_params); 124 } 125 |
126 Tick read(PacketPtr pkt) override; 127 Tick write(PacketPtr pkt) override; |
128 129 /** 130 * Post an PIC interrupt to the CPU via the CChip 131 * @param bitvector interrupt to post. 132 */ 133 void postPIC(uint8_t bitvector); 134 135 /** 136 * Clear a posted interrupt 137 * @param bitvector interrupt to clear 138 */ 139 void clearPIC(uint8_t bitvector); 140 141 void serialize(CheckpointOut &cp) const override; 142 void unserialize(CheckpointIn &cp) override; 143 144 /** 145 * Start running. 146 */ |
147 void startup() override; |
148 149}; 150 151#endif // __DEV_TSUNAMI_IO_HH__ |