-
Notifications
You must be signed in to change notification settings - Fork 16
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
feature.c: Support C920V3 and Coprocessor Configuration #41
Conversation
b69777d
to
62ab8ea
Compare
ab7709f
to
a1accc8
Compare
Signed-off-by: Chen Pei <[email protected]>
Signed-off-by: Chen Pei <[email protected]>
feature.c
Outdated
if (boot_flag & FLAG_RV64XT32) | ||
csr_write(CSR_MXSTATUS, csr_read(CSR_MXSTATUS) | (1ULL << 63)); | ||
if (boot_flag & FLAG_RV64XTSV32) | ||
csr_set(CSR_MXSTATUS, 1ULL << 63); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification is not related.
README.adoc
Outdated
# set *(unsigned int *)$flag_addr = 0x1 | ||
# This flag.BIT[1] makes zsb enable COPINSTEE by setting mxstatus.[24]=1/mxstatus.[22]=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mxstatus.[24]=1 && mxstatus.[22]=0
README.adoc
Outdated
@@ -310,8 +310,10 @@ set *(unsigned long *)($dyninfo_addr + 32) = 0 | |||
set *(unsigned long *)($dyninfo_addr + 40) = -1 | |||
|
|||
# Set boot flag for CPU functional setting | |||
# This flag.BIT[0] makes zsb enable RV64XT32 by setting mxstatus.[63]=1 | |||
# This flag.BIT[0] makes zsb enable RV64XTSV32 by setting mxstatus.[63]=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification is not related.
No description provided.