authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-15 13:18:13+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-19 19:15:24+01:00
log67580ede5ef7e087d030b96ad6c71c3fc5760e4c
tree8ffe96a75f6c40988d7cf65df4abf51ca2bc986f
parenta2c519ba67c6cf094719b4c58c1e1fb76229b8a9
signaturelock-open Commit is signed but in an unrecognized format.

std.builtin.CallingConvention: RISC-V `PrivilegeLevel` -> `PrivilegeMode`

The RISC-V specification uses these terms a little interchangably, but "mode" seems more correct here.

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/builtin.zig+3-3
......@@ -469,10 +469,10 @@ pub const CallingConvention = union(enum(u8)) {
469469 /// The boundary the stack is aligned to when the function is called.
470470 /// `null` means the default for this calling convention.
471471 incoming_stack_alignment: ?u64 = null,
472 /// The privilege level.
473 level: PrivilegeLevel = .machine,
472 /// The privilege mode.
473 mode: PrivilegeMode = .machine,
474474
475 pub const PrivilegeLevel = enum(u2) {
475 pub const PrivilegeMode = enum(u2) {
476476 user,
477477 supervisor,
478478 machine,