Skip to content

Commit

Permalink
fix 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
XMDS committed Aug 20, 2023
1 parent 1a85852 commit 5a7eb4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GlossHook/include/Inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define GLOSS_WRITE_A64(addr, inst) \
do { \
Gloss::Inst::WriteByte((uintptr_t)addr, []() __attribute__((target("aarch64"))) { \
__asm volatile (".arm64" inst "\n"); }, sizeof(uint32_t)); \
__asm volatile (".arm64\n" inst "\n"); }, sizeof(uint32_t)); \
} while (0)
#endif // __arm__

Expand Down
2 changes: 1 addition & 1 deletion GlossHook/single_include/Gloss.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ extern "C" {
#define GLOSS_WRITE_A64(addr, inst) \
do { \
Gloss::Inst::WriteByte((uintptr_t)addr, []() __attribute__((target("aarch64"))) { \
__asm volatile (".arm64" inst "\n"); }, sizeof(uint32_t)); \
__asm volatile (".arm64\n" inst "\n"); }, sizeof(uint32_t)); \
} while (0)
#endif // __arm__

Expand Down

0 comments on commit 5a7eb4f

Please sign in to comment.