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

updating opcodes of riscv-p-spec - v0.9.11 (c3409c8) #147

Merged
merged 2 commits into from
Dec 8, 2022
Merged

updating opcodes of riscv-p-spec - v0.9.11 (c3409c8) #147

merged 2 commits into from
Dec 8, 2022

Conversation

eflaner
Copy link
Contributor

@eflaner eflaner commented Dec 2, 2022

Babu P S added 2 commits December 1, 2022 20:11
- Reorganized 'p' into sub-extensions zpn, zpfs & zbpbo 
- Some instructions such as insb, smmul has been rearranged according XLEN.
@neelgala
Copy link
Collaborator

neelgala commented Dec 8, 2022

LGTM
@aswaterman could you enable the workflow on this PR ? if they pass I think it can be merged.

@aswaterman
Copy link
Member

Yeah, thanks for reviewing, @neelgala

@aswaterman aswaterman merged commit 9b0eddd into riscv:master Dec 8, 2022
@aswaterman
Copy link
Member

@eflaner Did you ever make a Spike PR associated with these changes? Spike no longer builds because it depends on the opcode definitions for the removed instructions like PKBB32.

Without a corresponding Spike PR, I'll have to revert this PR, since we can't make progress on other extensions in Spike in the meantime.

@aswaterman
Copy link
Member

aswaterman commented Jan 31, 2023

@scottj97 Do you think we should augment riscv-opcodes' CI flow to make sure that the HEAD of master on riscv-isa-sim can build with the generated encoding.h? It couples these repos awkwardly, but it would prevent this kind of breakage going forward.

For a change like this one, which both adds and deletes opcodes, we'd either need to stage it as multiple PRs, or allow the corresponding Spike PR to be merged before rerunning CI over here. Fortunately, this kind of PR is not the common case.

@scottj97
Copy link
Contributor

@scottj97 Do you think we should augment riscv-opcodes' CI flow to make sure that the HEAD of master on riscv-isa-sim can build with the generated encoding.h? It couples these repos awkwardly, but it would prevent this kind of breakage going forward.

Fortunately this is rare, and I think we have a suitable workaround for this one.

For a change like this one, which both adds and deletes opcodes, we'd either need to stage it as multiple PRs, or allow the corresponding Spike PR to be merged before rerunning CI over here. Fortunately, this kind of PR is not the common case.

I don't think Spike should commit an encoding.h to its master if the source for that file is not yet in master here. We don't want a rebased PR here to invalidate the hashes that are permanently committed into Spike's history.

@aswaterman
Copy link
Member

Reasonable.

aswaterman added a commit that referenced this pull request Jan 31, 2023
Temporarily work around #147 breaking Spike
@eflaner
Copy link
Contributor Author

eflaner commented Feb 1, 2023

@aswaterman

@eflaner Did you ever make a Spike PR associated with these changes? Spike no longer builds because it depends on the opcode definitions for the removed instructions like PKBB32.

No PR was created in Spike for these changes. Neither am i aware of spike internals to make it compliant with 'latest' spike.

Without a corresponding Spike PR, I'll have to revert this PR, since we can't make progress on other extensions in Spike in the meantime.

Hmm, okay, i could see the #147 is excluded using the #157.
IDK whether this is right place to ask - what should be done to fix the spike build failure.

on that note, which all repos (like spike) should be fixed before a PR is made in riscv-opcodes ?

@aswaterman
Copy link
Member

The general rule is that Spike must build against the output of this repository.

Normally, adding new functionality to this repository poses no issues. The problems arise when existing functionality is deleted.

Given there is no apparent plan to update Spike in accordance to #147 etc., we will revert those changes. We'll happily re-accept them once there is a plan to make them work with Spike.

aswaterman added a commit that referenced this pull request Feb 6, 2023
aswaterman added a commit that referenced this pull request Feb 6, 2023
aswaterman added a commit that referenced this pull request Feb 6, 2023
neelgala added a commit that referenced this pull request Feb 6, 2023
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.

4 participants