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: remove duplicate of progbufsize field #1125

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

fk-sc
Copy link
Contributor

@fk-sc fk-sc commented Sep 3, 2024

Remove duplicate of progbufsize field

  • removed progbuf_size field from riscv_info; added getter
  • moved impebreak field from riscv_info to 'riscv013_info' as implementation dependent field; added getter

@fk-sc fk-sc changed the title Remove duplicate of progbufsize field target/riscv: remove duplicate of progbufsize field Sep 3, 2024
@fk-sc fk-sc changed the title target/riscv: remove duplicate of progbufsize field [NFC] target/riscv: remove duplicate of progbufsize field Sep 3, 2024
en-sc
en-sc previously approved these changes Sep 3, 2024
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.

LGTM (reviewed internally). @JanMatCodasip, @MarekVCodasip, please take a look.

JanMatCodasip
JanMatCodasip previously approved these changes Sep 4, 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.

Thank you for the cleanup, it looks good.

I have posted few optional comments for your consideration, mostly related to code consistency.

src/target/riscv/riscv.h Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/program.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
MarekVCodasip
MarekVCodasip previously approved these changes Sep 4, 2024
Copy link
Collaborator

@MarekVCodasip MarekVCodasip left a comment

Choose a reason for hiding this comment

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

Nothing to add to @JanMatCodasip

@TommyMurphyTM1234
Copy link
Collaborator

Small (possibly dumb) question...
What does "[NFC]" in the PR title mean ?
The only thing that I can think of is "non-functional change" - meaning a code change that cleans something up but doesn't deliberately change the logic/functionality (although surely any code change impacts logic/functionality?).
Is that it or is it something else?
Thanks.

@fk-sc
Copy link
Contributor Author

fk-sc commented Sep 4, 2024

@TommyMurphyTM1234, you are right. NFC means non-functional change. I can rename PR if such naming is confusing

@TommyMurphyTM1234
Copy link
Collaborator

@TommyMurphyTM1234, you are right. NFC means non-functional change. I can rename PR if such naming is confusing

Thanks @fk-sc - I just hadn't come across such nomenclature before and couldn't find anything explanatory by searching. But maybe it's a commonly used shorthand.

@fk-sc fk-sc changed the title [NFC] target/riscv: remove duplicate of progbufsize field target/riscv: remove duplicate of progbufsize field Sep 4, 2024
Copy link
Collaborator

@MarekVCodasip MarekVCodasip left a comment

Choose a reason for hiding this comment

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

I have two small nitpicks I additionally noticed. Please take a look.

src/target/riscv/riscv-013.c Show resolved Hide resolved
src/target/riscv/riscv.h Show resolved Hide resolved
* removed `progbuf_size`  field from `riscv_info`; added getter
* moved `impebreak` field from `riscv_info` to `riscv013_info`
  as implementation dependent field; added getter

Signed-off-by: Farid Khaydari <[email protected]>
@en-sc en-sc merged commit d7a7c98 into riscv-collab:riscv Sep 6, 2024
4 checks passed
@fk-sc fk-sc deleted the fk-sc/field-duplication branch September 6, 2024 12:16
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.

5 participants