From 360e6cbffb3d2c1279ae7c3a02c2850f5523eeb2 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 18 Apr 2025 00:03:56 -0400 Subject: Keep track of squashed instructions in DTO object --- inc/instrDTO.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'inc') 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 */ -- cgit v1.2.3