From 7262d30e9e689aaacd7926c90d953ab86cd9cfa7 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 2 Jul 2019 18:07:37 +0200 Subject: Implement load of sources in emscripten build and minor fixes. Signed-off-by: Pavel Pisa --- qtmips_machine/qtmipsmachine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qtmips_machine/qtmipsmachine.cpp') 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; } -- cgit v1.2.3