Skip to content

fix(riscv32-common): use .@"struct" instead of .Struct in modify()#985

Closed
by965738071 wants to merge 1 commit into
ZigEmbeddedGroup:mainfrom
by965738071:fix/riscv32-common-modify-api
Closed

fix(riscv32-common): use .@"struct" instead of .Struct in modify()#985
by965738071 wants to merge 1 commit into
ZigEmbeddedGroup:mainfrom
by965738071:fix/riscv32-common-modify-api

Conversation

@by965738071

Copy link
Copy Markdown
Contributor

The @typeinfo union tag for structs is .@"struct" in Zig 0.17, not .Struct. This went unnoticed because modify() was never called with a packed struct CSR type.
Also add build.zig test step with 6 unit tests

The @typeinfo union tag for structs is .@"struct" in Zig 0.17,
not .Struct. This went unnoticed because modify() was never called
with a packed struct CSR type.
Also add build.zig test step with 6 unit tests
@mattnite

Copy link
Copy Markdown
Contributor

riscv32-common needs a big overhaul, so we don't need this right now.

@mattnite mattnite closed this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants