Go to the documentation of this file.
49 using namespace ArmISA;
53 TarmacTracerRecordV8::TraceInstEntryV8::TraceInstEntryV8(
71 uint8_t _size,
Addr _addr, uint64_t _data)
114 regWidth = (arm_inst->getIntWidth());
115 if (regWidth == 32) {
146 auto num_elements = regWidth / (
sizeof(
VecElem) * 8);
149 values.resize(num_elements);
151 for (
auto i = 0;
i < num_elements;
i++) {
172 auto num_elements = regWidth / 16;
175 values.resize(num_elements);
178 auto vv = pred_container.as<uint16_t>();
179 for (
auto i = 0;
i < num_elements;
i++) {
194 std::make_unique<TraceInstEntryV8>(tarmCtx,
predicate)
207 std::make_unique<TraceMemEntryV8>(tarmCtx,
208 static_cast<uint8_t
>(
getSize()),
225 auto single_reg = genRegister<TraceRegEntryV8>(tarmCtx, reg_id);
229 queue.push_back(std::make_unique<TraceRegEntryV8>(single_reg));
235 mergeCCEntry<TraceRegEntryV8>(queue, tarmCtx);
242 const std::string &prefix)
const
246 std::string paddr_str = paddrValid?
csprintf(
":%012x",paddr) :
254 ccprintf(outs,
"%s clk %s %s (%u) %08x%s %s %s %s_%s : %s\n",
264 secureMode?
"s" :
"ns",
272 const std::string &prefix)
const
276 ccprintf(outs,
"%s clk %s M%s%d %08x:%012x %0*x\n",
279 loadAccess?
"R" :
"W",
291 const std::string &prefix)
const
296 ccprintf(outs,
"%s clk %s R %s %s\n",
307 if (regWidth <= 64) {
309 return csprintf(
"%0*x", regWidth / 4, values[Lo]);
316 for (
auto it = values.rbegin(); it != values.rend(); it++) {
318 static_cast<int>(
sizeof(
VecElem) * 2), *it);
Tick curTick()
The universal simulation clock.
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 ...
This object type is encapsulating the informations needed by a Tarmac record to generate it's own ent...
VecPredReg::Container VecPredRegContainer
virtual RegVal getReg(const RegId ®) const
constexpr auto & FramePointerReg
void addInstEntry(std::vector< InstPtr > &queue, const TarmacContext &ptr)
Generates an Entry for the executed instruction.
virtual BaseMMU * getMMUPtr()=0
union gem5::Trace::InstRecord::@336 data
const std::string to_string(sc_enc enc)
std::string formatReg() const
Returning a string which contains the formatted register value: transformed in hex,...
uint64_t getIntData() const
std::string csprintf(const char *format, const Args &...args)
static unsigned getCurSveVecLenInBits(ThreadContext *tc)
T * get() const
Directly access the pointer itself without taking a reference.
bool regValid(Addr daddr)
virtual void updateMisc(const TarmacContext &tarmCtx, RegIndex regRelIdx)
Register update functions.
const RegId & destRegIdx(int i) const
Return logical index (architectural reg num) of i'th destination reg.
void updateMisc(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
Register update functions.
void ccprintf(cp::Print &print)
constexpr auto & ReturnAddressReg
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
void addRegEntry(std::vector< RegPtr > &queue, const TarmacContext &ptr)
Generate a Record for every register being written.
Bitfield< 24, 21 > opcode
Vector Register Abstraction This generic class is the model in a particularization of MVC,...
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
const StaticInstPtr staticInst
VecElem * as()
View interposers.
TraceRegEntryV8(const TarmacContext &tarmCtx, const RegId ®)
void updatePred(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
virtual void updateInt(const TarmacContext &tarmCtx, RegIndex regRelIdx)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void updateVec(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
Addr size
The size of the memory request.
TraceMemEntryV8(const TarmacContext &tarmCtx, uint8_t _size, Addr _addr, uint64_t _data)
bool predicate
is the predicate for execution this inst true or false (not execed)?
TranslationGenPtr translateFunctional(Addr start, Addr size, ThreadContext *tc, Mode mode, Request::Flags flags) override
Returns a translation generator for a region of virtual addresses, instead of directly translating a ...
Addr addr
The address that was accessed.
uint8_t numDestRegs() const
Number of destination registers.
constexpr auto & StackPointerReg
General data shared by all v8 entries.
void addMemEntry(std::vector< MemPtr > &queue, const TarmacContext &ptr)
Generates an Entry for every memory access triggered.
void updateInt(const TarmacContext &tarmCtx, RegIndex regRelIdx) override
std::string opModeToStr(OperatingMode opMode)
Returns the string representation of the ARM Operating Mode (CPSR.M[3:0] field) according to the Tarm...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Register ID: describe an architectural register with its class and index.
Generated on Thu Jun 16 2022 10:41:41 for gem5 by doxygen 1.8.17