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;
76 #endif //__ARCH_POWER_INSTS_STATICINST_HH__
void advancePC(PowerISA::PCState &pcState) const
PowerStaticInst(const char *mnem, MachInst _machInst, OpClass __opClass)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
uint32_t insertCRField(uint32_t cr, uint32_t bf, uint32_t value) const
GenericISA::SimplePCState< MachInst > PCState
Base, ISA-independent static instruction class.
void printReg(std::ostream &os, int reg) const
Print a register name for disassembly given the unique dependence tag number (FP or int)...
T bits(T val, int first, int last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it...