aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 17:57:22 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 17:57:22 +0100
commit780b3a9daa6a4c4eca9c095ad990334b43cc0dfa (patch)
treeb3da1957fbf5b0fedebf5e7732268bafeea86354 /qtmips_gui/coreview
parent60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a (diff)
downloadqtmips-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.cpp2
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()));