Skip to content

Commit

Permalink
Fix little things
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanSalwan committed Feb 8, 2022
1 parent fdb4178 commit bfcceb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libtriton/arch/x86/x8664Cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ namespace triton {


bool x8664Cpu::isFlag(triton::arch::register_e regId) const {
if (regId >= triton::arch::ID_REG_X86_AC && regId <= triton::arch::ID_REG_X86_FSW_B) { return true; }
if (regId >= triton::arch::ID_REG_X86_AC && regId <= triton::arch::ID_REG_X86_ZF) { return true; }
if (regId >= triton::arch::ID_REG_X86_FTW && regId <= triton::arch::ID_REG_X86_FDP) { return true; }
if (regId >= triton::arch::ID_REG_X86_SSE_IE && regId <= triton::arch::ID_REG_X86_SSE_FZ) { return true; }
if (regId >= triton::arch::ID_REG_X86_FCW_IM && regId <= triton::arch::ID_REG_X86_FCW_X) { return true; }
Expand Down Expand Up @@ -336,7 +336,7 @@ namespace triton {


bool x8664Cpu::isEFER(triton::arch::register_e regId) const {
return ((regId >= triton::arch::ID_REG_X86_EFER && regId <= triton::arch::ID_REG_X86_EFER) ? true : false);
return ((regId == triton::arch::ID_REG_X86_EFER) ? true : false);
}


Expand Down
4 changes: 2 additions & 2 deletions src/libtriton/arch/x86/x86Cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ namespace triton {


bool x86Cpu::isFlag(triton::arch::register_e regId) const {
if (regId >= triton::arch::ID_REG_X86_AC && regId <= triton::arch::ID_REG_X86_FSW_B) { return true; }
if (regId >= triton::arch::ID_REG_X86_AC && regId <= triton::arch::ID_REG_X86_ZF) { return true; }
if (regId >= triton::arch::ID_REG_X86_FTW && regId <= triton::arch::ID_REG_X86_FDP) { return true; }
if (regId >= triton::arch::ID_REG_X86_SSE_IE && regId <= triton::arch::ID_REG_X86_SSE_FZ) { return true; }
if (regId >= triton::arch::ID_REG_X86_FCW_IM && regId <= triton::arch::ID_REG_X86_FCW_X) { return true; }
Expand Down Expand Up @@ -269,7 +269,7 @@ namespace triton {


bool x86Cpu::isEFER(triton::arch::register_e regId) const {
return ((regId >= triton::arch::ID_REG_X86_EFER && regId <= triton::arch::ID_REG_X86_EFER) ? true : false);
return ((regId == triton::arch::ID_REG_X86_EFER) ? true : false);
}


Expand Down

0 comments on commit bfcceb2

Please sign in to comment.