summaryrefslogtreecommitdiff
path: root/inc/instrDTO.h
diff options
context:
space:
mode:
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 */