diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-07 08:46:43 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-07 16:47:57 +0200 |
| commit | 9cd37a06965f1993f6e70ca3f10008d02f77334b (patch) | |
| tree | a5025123558b5b1641ee3594092ab27f5a31a9dc /lib/std/debug/cpu_context.zig | |
| parent | f6403ed5ea05bcdbb55da15ee65204b1c8cdf423 (diff) | |
| download | zig-9cd37a06965f1993f6e70ca3f10008d02f77334b.tar.gz zig-9cd37a06965f1993f6e70ca3f10008d02f77334b.zip | |
std.debug.Dwarf: use 66 as the (fake) MIPS PC register
32-63 conflict with the floating point registers. 64 and 65 are used for the
ac0 hi/lo registers.
Diffstat (limited to 'lib/std/debug/cpu_context.zig')
| -rw-r--r-- | lib/std/debug/cpu_context.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index 6243131d25..b899d76f1b 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -810,7 +810,7 @@ pub const Mips = extern struct { pub fn dwarfRegisterBytes(ctx: *Mips, register_num: u16) DwarfRegisterError![]u8 { switch (register_num) { 0...31 => return @ptrCast(&ctx.r[register_num]), - 37 => return @ptrCast(&ctx.pc), + 66 => return @ptrCast(&ctx.pc), else => return error.InvalidRegister, } |
