From c4300c51e416434a1e03cfd47a57008a4d89fee7 Mon Sep 17 00:00:00 2001 From: So1aric Date: Wed, 30 Sep 2026 13:02:46 +0800 Subject: [PATCH] rv32common: fix @"struct". --- modules/riscv32-common/src/riscv32_common.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/riscv32-common/src/riscv32_common.zig b/modules/riscv32-common/src/riscv32_common.zig index cb1d4dc39..305bcd29d 100644 --- a/modules/riscv32-common/src/riscv32_common.zig +++ b/modules/riscv32-common/src/riscv32_common.zig @@ -457,7 +457,7 @@ pub const csr = struct { switch (@typeInfo(T)) { .@"struct" => { var value = read(); - inline for (@typeInfo(@TypeOf(modifier)).Struct.field_names) |field_name| { + inline for (@typeInfo(@TypeOf(modifier)).@"struct".field_names) |field_name| { @field(value, field_name) = @field(modifier, field_name); } write(value);