diff options
| author | Tor Aamodt <[email protected]> | 2010-07-17 08:42:20 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-07-17 08:42:20 -0800 |
| commit | ca7e2e58e7fd932d67c6d28477a5c15ed3b156b0 (patch) | |
| tree | 1a66586b291019476ec06715d259560818baf923 /src/abstract_hardware_model.h | |
| parent | b6661da800739b0fca9e01ba6d5afaca4f286d84 (diff) | |
- 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]
Diffstat (limited to 'src/abstract_hardware_model.h')
| -rw-r--r-- | src/abstract_hardware_model.h | 14 |
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 |
