authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-07 19:18:46+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-07 19:18:46+02:00
loga54906b46e01f708fb521cb01445808382ef9954
tree80b411e62bb7d0d3ca8a46a99be16ecfe2c1e17c
parente4f0c62b5d7edd56100c738de5317d457c002f3b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug.cpu_context: make arch-specific implementations private


1 files changed, 10 insertions(+), 10 deletions(-)

lib/std/debug/cpu_context.zig+10-10
...@@ -297,7 +297,7 @@ pub fn fromWindowsContext(ctx: *const std.os.windows.CONTEXT) Native {...@@ -297,7 +297,7 @@ pub fn fromWindowsContext(ctx: *const std.os.windows.CONTEXT) Native {
297 };297 };
298}298}
299299
300pub const X86 = struct {300const X86 = struct {
301 /// The first 8 registers here intentionally match the order of registers in the x86 instruction301 /// The first 8 registers here intentionally match the order of registers in the x86 instruction
302 /// encoding. This order is inherited by the PUSHA instruction and the DWARF register mappings,302 /// encoding. This order is inherited by the PUSHA instruction and the DWARF register mappings,
303 /// among other things.303 /// among other things.
...@@ -356,7 +356,7 @@ pub const X86 = struct {...@@ -356,7 +356,7 @@ pub const X86 = struct {
356 }356 }
357};357};
358358
359pub const X86_64 = struct {359const X86_64 = struct {
360 /// The order here intentionally matches the order of the DWARF register mappings. It's unclear360 /// The order here intentionally matches the order of the DWARF register mappings. It's unclear
361 /// where those mappings actually originated from---the ordering of the first 4 registers seems361 /// where those mappings actually originated from---the ordering of the first 4 registers seems
362 /// quite unusual---but it is currently convenient for us to match DWARF.362 /// quite unusual---but it is currently convenient for us to match DWARF.
...@@ -426,7 +426,7 @@ pub const X86_64 = struct {...@@ -426,7 +426,7 @@ pub const X86_64 = struct {
426 }426 }
427};427};
428428
429pub const Arm = struct {429const Arm = struct {
430 /// The numbered general-purpose registers R0 - R15.430 /// The numbered general-purpose registers R0 - R15.
431 r: [16]u32,431 r: [16]u32,
432432
...@@ -480,7 +480,7 @@ pub const Arm = struct {...@@ -480,7 +480,7 @@ pub const Arm = struct {
480};480};
481481
482/// This is an `extern struct` so that inline assembly in `current` can use field offsets.482/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
483pub const Aarch64 = extern struct {483const Aarch64 = extern struct {
484 /// The numbered general-purpose registers X0 - X30.484 /// The numbered general-purpose registers X0 - X30.
485 x: [31]u64,485 x: [31]u64,
486 sp: u64,486 sp: u64,
...@@ -542,7 +542,7 @@ pub const Aarch64 = extern struct {...@@ -542,7 +542,7 @@ pub const Aarch64 = extern struct {
542};542};
543543
544/// This is an `extern struct` so that inline assembly in `current` can use field offsets.544/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
545pub const Hexagon = extern struct {545const Hexagon = extern struct {
546 /// The numbered general-purpose registers r0 - r31.546 /// The numbered general-purpose registers r0 - r31.
547 r: [32]u32,547 r: [32]u32,
548 pc: u32,548 pc: u32,
...@@ -610,7 +610,7 @@ pub const Hexagon = extern struct {...@@ -610,7 +610,7 @@ pub const Hexagon = extern struct {
610};610};
611611
612/// This is an `extern struct` so that inline assembly in `current` can use field offsets.612/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
613pub const LoongArch = extern struct {613const LoongArch = extern struct {
614 /// The numbered general-purpose registers r0 - r31. r0 must be zero.614 /// The numbered general-purpose registers r0 - r31. r0 must be zero.
615 r: [32]Gpr,615 r: [32]Gpr,
616 pc: Gpr,616 pc: Gpr,
...@@ -712,7 +712,7 @@ pub const LoongArch = extern struct {...@@ -712,7 +712,7 @@ pub const LoongArch = extern struct {
712};712};
713713
714/// This is an `extern struct` so that inline assembly in `current` can use field offsets.714/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
715pub const Mips = extern struct {715const Mips = extern struct {
716 /// The numbered general-purpose registers r0 - r31. r0 must be zero.716 /// The numbered general-purpose registers r0 - r31. r0 must be zero.
717 r: [32]Gpr,717 r: [32]Gpr,
718 pc: Gpr,718 pc: Gpr,
...@@ -834,7 +834,7 @@ pub const Mips = extern struct {...@@ -834,7 +834,7 @@ pub const Mips = extern struct {
834};834};
835835
836/// This is an `extern struct` so that inline assembly in `current` can use field offsets.836/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
837pub const Powerpc = extern struct {837const Powerpc = extern struct {
838 /// The numbered general-purpose registers r0 - r31.838 /// The numbered general-purpose registers r0 - r31.
839 r: [32]Gpr,839 r: [32]Gpr,
840 pc: Gpr,840 pc: Gpr,
...@@ -990,7 +990,7 @@ pub const Powerpc = extern struct {...@@ -990,7 +990,7 @@ pub const Powerpc = extern struct {
990};990};
991991
992/// This is an `extern struct` so that inline assembly in `current` can use field offsets.992/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
993pub const Riscv = extern struct {993const Riscv = extern struct {
994 /// The numbered general-purpose registers r0 - r31. r0 must be zero.994 /// The numbered general-purpose registers r0 - r31. r0 must be zero.
995 r: [32]Gpr,995 r: [32]Gpr,
996 pc: Gpr,996 pc: Gpr,
...@@ -1096,7 +1096,7 @@ pub const Riscv = extern struct {...@@ -1096,7 +1096,7 @@ pub const Riscv = extern struct {
1096};1096};
10971097
1098/// This is an `extern struct` so that inline assembly in `current` can use field offsets.1098/// This is an `extern struct` so that inline assembly in `current` can use field offsets.
1099pub const S390x = extern struct {1099const S390x = extern struct {
1100 /// The numbered general-purpose registers r0 - r15.1100 /// The numbered general-purpose registers r0 - r15.
1101 r: [16]u64,1101 r: [16]u64,
1102 /// The program counter.1102 /// The program counter.