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

feature.c: Support C920V3 and Coprocessor Configuration #41

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

cp0613
Copy link
Collaborator

@cp0613 cp0613 commented Nov 13, 2024

No description provided.

@cp0613 cp0613 force-pushed the master branch 2 times, most recently from b69777d to 62ab8ea Compare November 13, 2024 12:22
@cp0613 cp0613 changed the title feature.c: Support C920V3 feature.c: Support C920V3 and Coprocessor Configuration Nov 13, 2024
@cp0613 cp0613 force-pushed the master branch 2 times, most recently from ab7709f to a1accc8 Compare November 14, 2024 05:53
@guoren83 guoren83 closed this Nov 14, 2024
@guoren83 guoren83 reopened this Nov 14, 2024
@cp0613 cp0613 closed this Nov 15, 2024
@cp0613 cp0613 reopened this Nov 15, 2024
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);
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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.

@guoren83 guoren83 merged commit ed2251e into XUANTIE-RV:master Nov 18, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants