aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-10-15 13:18:13 +0100
committermlugg <mlugg@mlugg.co.uk>2024-10-19 19:15:24 +0100
commit67580ede5ef7e087d030b96ad6c71c3fc5760e4c (patch)
tree8ffe96a75f6c40988d7cf65df4abf51ca2bc986f /lib/std
parenta2c519ba67c6cf094719b4c58c1e1fb76229b8a9 (diff)
downloadzig-67580ede5ef7e087d030b96ad6c71c3fc5760e4c.tar.gz
zig-67580ede5ef7e087d030b96ad6c71c3fc5760e4c.zip
std.builtin.CallingConvention: RISC-V `PrivilegeLevel` -> `PrivilegeMode`
The RISC-V specification uses these terms a little interchangably, but "mode" seems more correct here.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig6
1 files 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,