Skip to content

Commit

Permalink
Add missing Alignment Check/Access Control (AC) RFLAGS field
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Nov 21, 2023
1 parent d7f9b6a commit 7cd74c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/h/registers/x86_64_regs.h
Expand Up @@ -135,6 +135,7 @@ namespace Dyninst { namespace x86_64 {
const signed int FLAGF = x86::FLAGF; // Reserved
const signed int RF = x86::RF; // Resume Flag
const signed int VM = 0x11; // Virtual-8086 Mode
const signed int AC = 0x12; // Alignment Check/Access Control
/* Flags 22-63 are reserved */

// ( name, ID | alias | cat | arch, arch)
Expand Down Expand Up @@ -227,6 +228,7 @@ namespace Dyninst { namespace x86_64 {
DEF_REGISTER( flagf, FLAGF | BIT | FLAG | Arch_x86_64, "x86_64");
DEF_REGISTER( rf, RF | BIT | FLAG | Arch_x86_64, "x86_64");
DEF_REGISTER( vm, VM | BIT | FLAG | Arch_x86_64, "x86_64");
DEF_REGISTER( ac, AC | BIT | FLAG | Arch_x86_64, "x86_64");
DEF_REGISTER( ds, BASEDS | FULL | SEG | Arch_x86_64, "x86_64");
DEF_REGISTER( es, BASEES | FULL | SEG | Arch_x86_64, "x86_64");
DEF_REGISTER( fs, BASEFS | FULL | SEG | Arch_x86_64, "x86_64");
Expand Down
1 change: 1 addition & 0 deletions common/src/registers/MachRegister.C
Expand Up @@ -815,6 +815,7 @@ namespace Dyninst {
case x86_64::FLAGF: n = x86_flag_15; break;
case x86_64::VM: n = x86_flag_vm; break;
case x86_64::RF: n = x86_flag_rf; break;
case x86_64::AC: n = x86_flag_ac; break;
default:
c = -1;
return;
Expand Down

0 comments on commit 7cd74c9

Please sign in to comment.