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

rv64: add xs custom csrs #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/isa/riscv64/local-include/csr.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ void csr_prepare();
CUSTOM_CSR(f) \
f(fflags , 0x001) f(frm , 0x002) f(fcsr , 0x003) \
f(mtime , 0xc01) \
f(sfetchctl , 0x9e0) f(sbpctl , 0x5c0) f(spfctl , 0x5c1) \
CORE_DEBUG_CSRS(f) \
TRIGGER_CSRS(f) \

Expand All @@ -117,6 +118,7 @@ void csr_prepare();
CUSTOM_CSR(f) \
f(fflags , 0x001) f(frm , 0x002) f(fcsr , 0x003) \
CORE_DEBUG_CSRS(f) \
f(sfetchctl , 0x9e0) f(sbpctl , 0x5c0) f(spfctl , 0x5c1) \
TRIGGER_CSRS(f) \

#endif
Expand Down Expand Up @@ -465,6 +467,15 @@ CSR_STRUCT_START(srnctl)
CSR_STRUCT_END(srnctl)
#endif

CSR_STRUCT_START(sfetchctl)
CSR_STRUCT_END(sfetchctl)

CSR_STRUCT_START(sbpctl)
CSR_STRUCT_END(sbpctl)

CSR_STRUCT_START(spfctl)
CSR_STRUCT_END(spfctl)

CSR_STRUCT_START(mcycle)
CSR_STRUCT_END(mcycle)

Expand Down
Loading