41 #ifndef __ARCH_ARM_MACROMEM_HH__ 42 #define __ARCH_ARM_MACROMEM_HH__ 50 static inline unsigned int 54 for (
int i = 0;
i < 32;
i++ )
69 :
PredOp(mnem, machInst, __opClass)
77 if (
flags[IsLastMicroop]) {
79 }
else if (
flags[IsMicroop]) {
98 if (
flags[IsLastMicroop]) {
100 }
else if (
flags[IsMicroop]) {
120 :
MicroOp(mnem, machInst, __opClass),
121 dest(_dest), ura(_ura), imm(_imm), memAccessFlags()
137 :
MicroOp(mnem, machInst, __opClass),
138 dest(_dest), op1(_op1), step(_step)
150 uint32_t _step,
unsigned _lane)
164 uint8_t eSize, dataSize, numStructElems, numRegs,
step;
168 uint8_t _dataSize, uint8_t _numStructElems,
169 uint8_t _numRegs, uint8_t _step)
170 :
MicroOp(mnem, machInst, __opClass), dest(_dest), op1(_op1),
171 eSize(_eSize), dataSize(_dataSize), numStructElems(_numStructElems),
172 numRegs(_numRegs), step(_step)
181 uint8_t eSize, dataSize, numStructElems, lane,
step;
186 uint8_t _eSize, uint8_t _dataSize,
187 uint8_t _numStructElems, uint8_t _lane, uint8_t _step,
188 bool _replicate =
false)
189 :
MicroOp(mnem, machInst, __opClass), dest(_dest), op1(_op1),
190 eSize(_eSize), dataSize(_dataSize), numStructElems(_numStructElems),
191 lane(_lane), step(_step), replicate(_replicate)
207 uint8_t dataSize, uint8_t numStructElems, uint8_t numRegs,
219 uint8_t dataSize, uint8_t numStructElems, uint8_t numRegs,
231 uint8_t dataSize, uint8_t numStructElems, uint8_t index,
232 bool wb,
bool replicate =
false);
243 uint8_t dataSize, uint8_t numStructElems, uint8_t index,
244 bool wb,
bool replicate =
false);
259 :
MicroOp(mnem, machInst, __opClass),
260 ura(_ura), urb(_urb), urc(_urc)
278 :
MicroOp(mnem, machInst, __opClass),
298 :
MicroOp(mnem, machInst, __opClass),
299 ura(_ura), urb(_urb), imm(_imm)
315 :
MicroOpX(mnem, machInst, __opClass),
316 ura(_ura), urb(_urb), imm(_imm)
334 :
MicroOp(mnem, machInst, __opClass),
335 ura(_ura), urb(_urb), urc(_urc)
353 :
MicroOp(mnem, machInst, __opClass),
354 ura(_ura), urb(_urb), urc(_urc),
355 type(_type), shiftAmt(_shiftAmt)
376 :
MicroOp(mnem, machInst, __opClass),
377 ura(_ura), urb(_urb), urc(_urc),
378 shiftAmt(_shiftAmt), shiftType(_shiftType)
394 :
MicroIntImmOp(mnem, machInst, __opClass, _ura, _urb, _imm),
395 up(_up), memAccessFlags(
TLB::AlignWord)
413 bool _up, uint8_t _imm)
414 :
MicroOp(mnem, machInst, __opClass),
415 dest(_dreg1), dest2(_dreg2), urb(_base), up(_up), imm(_imm),
416 memAccessFlags(
TLB::AlignWord)
432 bool writeback,
bool load, uint32_t reglist);
449 uint32_t size,
bool fp,
bool load,
bool noAlloc,
bool signExt,
506 unsigned regs,
unsigned inc, uint32_t size,
526 unsigned regs,
unsigned inc, uint32_t size,
543 #endif //__ARCH_ARM_INSTS_MACROMEM_HH__ MicroOpX(const char *mnem, ExtMachInst machInst, OpClass __opClass)
MicroNeonMixLaneOp64(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _dest, RegIndex _op1, uint8_t _eSize, uint8_t _dataSize, uint8_t _numStructElems, uint8_t _lane, uint8_t _step, bool _replicate=false)
MicroIntRegOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb, RegIndex _urc, int32_t _shiftAmt, ArmShiftType _shiftType)
Base class for predicated integer operations.
Base class for microcoded integer memory instructions.
MicroMemOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb, bool _up, uint8_t _imm)
Microops for Neon load/store (de)interleaving.
static unsigned int number_of_ones(int32_t val)
MicroNeonMemOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _dest, RegIndex _ura, uint32_t _imm)
void advancePC(PCState &pcState) const override
MicroIntImmXOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb, int64_t _imm)
const ExtMachInst machInst
The binary machine instruction.
std::bitset< Num_Flags > flags
Flag values for this instruction.
void inc(scfx_mant &mant)
void align(const scfx_rep &lhs, const scfx_rep &rhs, int &new_wp, int &len_mant, scfx_mant_ref &lhs_mant, scfx_mant_ref &rhs_mant)
MicroSetPCCPSR(const char *mnem, ExtMachInst machInst, OpClass __opClass, IntRegIndex _ura, IntRegIndex _urb, IntRegIndex _urc)
Microops of the form IntRegA = IntRegB op Imm.
MicroIntMov(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb)
void advancePC(PCState &pcState) const override
Base class for microcoded floating point memory instructions.
Microops for Neon loads/stores.
Base class for microcoded integer memory instructions.
Microops of the form PC = IntRegA CPSR = IntRegB.
MicroOp(const char *mnem, ExtMachInst machInst, OpClass __opClass)
Memory microops which use IntReg + Imm addressing.
Base class for pair load/store instructions.
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.
Microops of the form IntRegA = IntRegB op shifted IntRegC.
MicroNeonMixOp64(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _dest, RegIndex _op1, uint8_t _eSize, uint8_t _dataSize, uint8_t _numStructElems, uint8_t _numRegs, uint8_t _step)
Base classes for microcoded AArch64 NEON memory instructions.
Microops of the form IntRegA = IntRegB.
MicroMemPairOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _dreg1, RegIndex _dreg2, RegIndex _base, bool _up, uint8_t _imm)
Base class for predicated macro-operations.
Base class for Memory microops.
Microops of the form IntRegA = IntRegB op IntRegC.
MicroNeonMixOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _dest, RegIndex _op1, uint32_t _step)
MicroIntOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb, RegIndex _urc)
MicroNeonMixLaneOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _dest, RegIndex _op1, uint32_t _step, unsigned _lane)
Base classes for microcoded integer memory instructions.
TheISA::ExtMachInst ExtMachInst
Binary extended machine instruction type.
MicroIntImmOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb, int32_t _imm)
Microops for AArch64 NEON load/store (de)interleaving.
GenericISA::DelaySlotPCState< MachInst > PCState
MicroIntRegXOp(const char *mnem, ExtMachInst machInst, OpClass __opClass, RegIndex _ura, RegIndex _urb, RegIndex _urc, ArmExtendType _type, uint32_t _shiftAmt)