summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-08 15:45:05 -0400
committerMengchi Zhang <[email protected]>2019-07-08 15:45:05 -0400
commit8f6668941cf2728dba9700e45f11f61401a1fcf4 (patch)
tree91527bc9053638117506a5caa2694294e796e67c /src/abstract_hardware_model.cc
parent7c13f6c7cc7fd598b268810c903983b79606f3ca (diff)
Move g_ptx_sim_num_insn
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/abstract_hardware_model.cc')
-rw-r--r--src/abstract_hardware_model.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc
index 7755477..248e7a5 100644
--- a/src/abstract_hardware_model.cc
+++ b/src/abstract_hardware_model.cc
@@ -173,9 +173,10 @@ void gpgpu_functional_sim_config::ptx_set_tex_cache_linesize(unsigned linesize)
m_texcache_linesize = linesize;
}
-gpgpu_t::gpgpu_t( const gpgpu_functional_sim_config &config )
+gpgpu_t::gpgpu_t( const gpgpu_functional_sim_config &config, gpgpu_context* ctx )
: m_function_model_config(config)
{
+ gpgpu_ctx = ctx;
m_global_mem = new memory_space_impl<8192>("global",64*1024);
m_tex_mem = new memory_space_impl<8192>("tex",64*1024);