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

SAIL implementation of CLIC #185

Open
dansmathers opened this issue Dec 21, 2021 · 5 comments
Open

SAIL implementation of CLIC #185

dansmathers opened this issue Dec 21, 2021 · 5 comments
Labels
post-v1.0 To be handled after v1.0

Comments

@dansmathers
Copy link
Collaborator

SAIL implementation needed for Definition of Done. Creating an issue for tracking purposes.

@dansmathers
Copy link
Collaborator Author

Replace pseudo-code in spec with SAIL code once SAIL code is implemented?

@dansmathers
Copy link
Collaborator Author

FYI, smrnmi may be a good reference for how to implement clic in SAIL
riscv/sail-riscv#396

@dansmathers
Copy link
Collaborator Author

another reference is an attempt at plic: https://github.com/saravanakumarsastra/sail-riscv

@dansmathers
Copy link
Collaborator Author

if CLIC changes from mem-mapped clicint registers to using indirect csrs: https://github.com/adlr/sail-riscv/tree/smcsrindpr

@dansmathers
Copy link
Collaborator Author

Initial sail-riscv clic implementation. Moving issue to post 1.0 - ecosystem phase as we work to get the pull approved.

riscv/sail-riscv#420
Tested against Tests: riscv-non-isa/riscv-arch-test#436

Note: pulls are not yet available for spike that support CLIC

Related pulls to run arch-tests against the sail-riscv model:
riscv-software-src/riscv-config#169
riscv-software-src/riscof#106
riscv-software-src/riscv-isa-sim#1596

To include m-mode CLIC interrupt tests in riscof testlist flow, add Smclic to riscof yaml file, e.g.:
spike/spike_isa.yaml:
ISA: RV32IMCZicsr_Zifencei_Smclic

@dansmathers dansmathers added the post-v1.0 To be handled after v1.0 label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
post-v1.0 To be handled after v1.0
Projects
None yet
Development

No branches or pull requests

1 participant