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/cuda-sim/instructions.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/cuda-sim/instructions.cc')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index 37e5d00..6976ba0 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -1258,12 +1258,10 @@ void call_impl( const ptx_instruction *pI, ptx_thread_info *thread ) return_var_src = target_func->get_return_var(); } - unsigned sid = thread->get_hw_sid(); - unsigned tid = thread->get_hw_tid(); gpgpu_sim *gpu = thread->get_gpu(); unsigned callee_pc=0, callee_rpc=0; if( gpu->simd_model() == POST_DOMINATOR ) { - gpu->get_pdom_stack_top_info(sid,tid,&callee_pc,&callee_rpc); + thread->get_core()->get_pdom_stack_top_info(thread->get_hw_wid(),&callee_pc,&callee_rpc); assert( callee_pc == thread->get_pc() ); } @@ -1286,12 +1284,10 @@ void callp_impl( const ptx_instruction *pI, ptx_thread_info *thread ) const symbol *return_var_src = NULL; const symbol *return_var_dst = NULL; - unsigned sid = thread->get_hw_sid(); - unsigned tid = thread->get_hw_tid(); gpgpu_sim *gpu = thread->get_gpu(); unsigned callee_pc=0, callee_rpc=0; if( gpu->simd_model() == POST_DOMINATOR ) { - gpu->get_pdom_stack_top_info(sid,tid,&callee_pc,&callee_rpc); + thread->get_core()->get_pdom_stack_top_info(thread->get_hw_wid(),&callee_pc,&callee_rpc); assert( callee_pc == thread->get_pc() ); } |
