diff options
| author | Ayub Gubran <[email protected]> | 2012-07-16 23:49:05 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:33 -0700 |
| commit | a05d1c1a5abb37f129c95c92991f69f3a43158ed (patch) | |
| tree | 6786c74a1ac98c88b481d1acf5aa313476240cf2 /src/gpgpu-sim/shader.cc | |
| parent | dc45f0ec4b16144c248fb86acc905fbb5b627300 (diff) | |
Fix for bug 9: Now querying the state of the pdom stack in call_imp and callp_imp using a core_t function, thus moving the querying function into the abstract model of the core instead of shader_core_ctx which represents the performance mode. This code simplify the querying and also avoid the unnecessary calling hierarchy that was used.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13375]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 8ed907d..ddb544a 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -289,18 +289,6 @@ address_type shader_core_ctx::next_pc( int tid ) const return the_thread->get_pc(); // PC should already be updatd to next PC at this point (was set in shader_decode() last time thread ran) } -void gpgpu_sim::get_pdom_stack_top_info( unsigned sid, unsigned tid, unsigned *pc, unsigned *rpc ) -{ - unsigned cluster_id = m_shader_config->sid_to_cluster(sid); - m_cluster[cluster_id]->get_pdom_stack_top_info(sid,tid,pc,rpc); -} - -void shader_core_ctx::get_pdom_stack_top_info( unsigned tid, unsigned *pc, unsigned *rpc ) const -{ - unsigned warp_id = tid/m_config->warp_size; - m_simt_stack[warp_id]->get_pdom_stack_top_info(pc,rpc); -} - void shader_core_stats::print( FILE* fout ) const { unsigned icount_uarch=0; @@ -2449,12 +2437,6 @@ void simt_core_cluster::icnt_cycle() } } -void simt_core_cluster::get_pdom_stack_top_info( unsigned sid, unsigned tid, unsigned *pc, unsigned *rpc ) const -{ - unsigned cid = m_config->sid_to_cid(sid); - m_core[cid]->get_pdom_stack_top_info(tid,pc,rpc); -} - void simt_core_cluster::display_pipeline( unsigned sid, FILE *fout, int print_mem, int mask ) { m_core[m_config->sid_to_cid(sid)]->display_pipeline(fout,print_mem,mask); |
