From 6aa6a0795526e9a6a6380d37bb48ac36368e54d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 27 May 2026 00:19:40 +0200 Subject: [PATCH] std.debug.cpu_context: add mcontext_t for hppa-linux and hppa64-linux --- lib/std/debug/cpu_context.zig | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index 458539e11e18e566564af4ba6a30b21d042a85e6..2d254782ebf3ea75a5b6504f366745f2ea6da451 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -1980,6 +1980,8 @@ const signal_ucontext_t = switch (native_os) { .thumbeb, .csky, .hexagon, + .hppa, + .hppa64, .m68k, .mips, .mipsel, @@ -2051,19 +2053,19 @@ const signal_ucontext_t = switch (native_os) { pc: u32, }, // https://github.com/torvalds/linux/blob/cd5a0afbdf8033dc83786315d63f8b325bdba2fd/arch/parisc/include/uapi/asm/sigcontext.h - .hppa => extern struct { - _flags: u32, - _psw: u32, - r1_19: [19]u32, - r20: u32, - r21: u32, - r22: u32, - r23_29: [7]u32, - r30: u32, - r31: u32, + .hppa, .hppa64 => extern struct { + _flags: usize, + _psw: usize, + r1_19: [19]usize, + r20: usize, + r21: usize, + r22: usize, + r23_29: [7]usize, + r30: usize, + r31: usize, _fr: [32]f64, - _iasq: [2]u32, - iaoq: [2]u32, + _iasq: [2]usize, + iaoq: [2]usize, }, // https://github.com/torvalds/linux/blob/cd5a0afbdf8033dc83786315d63f8b325bdba2fd/arch/m68k/include/asm/ucontext.h .m68k => extern struct { -- 2.54.0