Skip to content

Commit

Permalink
catch_debugger.hpp: restore PPC support
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jan 10, 2023
1 parent 52066db commit e36d13f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/catch2/internal/catch_debugger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e36d13f

Please sign in to comment.