Go to the documentation of this file.
68 for (
int x = 1;
x < num;
x++) {
97 const int MaxGlobal = 8;
98 const int MaxOutput = 16;
99 const int MaxLocal = 24;
100 const int MaxInput = 32;
101 const int MaxMicroReg = 40;
103 if (
reg.isIntReg()) {
106 while (reg_idx >= MaxMicroReg)
107 reg_idx -= MaxMicroReg;
112 else if (reg_idx < MaxGlobal)
114 else if (reg_idx < MaxOutput)
116 else if (reg_idx < MaxLocal)
118 else if (reg_idx < MaxInput)
120 else if (reg_idx < MaxMicroReg)
124 switch (reg_idx - MaxMicroReg) {
148 }
else if (
reg.isFloatReg()) {
252 std::stringstream
ss;
319 panic(
"Tried testing condition nonexistant condition code %d", condition);
331 CondCodes condCodes = codes;
343 return !(condCodes.z | (condCodes.n ^ condCodes.v));
345 return condCodes.z | (condCodes.n ^ condCodes.v);
347 return !(condCodes.n ^ condCodes.v);
349 return (condCodes.n ^ condCodes.v);
351 return !(condCodes.c | condCodes.z);
353 return (condCodes.c | condCodes.z);
367 panic(
"Tried testing condition nonexistant "
368 "condition code %d", condition);
@ FUnorderedOrLessOrEqual
const char * CondTestAbbrev[]
const int FramePointerReg
void printDestReg(std::ostream &os, int reg) const
@ MISCREG_FSR
Floating Point Status Register.
@ MISCREG_TPC
Privilged Registers.
Register ID: describe an architectural register with its class and index.
static void printReg(std::ostream &os, RegId reg)
void printSrcReg(std::ostream &os, int reg) const
static bool passesCondition(uint32_t codes, uint32_t condition)
@ FUnorderedOrGreaterOrEqual
RegId _srcRegIdx[MaxInstSrcRegs]
See srcRegIdx().
RegId _destRegIdx[MaxInstDestRegs]
See destRegIdx().
void printRegArray(std::ostream &os, const RegId indexArray[], int num) const
EndBitUnion(HPSTATE) BitUnion16(PSTATE) Bitfield< 1 > ie
const char * mnemonic
Base mnemonic (e.g., "add").
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void advancePC(PCState &pcState) const override
@ MISCREG_HPSTATE
Hyper privileged registers.
BitUnion32(UserDescFlags) Bitfield< 0 > seg_32bit
static void printMnemonic(std::ostream &os, const char *mnemonic)
@ MISCREG_ASI
Ancillary State Registers.
static bool passesFpCondition(uint32_t fcc, uint32_t condition)
void ccprintf(cp::Print &print)
int8_t _numSrcRegs
See numSrcRegs().
int8_t _numDestRegs
See numDestRegs().
#define panic(...)
This implements a cprintf based panic() function.
const int StackPointerReg
Generated on Wed Sep 30 2020 14:02:00 for gem5 by doxygen 1.8.17