Go to the documentation of this file.
49 using namespace ArmISA;
53 TarmacTracerRecordV8::TraceInstEntryV8::TraceInstEntryV8(
71 uint8_t _size,
Addr _addr, uint64_t _data)
111 regWidth = (arm_inst->getIntWidth());
112 if (regWidth == 32) {
137 auto num_elements = regWidth / (
sizeof(
VecElem) * 8);
140 values.resize(num_elements);
142 for (
auto i = 0;
i < num_elements;
i++) {
160 auto num_elements = regWidth / 16;
163 values.resize(num_elements);
166 auto vv = pred_container.as<uint16_t>();
167 for (
auto i = 0;
i < num_elements;
i++) {
182 std::make_unique<TraceInstEntryV8>(tarmCtx,
predicate)
195 std::make_unique<TraceMemEntryV8>(tarmCtx,
196 static_cast<uint8_t
>(
getSize()),
213 auto single_reg = genRegister<TraceRegEntryV8>(tarmCtx, reg_id);
217 queue.push_back(std::make_unique<TraceRegEntryV8>(single_reg));
223 mergeCCEntry<TraceRegEntryV8>(queue, tarmCtx);
230 const std::string &prefix)
const
234 std::string paddr_str = paddrValid?
csprintf(
":%012x",paddr) :
242 ccprintf(outs,
"%s clk %s %s (%u) %08x%s %s %s %s_%s : %s\n",
252 secureMode?
"s" :
"ns",
260 const std::string &prefix)
const
264 ccprintf(outs,
"%s clk %s M%s%d %08x:%012x %0*x\n",
267 loadAccess?
"R" :
"W",
279 const std::string &prefix)
const
284 ccprintf(outs,
"%s clk %s R %s %s\n",
295 if (regWidth <= 64) {
297 const auto regValue = values[
Lo] &
mask(regWidth);
298 return csprintf(
"%0*x", regWidth / 4, regValue);
305 for (
auto it = values.rbegin(); it != values.rend(); it++) {
307 static_cast<int>(
sizeof(
VecElem) * 2), *it);
std::string opModeToStr(OperatingMode opMode)
Returns the string representation of the ARM Operating Mode (CPSR.M[3:0] field) according to the Tarm...
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
Tick curTick()
The universal simulation clock.
Addr size
The size of the memory request.
VecPredReg::Container VecPredRegContainer
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
uint64_t getIntData() const
void updateMisc(const TarmacContext &tarmCtx) override
void addInstEntry(std::vector< InstPtr > &queue, const TarmacContext &ptr)
Generates an Entry for the executed instruction.
virtual RegVal getReg(const RegId ®) const
constexpr auto & FramePointerReg
bool predicate
is the predicate for execution this inst true or false (not execed)?
virtual BaseMMU * getMMUPtr()=0
General data shared by all v8 entries.
TraceRegEntryV8(const TarmacContext &tarmCtx, const RegId ®)
const std::string to_string(sc_enc enc)
void addRegEntry(std::vector< RegPtr > &queue, const TarmacContext &ptr)
Generate a Record for every register being written.
virtual void updateMisc(const TarmacContext &tarmCtx)
Register update functions.
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)
const RegId & destRegIdx(int i) const
Return logical index (architectural reg num) of i'th destination reg.
void updateVec(const TarmacContext &tarmCtx) override
void ccprintf(cp::Print &print)
constexpr uint64_t mask(unsigned nbits)
Generate a 64-bit mask of 'nbits' 1s, right justified.
constexpr auto & ReturnAddressReg
Bitfield< 24, 21 > opcode
Vector Register Abstraction This generic class is the model in a particularization of MVC,...
void addMemEntry(std::vector< MemPtr > &queue, const TarmacContext &ptr)
Generates an Entry for every memory access triggered.
VecElem * as()
View interposers.
This object type is encapsulating the informations needed by a Tarmac record to generate it's own ent...
std::string formatReg() const
Returning a string which contains the formatted register value: transformed in hex,...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
virtual void print(std::ostream &outs, int verbosity=0, const std::string &prefix="") const override
const StaticInstPtr staticInst
union gem5::trace::InstRecord::Data data
virtual void updateInt(const TarmacContext &tarmCtx)
TraceMemEntryV8(const TarmacContext &tarmCtx, uint8_t _size, Addr _addr, uint64_t _data)
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 ...
void updateInt(const TarmacContext &tarmCtx) override
uint8_t numDestRegs() const
Number of destination registers.
constexpr auto & StackPointerReg
Addr addr
The address that was accessed.
std::string iSetStateToStr(TarmacBaseRecord::ISetState isetstate)
Returns the string representation of the instruction set being currently run according to the Tarmac ...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void updatePred(const TarmacContext &tarmCtx) override
Register ID: describe an architectural register with its class and index.
Generated on Sun Jul 30 2023 01:56:50 for gem5 by doxygen 1.8.17