From ca7e2e58e7fd932d67c6d28477a5c15ed3b156b0 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sat, 17 Jul 2010 08:42:20 -0800 Subject: - add support for cvta and isspacep instructions (currently assuming a fixed address mapping between shared,local to generic that depends upon hardware thread context used... might be interesting to explore tradeoffs at some point) - remove util.h... we don't need TRUE, FALSE anymore now that everything is C++ - remove some dead code from shader_decode [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6867] --- src/abstract_hardware_model.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/abstract_hardware_model.h') 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 -- cgit v1.3