aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-22 22:05:19 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-22 22:05:19 +0100
commitb7c2d05a1a83dd91052ca6df20c2f60c802e773e (patch)
tree9dae0d407c0848b9f703bbbc37278d445e04158b /qtmips_machine/qtmipsmachine.h
parent372af906107bceed8a174d5aa907034d35cfe760 (diff)
downloadqtmips-b7c2d05a1a83dd91052ca6df20c2f60c802e773e.tar.gz
qtmips-b7c2d05a1a83dd91052ca6df20c2f60c802e773e.tar.bz2
qtmips-b7c2d05a1a83dd91052ca6df20c2f60c802e773e.zip
Add support for goto to selected symbol address.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/qtmipsmachine.h')
-rw-r--r--qtmips_machine/qtmipsmachine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_machine/qtmipsmachine.h b/qtmips_machine/qtmipsmachine.h
index b49cb2f..1c80b9c 100644
--- a/qtmips_machine/qtmipsmachine.h
+++ b/qtmips_machine/qtmipsmachine.h
@@ -49,13 +49,14 @@
#include <peripheral.h>
#include <serialport.h>
#include <peripspiled.h>
+#include <symboltable.h>
namespace machine {
class QtMipsMachine : public QObject {
Q_OBJECT
public:
- QtMipsMachine(const MachineConfig &cc);
+ QtMipsMachine(const MachineConfig &cc, bool load_symtab = false);
~QtMipsMachine();
const MachineConfig &config();
@@ -69,6 +70,7 @@ public:
Cache *cache_data_rw();
SerialPort *serial_port();
PeripSpiLed *peripheral_spi_led();
+ const SymbolTable *symbol_table();
const Core *core();
const CoreSingle *core_singe();
const CorePipelined *core_pipelined();
@@ -122,6 +124,7 @@ private:
QTimer *run_t;
unsigned int time_chunk;
+ SymbolTable *symtab;
std::uint32_t program_end;
enum Status stat;
void set_status(enum Status st);