From 54d7ef4272673e55b6a4324373d11875280dad84 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 11 Feb 2019 22:19:23 +0100 Subject: Display red background for instruction causing exception and skip HW breakpoint for first cycle after resume. Instruction for stage is updated when given stage is flushed as well. But other signals are left intact, it is duty of memory stage to discard effect of instruction causing interrupt. Signed-off-by: Pavel Pisa --- qtmips_gui/coreview/instructionview.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qtmips_gui/coreview/instructionview.h') diff --git a/qtmips_gui/coreview/instructionview.h b/qtmips_gui/coreview/instructionview.h index 8c63fc1..6e39bdd 100644 --- a/qtmips_gui/coreview/instructionview.h +++ b/qtmips_gui/coreview/instructionview.h @@ -51,10 +51,12 @@ public: void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); public slots: - void instruction_update(const machine::Instruction &i, std::uint32_t inst_addr); + void instruction_update(const machine::Instruction &i, std::uint32_t inst_addr, + machine::ExceptionCause excause); private: QGraphicsSimpleTextItem text; + machine::ExceptionCause excause; }; } -- cgit v1.2.3