summaryrefslogtreecommitdiff
path: root/inc/instrDTO.h
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-04-18 04:10:49 +0000
committerGitHub <noreply@github.com>2025-04-18 04:10:49 +0000
commitdbf7e900336214041da8880d6986d59126c35a72 (patch)
tree5bc5c848ca6b5326480c7b0760087db79c8653f1 /inc/instrDTO.h
parent480181957b3f3dbcf7731023504c2cacc8d181ea (diff)
parent360e6cbffb3d2c1279ae7c3a02c2850f5523eeb2 (diff)
Merge pull request #55 from bdunahu/dev-sid
Allow dynamic program loading (by Sid)
Diffstat (limited to 'inc/instrDTO.h')
-rw-r--r--inc/instrDTO.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/instrDTO.h b/inc/instrDTO.h
index 755ab9f..72ea67d 100644
--- a/inc/instrDTO.h
+++ b/inc/instrDTO.h
@@ -48,6 +48,10 @@ class InstrDTO
* @return the program counter at the time this instruction was fetched
*/
unsigned int get_pc();
+ /**
+ * @return 1 if this instruction is invalid, 0 otherwise
+ */
+ int is_squashed();
/**
* @param instr_bits
@@ -82,6 +86,10 @@ class InstrDTO
* @param the program counter at the time this instruction was fetched
*/
void set_pc(unsigned int pc);
+ /**
+ * squashes this instruction
+ */
+ void squash();
private:
/**
@@ -115,6 +123,10 @@ class InstrDTO
* The PC of the instruction
*/
unsigned int pc;
+ /**
+ * If this instruction was made dead
+ */
+ unsigned int squashed;
};
#endif /* INSTRDTO_H_INCLUDED */