athenavm / athena

Athena monorepo
https://www.athenavm.org/
Apache License 2.0
6 stars 0 forks source link

Limit VM registers to 16 for RV32E #18

Open lrettig opened 3 weeks ago

lrettig commented 3 weeks ago

Right now the VM implements 32 registers. It can run RV32E programs, which only use 16 registers, just fine, but we should probably not let the VM use the higher 16 registers when running in "E" mode. An RV32E program that tried to use a register >= 16 should produce an error.