aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-04 22:38:34 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-04 22:38:34 +0100
commit73886d9d1733368fe3c876c8e613ba5821e12944 (patch)
tree98dfefd703835f773b5adf72d9cd1f2e2cd1fe04 /qtmips_gui
parent1dc09ab41ae703a1f15be87cacab5e842cf1a09d (diff)
downloadqtmips-73886d9d1733368fe3c876c8e613ba5821e12944.tar.gz
qtmips-73886d9d1733368fe3c876c8e613ba5821e12944.tar.bz2
qtmips-73886d9d1733368fe3c876c8e613ba5821e12944.zip
Use irq 3 (HW1) for Rx and irq 2 (HW0) for Tx to be compatible with SPIM.
Jump to address 0x8000180 by default and to EBase + 0x180 when EBase is set to be compatible with real MIPS CPU. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/coreview.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/qtmips_gui/coreview.cpp b/qtmips_gui/coreview.cpp
index d21f7f2..a6bd8fc 100644
--- a/qtmips_gui/coreview.cpp
+++ b/qtmips_gui/coreview.cpp
@@ -110,11 +110,16 @@ CoreViewScene::CoreViewScene(machine::QtMipsMachine *machine) : QGraphicsScene()
static QMap<std::uint32_t, QString> excause_map =
{{machine::EXCAUSE_NONE, "NONE"},
{machine::EXCAUSE_INT, "INT"},
- {machine::EXCAUSE_BREAK, "BERAK"},
+ {machine::EXCAUSE_ADDRL, "ADDRL"},
+ {machine::EXCAUSE_ADDRS, "ADDRS"},
+ {machine::EXCAUSE_IBUS, "IBUS"},
+ {machine::EXCAUSE_DBUS, "DBUS"},
{machine::EXCAUSE_SYSCALL, "SYSCALL"},
- {machine::EXCAUSE_HWBREAK, "HWBREAK"},
+ {machine::EXCAUSE_BREAK, "BREAK"},
+ {machine::EXCAUSE_OVERFLOW, "OVERFLOW"},
{machine::EXCAUSE_TRAP, "TRAP"},
- {machine::EXCAUSE_OVERFLOW, "OVERFLOW"}};
+ {machine::EXCAUSE_HWBREAK, "HWBREAK"}
+ };
NEW_MULTI(mm.multi_excause, 602, 447, memory_excause_value, excause_map, true);
new_label("Exception", 595, 437);
// WriteBack stage