Skip to content

Commit

Permalink
Merge pull request #117 from netheril96/apple-m1
Browse files Browse the repository at this point in the history
Update catch.hpp to support Apple M1
  • Loading branch information
netheril96 committed Jun 30, 2021
2 parents f6597d1 + b881cfb commit a497283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions external/catch.hpp
Expand Up @@ -2100,6 +2100,8 @@ namespace Catch{
#define CATCH_TRAP() \
__asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" \
: : : "memory","r0","r3","r4" )
#elif defined(__aarch64__)
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
#else
#define CATCH_TRAP() __asm__("int $3\n" : : )
#endif
Expand Down

0 comments on commit a497283

Please sign in to comment.