summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authortgrogers <[email protected]>2018-10-07 20:22:32 -0400
committertgrogers <[email protected]>2018-10-07 20:22:32 -0400
commit6bea063d90358417b9d95dd17f8c2b88491b7385 (patch)
tree9ab5081e2b0fccfcd3e62a7f8d7bd3d8750323b7 /src/abstract_hardware_model.h
parent1e2d7b4c3147a0371c26bf086024d1cf770ad60c (diff)
parente97db22feb5aef9978feaae9f5c92507c73d7d96 (diff)
Merge branch 'dev-purdue-integration' of github.rcac.purdue.edu:jain156/gpgpu-sim_distribution into jain156-dev-purdue-integration
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index e708fa7..35f289c 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -808,6 +808,7 @@ public:
arch_reg.dst[i] = -1;
}
isize=0;
+ op_classification = 0;
}
bool valid() const { return m_decoded; }
virtual void print_insn( FILE *fp ) const
@@ -826,6 +827,7 @@ public:
address_type pc; // program counter address of instruction
unsigned isize; // size of instruction in bytes
op_type op; // opcode (uarch visible)
+ int op_classification; // classification of opcode for statistics purpopses
barrier_type bar_type;
reduction_type red_type;
@@ -1033,6 +1035,11 @@ public:
return cycles > 0;
}
+ unsigned get_cycles()
+ {
+ return cycles;
+ }
+
void print( FILE *fout ) const;
unsigned get_uid() const { return m_uid; }