aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/instructionview.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 17:27:22 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 17:27:22 +0100
commit60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a (patch)
tree3c5c41ab02dac35a1aafca3d29da3a146a6dfb7e /qtmips_gui/coreview/instructionview.h
parent556d9b08fee6d54a2b2ec62862a84d97c91b9792 (diff)
downloadqtmips-60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a.tar.gz
qtmips-60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a.tar.bz2
qtmips-60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a.zip
Add address to emitted instruction to allow its use for branch address decoding.
The new Qt5 syntax is used to create connections because old syntax does not work with multiple arguments for some unresolved reason. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/instructionview.h b/qtmips_gui/coreview/instructionview.h
index 57b1fbc..8c63fc1 100644
--- a/qtmips_gui/coreview/instructionview.h
+++ b/qtmips_gui/coreview/instructionview.h
@@ -51,7 +51,7 @@ public:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
public slots:
- void instruction_update(const machine::Instruction &i);
+ void instruction_update(const machine::Instruction &i, std::uint32_t inst_addr);
private:
QGraphicsSimpleTextItem text;