44#include "debug/X86.hh"
54 uint64_t _dest, uint64_t _src1, uint64_t _src2,
bool subtract)
const
56 DPRINTF(X86,
"flag_mask = %#x\n", flag_mask);
57 uint64_t
flags = old_flags & ~flag_mask;
66 if (flag_mask &
AFBit) {
std::bitset< Num_Flags > flags
Flag values for this instruction.
uint64_t genFlags(uint64_t old_flags, uint64_t flag_mask, uint64_t _dest, uint64_t _src1, uint64_t _src2, bool subtract=false) const
static bool findNegative(int width, uint64_t dest)
Calculate the negative flag.
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.
static bool findParity(int width, uint64_t dest)
Calculate the parity of a value.
static bool findCarry(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the carry flag from an addition.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.