From 580e7baca962dd73815bb4717db05b83d55fd58e Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 27 Dec 2023 18:52:02 -0600 Subject: [PATCH] fix: make Bank.spsrIndex public --- src/arm.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm.zig b/src/arm.zig index 8ad1386..e345e69 100644 --- a/src/arm.zig +++ b/src/arm.zig @@ -142,7 +142,7 @@ pub fn Arm32(comptime isa: Architecture) type { 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) { .Supervisor => 0, .Abort => 1,