riscv-rt
: Assembly algorithm for RAM init incompatible with upcoming RVE extension (future proofing)
#189
Milestone
riscv-rt
: Assembly algorithm for RAM init incompatible with upcoming RVE extension (future proofing)
#189
The RAM init function is incompatible with (as of yet, unratified) RV32E base ISA.
riscv/riscv-rt/src/asm.rs
Lines 147 to 158 in f5a2da9
The algorithm uses temporaries t0--t3 to copy data from from flash to RAM. However, the RV32E removes registers
x16
--x31
, which includest3
/x28
, therefore making this algorithm unavailable on RVE.Proposals for a solution
x0--x16
in place oft3
to make the code compatible between RVI and RVE#[cfg(riscve)]
the algorithm to use another register on RV32E.The text was updated successfully, but these errors were encountered: