From 7e755bb656b68cfb628fcc0424b1325c32cb5d61 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sat, 17 Jul 2010 19:37:23 -0800 Subject: - added *implied* local memory stack pointer for functional execution (still need to determine framesize during parsing, and need to support alternate mode were stack pointer is explicit register a la zev...) - define local param mapping to local memory for functional execution [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6875] --- src/cuda-sim/ptx_sim.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cuda-sim/ptx_sim.h') diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h index 8a74168..d4bdf48 100644 --- a/src/cuda-sim/ptx_sim.h +++ b/src/cuda-sim/ptx_sim.h @@ -424,6 +424,10 @@ public: void enable_debug_trace() { m_enable_debug_trace = true; } + unsigned get_local_mem_stack_pointer() const { return m_local_mem_stack_pointer; } + void push_local_mem_stack(); + void pop_local_mem_stack(); + public: addr_t m_last_effective_address; bool m_branch_taken; @@ -464,8 +468,8 @@ private: function_info *m_func_info; std::list m_callstack; + unsigned m_local_mem_stack_pointer; - // typedef std::unordered_map reg_map_t; typedef std::unordered_map reg_map_t; std::list m_regs; -- cgit v1.3