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

Raise exception in LSU when ROB is drained #108

Merged
merged 15 commits into from
Dec 21, 2023

Conversation

h0lyalg0rithm
Copy link
Collaborator

Based on the discussion in #90

@h0lyalg0rithm h0lyalg0rithm requested review from klingaard and a user October 31, 2023 15:11
Copy link
Collaborator

@klingaard klingaard left a comment

Choose a reason for hiding this comment

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

Function name does not follow style guide

@h0lyalg0rithm
Copy link
Collaborator Author

h0lyalg0rithm commented Nov 1, 2023

Function name does not follow style guide

My bad just fixed it

@h0lyalg0rithm h0lyalg0rithm marked this pull request as ready for review November 1, 2023 07:43
core/LSU.cpp Outdated Show resolved Hide resolved
core/CPUFactory.cpp Outdated Show resolved Hide resolved
h0lyalg0rithm and others added 3 commits November 3, 2023 13:33
Co-authored-by: Knute Lingaard <[email protected]>
Signed-off-by: Suraj Shirvankar <[email protected]>
Co-authored-by: Knute Lingaard <[email protected]>
Signed-off-by: Suraj Shirvankar <[email protected]>
core/ROB.cpp Outdated Show resolved Hide resolved
core/CPUFactory.cpp Outdated Show resolved Hide resolved
core/CPUTopology.cpp Outdated Show resolved Hide resolved
@h0lyalg0rithm h0lyalg0rithm requested review from a user and danbone November 10, 2023 15:52
core/ROB.cpp Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Nov 13, 2023

I pushed changes to this PR to origin/lsu_drained. Please pull those changes into your fork.

@ghost ghost assigned h0lyalg0rithm Nov 13, 2023
@ghost ghost added bug Something isn't working enhancement New feature or request labels Nov 13, 2023
@h0lyalg0rithm
Copy link
Collaborator Author

I pushed changes to this PR to origin/lsu_drained. Please pull those changes into your fork.

Thanks Knute

core/LSU.cpp Outdated Show resolved Hide resolved
@h0lyalg0rithm h0lyalg0rithm requested a review from a user November 13, 2023 22:50
@klingaard
Copy link
Collaborator

At your earliest convenience, @h0lyalg0rithm can you update this branch (resolve conflicts)?

@h0lyalg0rithm
Copy link
Collaborator Author

@klingaard I synced it up with master

@klingaard klingaard merged commit e3e1412 into riscv-software-src:master Dec 21, 2023
4 checks passed
LiGaOg pushed a commit to LiGaOg/riscv-perf-model that referenced this pull request Jan 8, 2024
This PR adds a notification from ROB to the entire simulation that the ROB
is about to or is expecting simulation to correctly terminate.  If a unit listens
for that notification, it can use that information to determine if simulation 
ended improperly, meaning, it might still have work to do, but didn't expect
simulation to stop.  An example of how this can happen: a unit is NOT 
scheduling an event to do work (a bug) because of a missed path to "wake"
it up.  

If the sparta::Scheduler ends simulation because it has no events to 
run, the unit will not receive the end-of-simulation notification from the ROB
and can throw an exception in this case.

---------

Signed-off-by: Suraj Shirvankar <[email protected]>
Co-authored-by: Knute Lingaard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants