Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't do S-mode test ( No delegation ) #975

Open
AhmedAmrAbdellatif1 opened this issue Apr 13, 2024 · 3 comments
Open

Can't do S-mode test ( No delegation ) #975

AhmedAmrAbdellatif1 opened this issue Apr 13, 2024 · 3 comments

Comments

@AhmedAmrAbdellatif1
Copy link

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 of mscratch?

@MikeOpenHWGroup
Copy link

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.

@AhmedAmrAbdellatif1
Copy link
Author

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"

@serge0699
Copy link

Hello @AhmedAmrAbdellatif1, you can use init_privileged_mode option. See riscv_instr_gen_config.sv and riscv_asm_program_gen.sv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants