diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-30 14:02:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-30 14:02:23 -0400 |
commit | eedf9686eb60f2008e7766cc9a5d3e037b9dae64 (patch) | |
tree | 0cfa9009fe483b72940727f3b5a4236f779fe6e7 /inc/stage.h | |
parent | d20623d031cf909d8892c2db38cf2e2e02bc6a9b (diff) | |
parent | 8e56373a5436852fe9c7934e03d7b57493625003 (diff) |
Merge pull request #40 from bdunahu/bdunahu
Minor simplification to API between pipeline components
-- Fixed memory leaks
Diffstat (limited to 'inc/stage.h')
-rw-r--r-- | inc/stage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/stage.h b/inc/stage.h index 19e3896..50c413a 100644 --- a/inc/stage.h +++ b/inc/stage.h @@ -27,7 +27,7 @@ class Stage * @return a response, indicating whether this pipeline stage is stalling, * busy, or done. */ - virtual Response advance(InstrDTO &next_instr, Response p) = 0; + virtual InstrDTO *advance(Response p) = 0; protected: /** @@ -83,7 +83,7 @@ class Stage /** * A pointer to the current instruction this stage is processing. */ - std::unique_ptr<InstrDTO> curr_instr; + InstrDTO *curr_instr; /** * The current status of this stage. */ |