summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index 39f4b3f..7066aa6 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -1,5 +1,5 @@
-#ifndef CORE_T_INCLUDED
-#define CORE_T_INCLUDED
+#ifndef ABSTRACT_HARDWARE_MODEL_INCLUDED
+#define ABSTRACT_HARDWARE_MODEL_INCLUDED
class core_t {
public:
@@ -9,4 +9,14 @@ public:
virtual bool warp_waiting_at_barrier( unsigned warp_id ) = 0;
};
+typedef unsigned address_type;
+typedef unsigned addr_t;
+
+#define NO_OP -1
+#define ALU_OP 1000
+#define LOAD_OP 2000
+#define STORE_OP 3000
+#define BRANCH_OP 4000
+#define BARRIER_OP 5000
+
#endif