diff options
author | bd <bdunahu@operationnull.com> | 2025-04-18 00:03:56 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-18 00:03:56 -0400 |
commit | 360e6cbffb3d2c1279ae7c3a02c2850f5523eeb2 (patch) | |
tree | 5bc5c848ca6b5326480c7b0760087db79c8653f1 /inc | |
parent | 12a8ceb7b7046652264c98a2d0de2dd4fd7c5cd4 (diff) |
Keep track of squashed instructions in DTO object
Diffstat (limited to 'inc')
-rw-r--r-- | inc/instrDTO.h | 12 |
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 */ |