-
Notifications
You must be signed in to change notification settings - Fork 3
Update instruction format keys to uppercase #8
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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # Generated Instruction Formats | ||
|
|
||
| INSTRUCTION_FORMATS = { | ||
| "rv_zifencei": { | ||
| "RV_ZIFENCEI": { | ||
| "fence.i": { | ||
| "format": "fence.i", | ||
| "variables": [], | ||
|
|
@@ -95,7 +95,7 @@ | |
| } | ||
| }, | ||
| # rv32 | ||
| "rv_zbs": { | ||
| "RV_ZBS": { | ||
|
||
| "bclr": { | ||
| "format": "bclr {RD}, {RS1}, {RS2}", | ||
| "variables": [ | ||
|
|
@@ -134,7 +134,7 @@ | |
| } | ||
| }, | ||
| # rv32 | ||
| "rv_32B":{ | ||
| "RV_32B":{ | ||
|
||
| "slo": { | ||
| "format": "slo {RD}, {RS1}, {RS2}", | ||
| "variables": [ | ||
|
|
||
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.
These extension keys were changed to uppercase, but several call sites and configuration lists still use the lowercase forms (e.g.,
fuzzer/generator/asm_template_manager/ext_list/allowed_ext.pycontains"rv_zifencei"). Some code (e.g.,core/generator/generate_instrs.py) indexesINSTRUCTION_FORMATSusing the extension string without normalizing case, sorv_zifenceiwill no longer be found and the extension’s instructions may be silently skipped. Please standardize extension identifiers across the repo (update allowed_ext/special_probabilities/sets keys as needed) or add a backwards-compatible alias / normalization layer (e.g., normalizeext = ext.upper()before lookup).