Set and dump (almost) all of the ARM64 general registers.
[xchg-rax-rax] / main.c
diff --git a/main.c b/main.c
index df4b941..b68e985 100644 (file)
--- a/main.c
+++ b/main.c
@@ -26,7 +26,9 @@ union reg {
 #elif defined(__aarch64__)
 #  define GPREGS(_)                                                    \
        _(x0) _(x1) _(x2) _(x3) _(x4) _(x5) _(x6) _(x7)                 \
-       _(x8) _(x9) _(x10) _(x11) _(x12) _(x13) _(x14) _(x15)
+       _(x8) _(x9) _(x10) _(x11) _(x12) _(x13) _(x14) _(x15)           \
+       _(x16) _(x17) _(x19) _(x20) _(x21) _(x22) _(x23)                \
+       _(x24) _(x25) _(x26) _(x27) _(x28) _(x29)
 #else
 #  error "not supported"
 #endif