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/gpgpu-sim/shader.cc | |
| 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/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 8f3f700..c173206 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -223,7 +223,6 @@ extern unsigned g_max_regs_per_thread; void ptx_decode_inst( void *thd, unsigned *op, int *i1, int *i2, int *i3, int *i4, int *o1, int *o2, int *o3, int *o4, int *vectorin, int *vectorout, int *arch_reg ); unsigned ptx_get_inst_op( void *thd); void ptx_exec_inst( void *thd, address_type *addr, unsigned *space, unsigned *data_size, dram_callback_t* callback, unsigned warp_active_mask); -int ptx_branch_taken( void *thd ); void ptx_sim_free_sm( void** thread_info ); unsigned ptx_sim_init_thread( void** thread_info, int sid, unsigned tid,unsigned threads_left,unsigned num_threads, core_t *core, unsigned hw_cta_id, unsigned hw_warp_id); unsigned ptx_sim_cta_size(); @@ -1750,7 +1749,6 @@ void shader_decode( shader_core_ctx_t *shader, address_type addr; dram_callback_t callback; op_type op = NO_OP; - register int is_write; int tid; int i1, i2, i3, i4, o1, o2, o3, o4; //4 outputs needed for texture fetches in cuda-sim int i; @@ -1950,16 +1948,6 @@ void shader_decode( shader_core_ctx_t *shader, shader->pipeline_reg[IF_ID][i].out[2] = o3; shader->pipeline_reg[IF_ID][i].out[3] = o4; - if ( op == STORE_OP ) { - is_write = TRUE; - } - - if ( op == BRANCH_OP ) { - int taken=0; - assert( gpgpu_cuda_sim ); - taken = ptx_branch_taken(shader->thread[tid].ptx_thd_info); - } - // go to the next instruction // - done implicitly in ptx_exec_inst() |
