Skip to content

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

Open
wants to merge 1 commit into
base: riscv
Choose a base branch
from

Conversation

berolinux
Copy link
Contributor

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)

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

@en-sc en-sc left a 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 */
Copy link
Collaborator

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:

Suggested change
/* SPDX-License-Identifier: BSD-2-Clause OR CC-BY-4.0 */
// SPDX-License-Identifier: BSD-2-Clause OR CC-BY-4.0

See riscv/riscv-debug-spec#968 (comment)

@@ -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}.
Copy link
Collaborator

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.

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