Open AhmedAmrAbdellatif1 opened 4 months ago
Hi @AhmedAmrAbdellatif1, I am not a member of ChipsAlliance, but I do not believe they maintain/support Spike. I suggest you refer to the Spike documentation. You could also check out this Spike documentaton effort.
Hello @MikeOpenHWGroup, Maybe i wasn't clear enough. but my question is "how to generate test that uses stvec handler and s-mode exception and stuff"
Hello @AhmedAmrAbdellatif1, you can use init_privileged_mode
option. See riscv_instr_gen_config.sv
and riscv_asm_program_gen.sv
.
Hello everyone, I've design an RV64IMAC architecture with M & S Privilege levels supported. I want to test the S-mode, I see that the assembly generated has S-mode exception handler and stvec handler, but spike only does M-mode handler exception and mtvec handler.
How can i force spike to go to s-mode exception handler?
Also, how i force spike to use
sscratch
instead ofmscratch
?