31 #ifndef __ARCH_GENERIC_TYPES_HH__
32 #define __ARCH_GENERIC_TYPES_HH__
104 return !(*
this == opc);
130 template <
class MachInst>
175 template <
class MachInst>
177 operator<<(std::ostream & os, const SimplePCState<MachInst> &
pc)
184 template <
class MachInst>
222 this->
nupc() != this->
upc() + 1;
253 return !(*
this == opc);
273 template <
class MachInst>
275 operator<<(std::ostream & os, const UPCState<MachInst> &
pc)
278 pc.pc(),
pc.npc(),
pc.upc(),
pc.nupc());
283 template <
class MachInst>
334 return !(*
this == opc);
352 template <
class MachInst>
354 operator<<(std::ostream & os, const DelaySlotPCState<MachInst> &
pc)
357 pc.pc(),
pc.npc(),
pc.nnpc());
362 template <
class MachInst>
431 return !(*
this == opc);
451 template <
class MachInst>
453 operator<<(std::ostream & os, const DelaySlotUPCState<MachInst> &
pc)
456 pc.pc(),
pc.npc(),
pc.nnpc(),
pc.upc(),
pc.nupc());
void ccprintf(cp::Print &print)
SimplePCState< MachInst > Base
bool operator!=(const DelaySlotUPCState< MachInst > &opc) const
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
bool operator!=(const DelaySlotPCState< MachInst > &opc) const
void serialize(CheckpointOut &cp) const override
Serialize an object.
MicroPC microPC() const
Returns the current micropc.
void serialize(CheckpointOut &cp) const override
Serialize an object.
bool operator==(const DelaySlotPCState< MachInst > &opc) const
Addr instAddr() const
Returns the memory address the bytes of this instruction came from.
DelaySlotPCState(Addr val)
#define UNSERIALIZE_SCALAR(scalar)
DelaySlotUPCState(Addr val)
void set(Addr val)
Force this PC to reflect a particular value, resetting all its other fields around it...
DelaySlotPCState< MachInst > Base
void serialize(CheckpointOut &cp) const override
Serialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
bool operator==(const DelaySlotUPCState< MachInst > &opc) const
Basic support for object serialization.
#define SERIALIZE_SCALAR(scalar)
bool operator==(const PCStateBase &opc) const
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Addr nextInstAddr() const
Returns the memory address the bytes of the next instruction came from.
std::ostream CheckpointOut
bool operator!=(const PCStateBase &opc) const
SimplePCState< MachInst > Base
bool operator==(const UPCState< MachInst > &opc) const
bool operator!=(const UPCState< MachInst > &opc) const