-
Notifications
You must be signed in to change notification settings - Fork 296
Add some RISC-V options #447
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,21 @@ | |
| LINE(RISCV_C, C, "c", RISCV_HWCAP_C, 0) \ | ||
| LINE(RISCV_V, V, "v", RISCV_HWCAP_V, 0) \ | ||
| LINE(RISCV_Zicsr, Zicsr, "_zicsr", 0, 0) \ | ||
| LINE(RISCV_Zifencei, Zifencei, "_zifencei", 0, 0) | ||
| LINE(RISCV_Zifencei, Zifencei, "_zifencei", 0, 0) \ | ||
| LINE(RISCV_Zfa, Zfa, "_zfa", 0, 0) \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not adding
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was influenced by which features are currently implemented by RISC-V chip vendors, but yes, Zfbfmin is optional in the RVA23 profile, so I ought to include it. |
||
| LINE(RISCV_Zfh, Zfh, "_zfh", 0, 0) \ | ||
| LINE(RISCV_Zfhmin, Zfhmin, "_zfhmin", 0, 0) \ | ||
| LINE(RISCV_Zca, Zca, "_zca", 0, 0) \ | ||
| LINE(RISCV_Zcb, Zcb, "_zcb", 0, 0) \ | ||
| LINE(RISCV_Zcd, Zcd, "_zcd", 0, 0) \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| LINE(RISCV_Zba, Zba, "_zba", 0, 0) \ | ||
| LINE(RISCV_Zbb, Zbb, "_zbb", 0, 0) \ | ||
| LINE(RISCV_Zbc, Zbc, "_zbc", 0, 0) \ | ||
| LINE(RISCV_Zbs, Zbs, "_zbs", 0, 0) \ | ||
| LINE(RISCV_Zvbb, Zvbb, "_zvbb", 0, 0) \ | ||
| LINE(RISCV_Zvbc, Zvbc, "_zvbc", 0, 0) \ | ||
| LINE(RISCV_Zvfh, Zvfh, "_zvfh", 0, 0) \ | ||
| LINE(RISCV_Zvfhmin, Zvfhmin, "_zvfhmin", 0, 0) | ||
| #define INTROSPECTION_PREFIX Riscv | ||
| #define INTROSPECTION_ENUM_PREFIX RISCV | ||
| #include "define_introspection_and_hwcaps.inl" | ||
|
|
||
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.
AFAIK HWCAP_B still not part of the linux kernel
ref:
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.
Also your PR do not contains any
RISCV_Bin theRiscvFeaturesEnumso it seems inconsistent imhoThere 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.
Yes, I had had the same thought that maybe HWCAP_B should not be part of the PR. I’ll take it out and resubmit.