fix: make Bank.spsrIndex public
This commit is contained in:
parent
aad3bdc9ea
commit
580e7baca9
|
@ -142,7 +142,7 @@ pub fn Arm32(comptime isa: Architecture) type {
|
||||||
return (idx * 2) + if (kind == .R14) @as(usize, 1) else 0;
|
return (idx * 2) + if (kind == .R14) @as(usize, 1) else 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline fn spsrIdx(mode: Mode) usize {
|
pub inline fn spsrIdx(mode: Mode) usize {
|
||||||
return switch (mode) {
|
return switch (mode) {
|
||||||
.Supervisor => 0,
|
.Supervisor => 0,
|
||||||
.Abort => 1,
|
.Abort => 1,
|
||||||
|
|
Loading…
Reference in New Issue