riscv / riscv-test-env

https://jira.riscv.org/browse/RVG-141
Other
42 stars 107 forks source link

Initialize frame pointer before calling C code #16

Closed scottj97 closed 4 years ago

scottj97 commented 4 years ago

Because the C code will store this register to memory, and if it's uninitialized, it could be 64'hx in RTL simulation, and that's generally not a good idea to be storing x's to memory.

aswaterman commented 4 years ago

Rather than the whack-a-mole thing, let's just initialize all the x-registers. I'll make a commit that subsumes this PR.