Go to the documentation of this file.
44 #include "debug/X86.hh"
49 uint64_t _dest, uint64_t _src1, uint64_t _src2,
52 DPRINTF(X86,
"flagMask = %#x\n", flagMask);
53 uint64_t
flags = oldFlags & ~flagMask;
83 std::stringstream response;
91 return response.str();
98 std::stringstream response;
105 return response.str();
std::bitset< Num_Flags > flags
Flag values for this instruction.
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
uint64_t genFlags(uint64_t oldFlags, uint64_t flagMask, uint64_t _dest, uint64_t _src1, uint64_t _src2, bool subtract=false) const
void printDestReg(std::ostream &os, int reg, int size) const
static bool findCarry(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the carry flag from an addition.
static bool findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the overflow flag from an addition.
static bool findZero(int width, uint64_t dest)
Calculate the zero flag.
void printMnemonic(std::ostream &os, const char *mnemonic) const
const char * mnemonic
Base mnemonic (e.g., "add").
This is exposed globally, independent of the ISA.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
static bool findParity(int width, uint64_t dest)
Calculate the parity of a value.
void printSrcReg(std::ostream &os, int reg, int size) const
void ccprintf(cp::Print &print)
static bool findNegative(int width, uint64_t dest)
Calculate the negative flag.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17