diff options
| author | Sergey Fedorov | 2023-01-14 06:03:30 +0700 |
|---|---|---|
| committer | GitHub | 2023-01-14 00:03:30 +0100 |
| commit | b5be6420427331c2bf1160fa7eedf0f5f1145b6b (patch) | |
| tree | 71ecb96619963185a6b9bbdb03cf45ffc2e97080 | |
| parent | d59572f46fb4b9cbd720dd4298bf97931fc33c3b (diff) | |
| download | catch3-b5be6420427331c2bf1160fa7eedf0f5f1145b6b.tar.gz | |
catch_debugger.hpp: restore PPC support (#2619)
| -rw-r--r-- | src/catch2/internal/catch_debugger.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_debugger.hpp b/src/catch2/internal/catch_debugger.hpp index 30063d1f..25c5a260 100644 --- a/src/catch2/internal/catch_debugger.hpp +++ b/src/catch2/internal/catch_debugger.hpp @@ -19,7 +19,10 @@ namespace Catch { #if defined(__i386__) || defined(__x86_64__) #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ #elif defined(__aarch64__) - #define CATCH_TRAP() __asm__(".inst 0xd43e0000") + #define CATCH_TRAP() __asm__(".inst 0xd43e0000") + #elif defined(__POWERPC__) + #define CATCH_TRAP() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" \ + : : : "memory","r0","r3","r4" ) /* NOLINT */ #endif #elif defined(CATCH_PLATFORM_IPHONE) |