Skip to content

Commit

Permalink
Update ArmV8Generator.cpp
Browse files Browse the repository at this point in the history
you did not see it
  • Loading branch information
altalk23 authored Apr 11, 2024
1 parent f209d20 commit ffa1842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/ArmV8Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ std::vector<uint8_t> ArmV8HandlerGenerator::intervenerBytes(uint64_t address) {
a.b(delta);
}
// Delta can be encoded in 33 bits or less -> use adrp.
else if (delta >= -static_cast<int64_t>(0x100000FFF) && delta <= 0xFFFFFFFF) {
else if (delta >= -static_cast<int64_t>(0x100000000) && delta <= 0xFFFFFFFF) {
a.adrp(X16, delta);
a.add(X16, X16, callback & 0xFFF);
a.br(X16);
Expand Down

0 comments on commit ffa1842

Please sign in to comment.