diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-15 16:17:07 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-15 16:17:07 -0400 |
| commit | 352d2a3336b1c8e5258ca9d92d214973e98837c0 (patch) | |
| tree | e903c64f229b7f288057faf0f766238adf4de797 /libcuda | |
| parent | 1e57dc86369fbde8d31b4a629721c716ca2c3307 (diff) | |
Move s_g_pc_to_insn
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/gpgpu_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h index ed4f746..346a8a4 100644 --- a/libcuda/gpgpu_context.h +++ b/libcuda/gpgpu_context.h @@ -39,6 +39,8 @@ class gpgpu_context { unsigned long long g_ptx_cta_info_uid; unsigned symbol_sm_next_uid; //uid for symbol unsigned function_info_sm_next_uid; + std::vector<ptx_instruction*> s_g_pc_to_insn; // a direct mapping from PC to instruction + // objects pointers for each file cuda_runtime_api* api; ptxinfo_data* ptxinfo; @@ -58,6 +60,9 @@ class gpgpu_context { class gpgpu_sim *gpgpu_ptx_sim_init_perf(); struct _cuda_device_id *GPGPUSim_Init(); void ptx_reg_options(option_parser_t opp); + const ptx_instruction* pc_to_instruction(unsigned pc); + const warp_inst_t *ptx_fetch_inst( address_type pc ); + unsigned translate_pc_to_ptxlineno(unsigned pc); }; gpgpu_context* GPGPU_Context(); |
