diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-15 13:38:38 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-15 13:38:38 -0400 |
| commit | 3b88f9db669d8ec9ffc477352dcfd2a3d423781f (patch) | |
| tree | 8206240071137c5a035d761439326bea69c5515d /src/cuda-sim/ptx_ir.cc | |
| parent | 36aaec0a30445533f04aaf6b55c5ef135e20484a (diff) | |
Move g_num_ptx_inst_uid
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_ir.cc')
| -rw-r--r-- | src/cuda-sim/ptx_ir.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc index 0fa29eb..849cc5d 100644 --- a/src/cuda-sim/ptx_ir.cc +++ b/src/cuda-sim/ptx_ir.cc @@ -1100,7 +1100,7 @@ ptx_instruction::ptx_instruction( int opcode, gpgpu_context* ctx ) : warp_inst_t(config), m_return_var(ctx) { gpgpu_ctx = ctx; - m_uid = ++g_num_ptx_inst_uid; + m_uid = ++(ctx->g_num_ptx_inst_uid); m_PC = 0; m_opcode = opcode; m_pred = pred; |
