31 #ifndef __ARCH_POWER_INSTS_STATICINST_HH__ 32 #define __ARCH_POWER_INSTS_STATICINST_HH__ 54 uint32_t
bits = value << ((7 -
bf) * 4);
55 uint32_t
mask = ~(0xf << ((7 -
bf) * 4));
56 return (cr & mask) |
bits;
74 asBytes(
void *buf,
size_t max_size)
override 82 #endif //__ARCH_POWER_INSTS_STATICINST_HH__
PowerStaticInst(const char *mnem, MachInst _machInst, OpClass __opClass)
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const override
Internal function to generate disassembly string.
uint32_t insertCRField(uint32_t cr, uint32_t bf, uint32_t value) const
void printReg(std::ostream &os, RegId reg) const
Print a register name for disassembly given the unique dependence tag number (FP or int)...
const ExtMachInst machInst
The binary machine instruction.
size_t asBytes(void *buf, size_t max_size) override
Instruction classes can override this function to return a a representation of themselves as a blob o...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
GenericISA::SimplePCState< MachInst > PCState
Base, ISA-independent static instruction class.
Register ID: describe an architectural register with its class and index.
T bits(T val, int first, int last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it...
size_t simpleAsBytes(void *buf, size_t max_size, const T &t)
void advancePC(PowerISA::PCState &pcState) const override