diff options
author | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-31 13:45:56 -0400 |
---|---|---|
committer | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-31 13:45:56 -0400 |
commit | 598da346f59503442ba0b4badfd9ac8b58af4a89 (patch) | |
tree | 6f850061b9e89a93c30c8a6d7a699ffdc291e2ab /src/sim/instrDTO.cc | |
parent | 44cb9d396b909c84ef7ad3338e0a12cfcc082748 (diff) |
MEM WB stage
Diffstat (limited to 'src/sim/instrDTO.cc')
-rw-r--r-- | src/sim/instrDTO.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/instrDTO.cc b/src/sim/instrDTO.cc index 5a7fe3b..28364b7 100644 --- a/src/sim/instrDTO.cc +++ b/src/sim/instrDTO.cc @@ -8,6 +8,7 @@ InstrDTO::InstrDTO() this->s2 = 0; this->s3 = 0; this->mnemonic = NOP; + this->type = INV; } int InstrDTO::get_time_of(Accessor a) { return this->hist[a]; } @@ -22,6 +23,8 @@ signed int InstrDTO::get_s3() { return this->s3; } Mnemonic InstrDTO::get_mnemonic() { return this->mnemonic; } +Type InstrDTO::get_type() { return this->type; } + void InstrDTO::set_time_of(Accessor a, int i) { this->hist[a] = i; } void InstrDTO::set_instr_bits(signed int instr) { this->instr_bits = instr; } @@ -33,3 +36,5 @@ void InstrDTO::set_s2(signed int s) { this->s2 = s; } void InstrDTO::set_s3(signed int s) { this->s3 = s; } void InstrDTO::set_mnemonic(Mnemonic m) { this->mnemonic = m; } + +void InstrDTO::set_type(Type t) { this->type = t; } |