Go to the documentation of this file.
50 TarmacTracerRecordV8::TraceInstEntryV8::TraceInstEntryV8(
68 uint8_t _size,
Addr _addr, uint64_t _data)
111 regWidth = (arm_inst->getIntWidth());
112 if (regWidth == 32) {
139 RegId(regClass, regRelIdx));
140 auto vv = vec_container.as<
VecElem>();
142 regWidth = ArmStaticInst::getCurSveVecLenInBits(
thread);
143 auto num_elements = regWidth / (
sizeof(
VecElem) * 8);
146 values.resize(num_elements);
148 for (
auto i = 0;
i < num_elements;
i++) {
164 RegId(regClass, regRelIdx));
168 regWidth = ArmStaticInst::getCurSveVecLenInBits(
thread) / 8;
169 auto num_elements = regWidth / 16;
172 values.resize(num_elements);
175 auto vv = pred_container.as<uint16_t>();
176 for (
auto i = 0;
i < num_elements;
i++) {
191 std::make_unique<TraceInstEntryV8>(tarmCtx,
predicate)
204 std::make_unique<TraceMemEntryV8>(tarmCtx,
205 static_cast<uint8_t
>(
getSize()),
222 auto single_reg = genRegister<TraceRegEntryV8>(tarmCtx, reg_id);
226 queue.push_back(std::make_unique<TraceRegEntryV8>(single_reg));
232 mergeCCEntry<TraceRegEntryV8>(queue, tarmCtx);
239 const std::string &prefix)
const
243 std::string paddr_str = paddrValid?
csprintf(
":%012x",paddr) :
251 ccprintf(outs,
"%s clk %s %s (%u) %08x%s %s %s %s_%s : %s\n",
261 secureMode?
"s" :
"ns",
269 const std::string &prefix)
const
273 ccprintf(outs,
"%s clk %s M%s%d %08x:%012x %0*x\n",
276 loadAccess?
"R" :
"W",
288 const std::string &prefix)
const
293 ccprintf(outs,
"%s clk %s R %s %s\n",
304 if (regWidth <= 64) {
306 return csprintf(
"%0*x", regWidth / 4, values[Lo]);
313 for (
auto it = values.rbegin(); it != values.rend(); it++) {
315 static_cast<int>(
sizeof(
VecElem) * 2), *it);
void updatePred(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
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 ...
union Trace::InstRecord::@112 data
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.
virtual BaseMMU * getMMUPtr()=0
const std::string to_string(sc_enc enc)
uint64_t getIntData() const
virtual const TheISA::VecRegContainer & readVecReg(const RegId ®) const =0
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.
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
virtual const TheISA::VecPredRegContainer & readVecPredReg(const RegId ®) const =0
const int FramePointerReg
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.
Tick curTick()
The universal simulation clock.
TraceMemEntryV8(const TarmacContext &tarmCtx, uint8_t _size, Addr _addr, uint64_t _data)
bool translateFunctional(ThreadContext *tc, Addr vaddr, Addr &paddr)
std::string csprintf(const char *format, const Args &...args)
virtual void updateInt(const TarmacContext &tarmCtx, RegIndex regRelIdx)
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 Tue Jun 22 2021 15:28:21 for gem5 by doxygen 1.8.17