gem5  v21.1.0.2
Public Member Functions | Private Types | Private Attributes | List of all members
gem5::PowerISA::PCState Class Reference

#include <pcstate.hh>

Inheritance diagram for gem5::PowerISA::PCState:
gem5::GenericISA::SimplePCState< 4 > gem5::GenericISA::PCStateBase gem5::Serializable

Public Member Functions

 PCState ()
void set (Addr val)
 PCState (Addr val)
ByteOrder byteOrder () const
void byteOrder (ByteOrder order)
- Public Member Functions inherited from gem5::GenericISA::SimplePCState< 4 >
Addr pc () const
void pc (Addr val)
Addr npc () const
void npc (Addr val)
void set (Addr val)
void setNPC (Addr val)
 SimplePCState ()
 SimplePCState (Addr val)
bool branching () const
void advance ()
- Public Member Functions inherited from gem5::GenericISA::PCStateBase
Addr instAddr () const
 Returns the memory address the bytes of this instruction came from. More...
Addr nextInstAddr () const
 Returns the memory address the bytes of the next instruction came from. More...
MicroPC microPC () const
 Returns the current micropc. More...
void set (Addr val)
 Force this PC to reflect a particular value, resetting all its other fields around it. More...
bool operator== (const PCStateBase &opc) const
bool operator!= (const PCStateBase &opc) const
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
virtual ~Serializable ()
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
void serializeSection (CheckpointOut &cp, const std::string &name) const
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
void unserializeSection (CheckpointIn &cp, const std::string &name)

Private Types

typedef GenericISA::SimplePCState< 4 > Base

Private Attributes

ByteOrder guestByteOrder = ByteOrder::big

Additional Inherited Members

- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it. More...
- Protected Types inherited from gem5::GenericISA::SimplePCState< 4 >
typedef PCStateBase Base
- Protected Member Functions inherited from gem5::GenericISA::PCStateBase
 PCStateBase ()
 PCStateBase (Addr val)
- Protected Attributes inherited from gem5::GenericISA::PCStateBase
Addr _pc
Addr _npc

Detailed Description

Definition at line 42 of file pcstate.hh.

Member Typedef Documentation

◆ Base

Definition at line 45 of file pcstate.hh.

Constructor & Destructor Documentation

◆ PCState() [1/2]

gem5::PowerISA::PCState::PCState ( )

Definition at line 49 of file pcstate.hh.

◆ PCState() [2/2]

gem5::PowerISA::PCState::PCState ( Addr  val)

Definition at line 59 of file pcstate.hh.

References set(), and gem5::X86ISA::val.

Member Function Documentation

◆ byteOrder() [1/2]

ByteOrder gem5::PowerISA::PCState::byteOrder ( ) const

Definition at line 65 of file pcstate.hh.

References guestByteOrder.

◆ byteOrder() [2/2]

void gem5::PowerISA::PCState::byteOrder ( ByteOrder  order)

Definition at line 71 of file pcstate.hh.

References guestByteOrder.

◆ set()

void gem5::PowerISA::PCState::set ( Addr  val)

Member Data Documentation

◆ guestByteOrder

ByteOrder gem5::PowerISA::PCState::guestByteOrder = ByteOrder::big

Definition at line 46 of file pcstate.hh.

Referenced by byteOrder().

The documentation for this class was generated from the following file:

Generated on Tue Sep 21 2021 12:31:50 for gem5 by doxygen 1.8.17