From 67580ede5ef7e087d030b96ad6c71c3fc5760e4c Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 15 Oct 2024 13:18:13 +0100 Subject: [PATCH] std.builtin.CallingConvention: RISC-V `PrivilegeLevel` -> `PrivilegeMode` The RISC-V specification uses these terms a little interchangably, but "mode" seems more correct here. --- lib/std/builtin.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 9ce293495a..b8e3acaad8 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -469,10 +469,10 @@ pub const CallingConvention = union(enum(u8)) { /// The boundary the stack is aligned to when the function is called. /// `null` means the default for this calling convention. incoming_stack_alignment: ?u64 = null, - /// The privilege level. - level: PrivilegeLevel = .machine, + /// The privilege mode. + mode: PrivilegeMode = .machine, - pub const PrivilegeLevel = enum(u2) { + pub const PrivilegeMode = enum(u2) { user, supervisor, machine,