Skip to content

Commit

Permalink
Fix AArch64 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed May 15, 2024
1 parent 743aafe commit 4aa70d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fast_forward.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ static int fallible_read_byte(Task* t, remote_ptr<uint8_t> ip) {
return byte;
}

#if defined(__i386__) || defined(__x86_64__)
bool is_x86_string_instruction_at(Task* t, remote_code_ptr ip) {
bool found_rep = false;
remote_ptr<uint8_t> bare_ip = ip.to_data_ptr<uint8_t>();
Expand All @@ -421,6 +422,7 @@ bool is_x86_string_instruction_at(Task* t, remote_code_ptr ip) {
++bare_ip;
}
}
#endif

static bool is_string_instruction_before(Task* t, remote_code_ptr ip) {
remote_ptr<uint8_t> bare_ip = ip.to_data_ptr<uint8_t>();
Expand Down

0 comments on commit 4aa70d1

Please sign in to comment.