diff options
author | bd <bdunahu@operationnull.com> | 2025-03-31 23:51:08 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-31 23:51:08 -0400 |
commit | a4e0e5ff6208205f6ebd980f9ed1eca91dcc4311 (patch) | |
tree | b9530876cabcb9041b925d795778237757bc797f /src/sim/instrDTO.cc | |
parent | 2235e18ad81be4ed7097cd9cab93e35a990ec327 (diff) | |
parent | 574212dafcf1c4bdb7d5e6aaa577b74345988d67 (diff) |
Merge remote-tracking branch 'origin/dev-sid' into bdunahu
Diffstat (limited to 'src/sim/instrDTO.cc')
-rw-r--r-- | src/sim/instrDTO.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sim/instrDTO.cc b/src/sim/instrDTO.cc index 5a7fe3b..b33c26b 100644 --- a/src/sim/instrDTO.cc +++ b/src/sim/instrDTO.cc @@ -7,7 +7,8 @@ InstrDTO::InstrDTO() this->s1 = 0; this->s2 = 0; this->s3 = 0; - this->mnemonic = NOP; + this->mnemonic = NONE; + 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; } |