aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-02 18:07:37 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-02 18:07:37 +0200
commit7262d30e9e689aaacd7926c90d953ab86cd9cfa7 (patch)
treed2d7fb3515cb548a876f6214d143715a4a9142ff /qtmips_machine/qtmipsmachine.cpp
parent040c1998500d3b0b50b3ddef4fe93216563343a8 (diff)
downloadqtmips-7262d30e9e689aaacd7926c90d953ab86cd9cfa7.tar.gz
qtmips-7262d30e9e689aaacd7926c90d953ab86cd9cfa7.tar.bz2
qtmips-7262d30e9e689aaacd7926c90d953ab86cd9cfa7.zip
Implement load of sources in emscripten build and minor fixes.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r--qtmips_machine/qtmipsmachine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp
index 68eeeca..e838429 100644
--- a/qtmips_machine/qtmipsmachine.cpp
+++ b/qtmips_machine/qtmipsmachine.cpp
@@ -214,7 +214,9 @@ LcdDisplay *QtMipsMachine::peripheral_lcd_display() {
return perip_lcd_display;
}
-const SymbolTable *QtMipsMachine::symbol_table() {
+const SymbolTable *QtMipsMachine::symbol_table(bool create) {
+ if (create && (symtab == nullptr))
+ symtab = new SymbolTable;
return symtab;
}