mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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.
This commit is contained in:
parent
f6403ed5ea
commit
9cd37a0696
2 changed files with 2 additions and 2 deletions
|
|
@ -1433,7 +1433,7 @@ pub fn ipRegNum(arch: std.Target.Cpu.Arch) ?u16 {
|
|||
.arm, .armeb, .thumb, .thumbeb => 15,
|
||||
.hexagon => 76,
|
||||
.loongarch32, .loongarch64 => 64,
|
||||
.mips, .mipsel, .mips64, .mips64el => 37,
|
||||
.mips, .mipsel, .mips64, .mips64el => 66,
|
||||
.powerpc, .powerpcle, .powerpc64, .powerpc64le => 67,
|
||||
.riscv32, .riscv32be, .riscv64, .riscv64be => 65,
|
||||
.s390x => 65,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue