Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amd64: Remap int imm8 Ijk_Sys_syscall -> Ijk_Sys_int #72

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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