diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-08 12:37:52 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-08 12:37:52 -0400 |
| commit | b3e786e3d8d720217f36a214e9b5be9a19ab9dd2 (patch) | |
| tree | 4606248aae16685a12a1e4943cdb06d2ca9580ed /src/cuda-sim/ptx_ir.cc | |
| parent | 7e9591a24ffbe645cfaa7a84b33a82edb9fca0bc (diff) | |
Move opcode_latency_int thus pass gpgpu_context into many classes
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc index 8cedf79..1bd409e 100644 --- a/src/cuda-sim/ptx_ir.cc +++ b/src/cuda-sim/ptx_ir.cc @@ -1095,8 +1095,10 @@ ptx_instruction::ptx_instruction( int opcode, const char *file, unsigned line, const char *source, - const core_config *config ) : warp_inst_t(config) + const core_config *config, + gpgpu_context* ctx ) : warp_inst_t(config) { + gpgpu_ctx = ctx; m_uid = ++g_num_ptx_inst_uid; m_PC = 0; m_opcode = opcode; |
