summaryrefslogtreecommitdiff
path: root/inc/controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/controller.h')
-rw-r--r--inc/controller.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/inc/controller.h b/inc/controller.h
index 0cafe10..56f3836 100644
--- a/inc/controller.h
+++ b/inc/controller.h
@@ -1,5 +1,6 @@
#ifndef CONTROLLER_H
#define CONTROLLER_H
+#include "response.h"
#include "stage.h"
/**
@@ -15,7 +16,6 @@ class Controller : public Stage
* @return A newly allocated controller object.
*/
Controller(Storage *storage, bool is_pipelined);
- ~Controller();
/**
* Direct the simulator to run for `number` clock cycles.
@@ -34,14 +34,10 @@ class Controller : public Stage
* @return the pc.
*/
int get_pc();
+ Response advance();
private:
/**
- * Helper for run_for.
- * Advances the simulation by a single cycle.
- */
- void advance();
- /**
* The current clock cycle.
*/
int clock_cycle;