core1: use C repr in attribute writeback #357
No reviewers
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#357
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "srenblad/artiq-zynq:fix_attr_writeback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rust reserves the right to reorder struct fields if the struct is
repr(Rust)
. TheAttr
andType
structs come from the compiled kernel code, and they appear to have fixed ordering in the LLVM IR.This is not a problem for our current Rust version, as the compiler is less aggressive with field reordering. I have noticed it becoming a problem when pushing the
rustc
version higher.All HITL tests pass and there are no noticeable performance changes for
test_performance.py
.