-
Notifications
You must be signed in to change notification settings - Fork 352
target/riscv: Regenerate debug_defines.{c,h} from current riscv-debug… #1253
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: riscv
Are you sure you want to change the base?
Conversation
…-spec This pulls in some improvements from the riscv-debug-spec repo, and cleans up the licensing (riscv-debug-spec changed the license to dual CC-BY-4.0 and BSD-2-Clause specifically to make sure the generated debug_defines files don't conflict with OpenOCD licensing) Signed-off-by: Bernhard Rosenkränzer <[email protected]>
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.
Thank you for the patch!
Please, address the Checkpatch failures.
Also, consider cherry-picking the change form #1248 to fix the CI.
* This file is auto-generated by running 'make debug_defines' in | ||
* https://github.com/riscv/riscv-debug-spec/ (40b9a05) | ||
*/ | ||
/* SPDX-License-Identifier: BSD-2-Clause OR CC-BY-4.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.
Please, fix the SPDX identifier:
/* SPDX-License-Identifier: BSD-2-Clause OR CC-BY-4.0 */ | |
// SPDX-License-Identifier: BSD-2-Clause OR CC-BY-4.0 |
@@ -644,8 +706,7 @@ | |||
*/ | |||
#define CSR_TCONTROL_MTE_ENABLED 1 | |||
/* | |||
* When any trap into M-mode is taken, \FcsrTcontrolMte is set to 0. When {\tt | |||
* mret} is executed, \FcsrTcontrolMte is set to the value of \FcsrTcontrolMpte. | |||
* When any trap into M-mode is taken, {tcontrol-mte} is set to 0. When `mret` is executed, {tcontrol-mte} is set to the value of {tcontrol-mpte}. |
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.
Please, add Checkpatch-ignore: LONG_LINE_COMMENT
to the commit footer.
See 26f2df8 for an example.
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.
I checked this PR visually and it looks OK to me. I do not have any more comments than what @en-sc already pointed out.
target/riscv: Regenerate debug_defines.{c,h} from current riscv-debug-spec
This pulls in some improvements from the riscv-debug-spec repo, and cleans up the licensing (riscv-debug-spec changed the license to dual CC-BY-4.0 and BSD-2-Clause specifically to make sure the generated debug_defines files don't conflict with OpenOCD licensing)