From a05d1c1a5abb37f129c95c92991f69f3a43158ed Mon Sep 17 00:00:00 2001 From: Ayub Gubran Date: Mon, 16 Jul 2012 23:49:05 -0800 Subject: 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] --- src/abstract_hardware_model.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/abstract_hardware_model.cc') diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc index 01899d5..396e45a 100644 --- a/src/abstract_hardware_model.cc +++ b/src/abstract_hardware_model.cc @@ -732,3 +732,8 @@ m_simt_stack = new simt_stack*[warps]; for (unsigned i = 0; i < warps; ++i) m_simt_stack[i] = new simt_stack(i,warpsSize); } + +void core_t::get_pdom_stack_top_info( unsigned warpId, unsigned *pc, unsigned *rpc ) const +{ + m_simt_stack[warpId]->get_pdom_stack_top_info(pc,rpc); +} -- cgit v1.3