aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/instructionview.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-31 20:41:05 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-31 20:41:05 +0200
commitf936893d4c5be40ebf1c7b6a9341ffce4c82ea03 (patch)
treed58365b9604154c66d202f104469a4094be1ebf3 /qtmips_gui/coreview/instructionview.h
parent8de3836bee7b844b75564f12b700c323c4f3d53b (diff)
downloadqtmips-f936893d4c5be40ebf1c7b6a9341ffce4c82ea03.tar.gz
qtmips-f936893d4c5be40ebf1c7b6a9341ffce4c82ea03.tar.bz2
qtmips-f936893d4c5be40ebf1c7b6a9341ffce4c82ea03.zip
Set gray background to stalled instructions/idled stages.
This allows to easier identify unused pipeline stages. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/coreview/instructionview.h')
-rw-r--r--qtmips_gui/coreview/instructionview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/instructionview.h b/qtmips_gui/coreview/instructionview.h
index bdcaf3c..59dfad2 100644
--- a/qtmips_gui/coreview/instructionview.h
+++ b/qtmips_gui/coreview/instructionview.h
@@ -52,12 +52,13 @@ public:
public slots:
void instruction_update(const machine::Instruction &i, std::uint32_t inst_addr,
- machine::ExceptionCause excause);
+ machine::ExceptionCause excause, bool valid);
private:
QGraphicsSimpleTextItem text;
machine::ExceptionCause excause;
QColor bgnd;
+ bool valid;
};
}