diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-15 14:09:25 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-15 14:09:25 -0400 |
| commit | 1e57dc86369fbde8d31b4a629721c716ca2c3307 (patch) | |
| tree | 806175a07d586504c521893002057e35ff2593a7 | |
| parent | 6ec4563b11fe99e539eb83412acaadc6f67b05ba (diff) | |
Move g_debug_pc
Signed-off-by: Mengchi Zhang <[email protected]>
| -rw-r--r-- | src/cuda-sim/cuda-sim.cc | 1 | ||||
| -rw-r--r-- | src/cuda-sim/cuda-sim.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index e4ff0f9..c06f093 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -54,7 +54,6 @@ typedef void * yyscan_t; #include "../../libcuda/gpgpu_context.h" int g_debug_execution = 0; -addr_t g_debug_pc = 0xBEEF1518; // Output debug information to file options diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h index 9041e30..5bd4cb2 100644 --- a/src/cuda-sim/cuda-sim.h +++ b/src/cuda-sim/cuda-sim.h @@ -136,6 +136,7 @@ class cuda_sim { ptx_tex_regs = NULL; g_ptx_thread_info_delete_count=0; g_ptx_thread_info_uid_next=1; + g_debug_pc = 0xBEEF1518; gpgpu_ctx = ctx; } //global variables @@ -175,6 +176,7 @@ class cuda_sim { ptx_reg_t* ptx_tex_regs; unsigned g_ptx_thread_info_delete_count; unsigned g_ptx_thread_info_uid_next; + addr_t g_debug_pc; // backward pointer class gpgpu_context* gpgpu_ctx; //global functions |
