target/riscv: calloc() memory per register.