Skip to content

Commit

Permalink
amd64: Remap int imm8 Ijk_Sys_syscall -> Ijk_Sys_int (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson authored Dec 7, 2024
1 parent 390c476 commit e12bd8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion priv/guest_amd64_toIR.c
Original file line number Diff line number Diff line change
Expand Up @@ -21318,7 +21318,7 @@ Long dis_ESC_NONE (

case 0xCD: /* INT imm8 */
d64 = getUChar(delta); delta++;
jmp_lit(dres, Ijk_Sys_syscall, guest_RIP_bbstart + delta);
jmp_lit(dres, Ijk_Sys_int, guest_RIP_bbstart + delta);
vassert(dres->whatNext == Dis_StopHere);
DIP("int $0x%x\n", d64);
return delta;
Expand Down
1 change: 1 addition & 0 deletions pub/libvex_ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -2350,6 +2350,7 @@ typedef
/* Unfortunately, various guest-dependent syscall kinds. They
all mean: do a syscall before continuing. */
Ijk_Sys_syscall, /* amd64/x86 'syscall', ppc 'sc', arm 'svc #0' */
Ijk_Sys_int, /* amd64/x86 'int *' */
Ijk_Sys_int32, /* amd64/x86 'int $0x20' */
Ijk_Sys_int128, /* amd64/x86 'int $0x80' */
Ijk_Sys_int129, /* amd64/x86 'int $0x81' */
Expand Down

0 comments on commit e12bd8c

Please sign in to comment.