Skip to content
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

target/riscv: clean-up register invalidation #1181

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

en-sc
Copy link
Collaborator

@en-sc en-sc commented Dec 6, 2024

  • Registers were not invalidated if the hart became unavailable.
  • Improved logging in the case register invalidation involves loss of information.

Change-Id: Icfb5e190dd6dcb1a97e4d314d802466cab7a01e4

JanMatCodasip
JanMatCodasip previously approved these changes Dec 10, 2024
Copy link
Collaborator

@JanMatCodasip JanMatCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks all right to me. Thank you for the additional hardening of the code.

I am sending few optional suggestions about function naming and comments.

src/target/riscv/riscv_reg.h Outdated Show resolved Hide resolved
src/target/riscv/riscv_reg.h Outdated Show resolved Hide resolved
src/target/riscv/riscv_reg.h Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/riscv_reg.c Outdated Show resolved Hide resolved
src/target/riscv/riscv_reg.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Show resolved Hide resolved
src/target/riscv/riscv.c Show resolved Hide resolved
src/target/riscv/riscv-013.c Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
* Registers were not invalidated if the hart became unavailable.
* Improved logging in the case register invalidation involves loss of
  information.

Change-Id: Icfb5e190dd6dcb1a97e4d314d802466cab7a01e4
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
@en-sc en-sc force-pushed the en-sc/reg-invalidate branch from a3e1409 to de20c2a Compare December 10, 2024 12:25
@en-sc en-sc requested a review from JanMatCodasip December 10, 2024 12:26
src/target/riscv/riscv-013.c Show resolved Hide resolved
@en-sc en-sc merged commit cf9963a into riscv-collab:riscv Dec 11, 2024
4 checks passed
@en-sc en-sc deleted the en-sc/reg-invalidate branch December 11, 2024 13:40
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