diff options
author | bd <bdunaisky@umass.edu> | 2025-04-18 04:10:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 04:10:49 +0000 |
commit | dbf7e900336214041da8880d6986d59126c35a72 (patch) | |
tree | 5bc5c848ca6b5326480c7b0760087db79c8653f1 /src/sim/instrDTO.cc | |
parent | 480181957b3f3dbcf7731023504c2cacc8d181ea (diff) | |
parent | 360e6cbffb3d2c1279ae7c3a02c2850f5523eeb2 (diff) |
Merge pull request #55 from bdunahu/dev-sid
Allow dynamic program loading (by Sid)
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 a82ef28..fb6c82b 100644 --- a/src/sim/instrDTO.cc +++ b/src/sim/instrDTO.cc @@ -11,6 +11,7 @@ InstrDTO::InstrDTO() this->mnemonic = ADD; this->type = INV; this->pc = 0; + this->squashed = 0; } signed int InstrDTO::get_instr_bits() { return this->instr_bits; } @@ -29,6 +30,8 @@ Type InstrDTO::get_type() { return this->type; } unsigned int InstrDTO::get_pc() { return this->pc; } +int InstrDTO::is_squashed() { return this->squashed; } + void InstrDTO::set_instr_bits(signed int instr) { this->instr_bits = instr; } void InstrDTO::set_checked_out(signed int checked_out) @@ -47,3 +50,5 @@ 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; } + +void InstrDTO::squash() { this->squashed = 1; } |