You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some Kendryte K210 (RISC-V RV64GC) peripherals use 64-bit registers (see riscv-rust/k210-pac#1), and, I think, also requires 64-bit accesses to these. However, the current version of svd2rust seems to ignore <size> specification for registers completely.
The text was updated successfully, but these errors were encountered:
295: Add support for 64-bit registers r=therealprof a=Disasm
Some registers on K210 chip are 64-bit, so it's better to declare them as u64 in SVD for the reasons mentioned here: riscv-rust/k210-pac#1 (comment)
At the moment, svd2rust forbids 64-bit register declarations. This PR fixes this.
This change can cause silent bugs on platforms without 64-bit memory access operations due to the need for proper access sequence to 64-bit registers with two 32-bit accesses.
Closes#289
Co-authored-by: Vadim Kaushan <[email protected]>
Some Kendryte K210 (RISC-V RV64GC) peripherals use 64-bit registers (see riscv-rust/k210-pac#1), and, I think, also requires 64-bit accesses to these. However, the current version of
svd2rust
seems to ignore<size>
specification for registers completely.The text was updated successfully, but these errors were encountered: