gem5 v24.0.0.0
|
#include <inst_res.hh>
Public Member Functions | |
InstResult () | |
Default constructor creates an invalid result. | |
InstResult (const InstResult &other) | |
InstResult (const RegClass ®_class, RegVal val) | |
InstResult (const RegClass ®_class, const void *val) | |
InstResult & | operator= (const InstResult &that) |
bool | operator== (const InstResult &that) const |
Result comparison Two invalid results always differ. | |
bool | operator!= (const InstResult &that) const |
const RegClass & | regClass () const |
bool | isValid () const |
bool | isBlob () const |
RegVal | asRegVal () const |
const void * | asBlob () const |
std::string | asString () const |
std::string | asString (const int64_t &num_bytes) const |
Private Types | |
using | BlobPtr = std::unique_ptr<const uint8_t[]> |
Private Member Functions | |
bool | blob () const |
bool | valid () const |
RegVal | getRegVal () const |
const void * | getBlob () const |
void | set (const void *val) |
void | set (RegVal val) |
void | set (const InstResult &other) |
Private Attributes | |
std::variant< BlobPtr, RegVal > | value |
const RegClass * | _regClass = nullptr |
Definition at line 54 of file inst_res.hh.
|
private |
Definition at line 57 of file inst_res.hh.
|
inline |
Default constructor creates an invalid result.
Definition at line 92 of file inst_res.hh.
|
inline |
Definition at line 93 of file inst_res.hh.
References gem5::ArmISA::set.
Definition at line 98 of file inst_res.hh.
References gem5::ArmISA::set, and gem5::X86ISA::val.
|
inline |
Definition at line 104 of file inst_res.hh.
References gem5::ArmISA::set, and gem5::X86ISA::val.
|
inline |
Definition at line 163 of file inst_res.hh.
References blob(), and getBlob().
Referenced by gem5::Checker< class >::copyResult().
|
inline |
Definition at line 156 of file inst_res.hh.
References blob(), and getRegVal().
Referenced by gem5::Checker< class >::copyResult().
|
inline |
Definition at line 170 of file inst_res.hh.
References _regClass, blob(), getBlob(), getRegVal(), gem5::X86ISA::reg, and gem5::RegClass::valString().
Referenced by gem5::Checker< DynInstPtr >::dumpInsts(), and gem5::trace::ExeTracerRecord::traceInst().
|
inline |
Definition at line 181 of file inst_res.hh.
References _regClass, blob(), getBlob(), and gem5::RegClass::valString().
|
inlineprivate |
Definition at line 62 of file inst_res.hh.
References value.
Referenced by asBlob(), asRegVal(), asString(), asString(), isBlob(), operator==(), and set().
|
inlineprivate |
Definition at line 67 of file inst_res.hh.
References value.
Referenced by asBlob(), asString(), asString(), operator==(), and set().
|
inlineprivate |
Definition at line 66 of file inst_res.hh.
References value.
Referenced by asRegVal(), asString(), operator==(), and set().
|
inline |
Definition at line 153 of file inst_res.hh.
References blob().
Referenced by gem5::Checker< class >::copyResult().
|
inline |
Definition at line 152 of file inst_res.hh.
References valid().
|
inline |
Definition at line 146 of file inst_res.hh.
References operator==().
|
inline |
Definition at line 111 of file inst_res.hh.
References _regClass, and gem5::ArmISA::set.
|
inline |
Result comparison Two invalid results always differ.
Definition at line 124 of file inst_res.hh.
References _regClass, blob(), getBlob(), getRegVal(), and gem5::RegClass::regBytes().
Referenced by operator!=().
|
inline |
Definition at line 151 of file inst_res.hh.
References _regClass.
|
inlineprivate |
Definition at line 85 of file inst_res.hh.
References blob(), getBlob(), getRegVal(), and gem5::ArmISA::set.
|
inlineprivate |
Definition at line 71 of file inst_res.hh.
References _regClass, gem5::RegClass::regBytes(), gem5::X86ISA::val, and value.
|
inlineprivate |
Definition at line 82 of file inst_res.hh.
References gem5::X86ISA::val, and value.
|
inlineprivate |
|
private |
Definition at line 60 of file inst_res.hh.
Referenced by asString(), asString(), operator=(), operator==(), regClass(), set(), and valid().
Definition at line 59 of file inst_res.hh.
Referenced by blob(), getBlob(), getRegVal(), set(), and set().