diff options
author | bd <bdunahu@operationnull.com> | 2025-04-01 20:36:31 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-01 20:36:31 -0400 |
commit | 68324683cde10c636a4a602644f3e64d24b0e412 (patch) | |
tree | b87195d06940fbb526785a5e4c59b76780d00b22 /src/sim/instrDTO.cc | |
parent | 25ce77db5f0dbfe6064eb0553591f1b956bad24a (diff) |
Lots of fixes and tests
Diffstat (limited to 'src/sim/instrDTO.cc')
-rw-r--r-- | src/sim/instrDTO.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sim/instrDTO.cc b/src/sim/instrDTO.cc index 7324ba9..d36e957 100644 --- a/src/sim/instrDTO.cc +++ b/src/sim/instrDTO.cc @@ -25,6 +25,8 @@ Mnemonic InstrDTO::get_mnemonic() { return this->mnemonic; } Type InstrDTO::get_type() { return this->type; } +unsigned int InstrDTO::get_pc() { return this->pc; } + 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; } @@ -38,3 +40,5 @@ 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; } + +void InstrDTO::set_pc(unsigned int pc) { this->pc = pc; } |