Go to the documentation of this file.
48 TarmacTracerRecordV8::TraceInstEntryV8::TraceInstEntryV8(
65 uint8_t _size,
Addr _addr, uint64_t _data)
108 regWidth = (arm_inst->getIntWidth());
109 if (regWidth == 32) {
136 RegId(regClass, regRelIdx));
139 regWidth = ArmStaticInst::getCurSveVecLenInBits(
thread);
140 auto num_elements = regWidth / (
sizeof(
VecElem) * 8);
143 values.resize(num_elements);
145 for (
auto i = 0;
i < num_elements;
i++) {
161 RegId(regClass, regRelIdx));
165 regWidth = ArmStaticInst::getCurSveVecLenInBits(
thread) / 8;
166 auto num_elements = regWidth / 16;
169 values.resize(num_elements);
172 auto vv = pred_container.
as<uint16_t>();
173 for (
auto i = 0;
i < num_elements;
i++) {
188 m5::make_unique<TraceInstEntryV8>(tarmCtx,
predicate)
201 m5::make_unique<TraceMemEntryV8>(tarmCtx,
202 static_cast<uint8_t
>(
getSize()),
219 auto single_reg = genRegister<TraceRegEntryV8>(tarmCtx, reg_id);
224 m5::make_unique<TraceRegEntryV8>(single_reg)
231 mergeCCEntry<TraceRegEntryV8>(queue, tarmCtx);
238 const std::string &prefix)
const
242 std::string paddr_str = paddrValid?
csprintf(
":%012x",paddr) :
250 ccprintf(outs,
"%s clk %s %s (%u) %08x%s %s %s %s_%s : %s\n",
260 secureMode?
"s" :
"ns",
268 const std::string &prefix)
const
272 ccprintf(outs,
"%s clk %s M%s%d %08x:%012x %0*x\n",
275 loadAccess?
"R" :
"W",
287 const std::string &prefix)
const
292 ccprintf(outs,
"%s clk %s R %s %s\n",
303 if (regWidth <= 64) {
305 return csprintf(
"%0*x", regWidth / 4, values[Lo]);
312 for (
auto it = values.rbegin(); it != values.rend(); it++) {
314 static_cast<int>(
sizeof(
VecElem) * 2), *it);
void updatePred(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
virtual const VecPredRegContainer & readVecPredReg(const RegId ®) const =0
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
std::string iSetStateToStr(TarmacBaseRecord::ISetState isetstate)
Returns the string representation of the instruction set being currently run according to the Tarmac ...
void addMemEntry(std::vector< MemPtr > &queue, const TarmacContext &ptr)
Generates an Entry for every memory access triggered.
Addr addr
The address that was accessed.
void addRegEntry(std::vector< RegPtr > &queue, const TarmacContext &ptr)
Generate a Record for every register being written.
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
const RegId & destRegIdx(int i) const
Return logical index (architectural reg num) of i'th destination reg.
union Trace::InstRecord::@115 data
const std::string to_string(sc_enc enc)
uint64_t getIntData() const
virtual void updateMisc(const TarmacContext &tarmCtx, RegIndex regRelIdx)
Register update functions.
std::string opModeToStr(OperatingMode opMode)
Returns the string representation of the ARM Operating Mode (CPSR.M[3:0] field) according to the Tarm...
Register ID: describe an architectural register with its class and index.
VecRegT< VecElem, NumElems, true > as() const
View interposers.
TraceRegEntryV8(const TarmacContext &tarmCtx, const RegId ®)
void updateMisc(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
Register update functions.
This object type is encapsulating the informations needed by a Tarmac record to generate it's own ent...
void updateVec(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
int8_t numDestRegs() const
Number of destination registers.
void updateInt(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
VecPredRegT< VecElem, NumElems, Packed, true > as() const
Create a view of this container.
const int FramePointerReg
virtual const VecRegContainer & readVecReg(const RegId ®) const =0
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const StaticInstPtr staticInst
Bitfield< 24, 21 > opcode
bool regValid(Addr daddr)
General data shared by all v8 entries.
Addr size
The size of the memory request.
const int StackPointerReg
std::string formatReg() const
Returning a string which contains the formatted register value: transformed in hex,...
void ccprintf(cp::Print &print)
const int ReturnAddressReg
void addInstEntry(std::vector< InstPtr > &queue, const TarmacContext &ptr)
Generates an Entry for the executed instruction.
TraceMemEntryV8(const TarmacContext &tarmCtx, uint8_t _size, Addr _addr, uint64_t _data)
std::string csprintf(const char *format, const Args &...args)
bool translateFunctional(ThreadContext *tc, Addr vaddr, Addr &paddr)
Do a functional lookup on the TLB (for debugging) and don't modify any internal state.
virtual void updateInt(const TarmacContext &tarmCtx, RegIndex regRelIdx)
virtual BaseTLB * getDTBPtr()=0
Tick curTick()
The current simulated tick.
bool predicate
is the predicate for execution this inst true or false (not execed)?
T * get() const
Directly access the pointer itself without taking a reference.
Generated on Wed Sep 30 2020 14:02:01 for gem5 by doxygen 1.8.17