diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-07 17:57:22 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-07 17:57:22 +0100 |
commit | 780b3a9daa6a4c4eca9c095ad990334b43cc0dfa (patch) | |
tree | b3da1957fbf5b0fedebf5e7732268bafeea86354 /qtmips_gui/coreview | |
parent | 60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a (diff) | |
download | qtmips-780b3a9daa6a4c4eca9c095ad990334b43cc0dfa.tar.gz qtmips-780b3a9daa6a4c4eca9c095ad990334b43cc0dfa.tar.bz2 qtmips-780b3a9daa6a4c4eca9c095ad990334b43cc0dfa.zip |
Correct display of jump and branch instructions.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/coreview')
-rw-r--r-- | qtmips_gui/coreview/instructionview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/instructionview.cpp b/qtmips_gui/coreview/instructionview.cpp index 342a1d4..d989b7b 100644 --- a/qtmips_gui/coreview/instructionview.cpp +++ b/qtmips_gui/coreview/instructionview.cpp @@ -67,7 +67,7 @@ void InstructionView::paint(QPainter *painter, const QStyleOptionGraphicsItem *o void InstructionView::instruction_update(const machine::Instruction &i, std::uint32_t inst_addr) { QRectF prev_box = boundingRect(); - text.setText(i.to_str()); + text.setText(i.to_str(inst_addr)); QRectF box = text.boundingRect(); text.setPos(-box.width()/2, GAP); update(prev_box.united(boundingRect())); |