-
Notifications
You must be signed in to change notification settings - Fork 24
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
Create CTP (Cert Test Plan) backend #418
base: main
Are you sure you want to change the base?
Conversation
… updated $ref syntax (matching certificates).
…software-src/riscv-unified-db into big-beautiful-refactoring
…if a different design was passed to it which seems bizzare since it goes out of its way to support having a different type for different designs. So, I modified it to work like the type cache in ast and do what I think it wanted to do in the first place.
…software-src/riscv-unified-db into big-beautiful-refactoring
…ke it clearer the return type since I found bugs in the code related to this.
…n't have (i.e. in @config). Also true for implemented and prohibited.
…ns, CSRs, and traps that aren't in the configuration). Still need to fix traps and interrupts.
…chitecture inheritence from Architecture.
…seems to have failed incorrectly).
…o frontend /arch files. And, also igore *.bak files in Git.
… (especially rakefiles). Now use cfg "_" instead of rv32 or rv64 since there really is no difference in the generated design.
"xref:csrs:#{csr_name}.adoc#udb:doc:csr_field:#{csr_name}:#{field_name}[#{link_text.gsub(']', '\]')}]" | ||
when "func" | ||
# All functions are in the same file called "funcs.adoc". | ||
"xref:funcs:funcs.adoc#udb:doc:func:#{name}[#{link_text.gsub(']', '\]')}]" |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 5 days ago
To fix the problem, we need to ensure that backslashes in the link_text
are also escaped. This can be done by first escaping backslashes and then escaping the ]
character. We will use the gsub
method to replace all occurrences of backslashes with double backslashes and then replace ]
with \]
.
-
Copy modified line R292
@@ -291,3 +291,3 @@ | ||
# All functions are in the same file called "funcs.adoc". | ||
"xref:funcs:funcs.adoc#udb:doc:func:#{name}[#{link_text.gsub(']', '\]')}]" | ||
"xref:funcs:funcs.adoc#udb:doc:func:#{name}[#{link_text.gsub('\\', '\\\\').gsub(']', '\]')}]" | ||
else |
…ave certification test plan information.
…com/riscv-software-src/riscv-unified-db into Create-CTP-(Cert-Test-Plan)-backend
…com/riscv-software-src/riscv-unified-db into Create-CTP-(Cert-Test-Plan)-backend
…giving an invalid part error.
…or colophons and now the isa manuals are proper adoc "parts" in the overall "book").
No description provided.