46 #include "debug/X86.hh"
51 uint64_t _dest, uint64_t _src1, uint64_t _src2,
54 DPRINTF(X86,
"flagMask = %#x\n", flagMask);
55 uint64_t
flags = oldFlags & ~flagMask;
84 std::stringstream response;
92 return response.str();
98 std::stringstream response;
105 return response.str();
void ccprintf(cp::Print &print)
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
const char * mnemonic
Base mnemonic (e.g., "add").
void printMnemonic(std::ostream &os, const char *mnemonic) const
bool findNegative(int width, uint64_t dest)
Calculate the negative flag.
std::bitset< Num_Flags > flags
Flag values for this instruction.
bool findZero(int width, uint64_t dest)
Calculate the zero flag.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void printDestReg(std::ostream &os, int reg, int size) const
bool findParity(int width, uint64_t dest)
Calculate the parity of a value.
uint64_t genFlags(uint64_t oldFlags, uint64_t flagMask, uint64_t _dest, uint64_t _src1, uint64_t _src2, bool subtract=false) const
void printSrcReg(std::ostream &os, int reg, int size) const
bool findCarry(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the carry flag from an addition.
bool findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the overflow flag from an addition.