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/cuda-sim/ptx_sim.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/cuda-sim/ptx_sim.h') diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h index 17eb250..b4a78c8 100644 --- a/src/cuda-sim/ptx_sim.h +++ b/src/cuda-sim/ptx_sim.h @@ -68,10 +68,8 @@ #include #include "dram_callback.h" -#include "../util.h" #include "../abstract_hardware_model.h" -typedef address_type addr_t; struct dim3 { unsigned int x, y, z; @@ -450,6 +448,14 @@ private: unsigned type_decode( unsigned type, size_t &size, int &t ); +addr_t generic_to_local( unsigned smid, unsigned hwtid, addr_t addr ); +addr_t generic_to_shared( unsigned smid, addr_t addr ); +addr_t local_to_generic( unsigned smid, unsigned hwtid, addr_t addr ); +addr_t shared_to_generic( unsigned smid, addr_t addr ); +bool isspace_local( unsigned smid, unsigned hwtid, addr_t addr ); +bool isspace_shared( unsigned smid, addr_t addr ); +bool isspace_global( addr_t addr ); + #endif #define MAX_REG_OPERANDS 8 -- cgit v1.3