aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/machineconfig.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-09 20:37:54 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-09 20:37:54 +0100
commitfc3571602f19d86ca86c25dd204f8662782e62d6 (patch)
treec9dad1178486fe87c4f452f08eb9de5e4998d40f /qtmips_machine/machineconfig.h
parent3360c7a27865f16441d744fd4559a30e5b5dd7db (diff)
downloadqtmips-fc3571602f19d86ca86c25dd204f8662782e62d6.tar.gz
qtmips-fc3571602f19d86ca86c25dd204f8662782e62d6.tar.bz2
qtmips-fc3571602f19d86ca86c25dd204f8662782e62d6.zip
Updated read and write, added open, close, ftruncate syscalls and fs_root option.
When operating system emulation root directory (fs_root) are selected then open() syscall opens real host system files in this limited subtree. When fs_root is not set then console is mapped to all read, write, open and close calls. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/machineconfig.h')
-rw-r--r--qtmips_machine/machineconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_machine/machineconfig.h b/qtmips_machine/machineconfig.h
index 9fbbf18..b8504b4 100644
--- a/qtmips_machine/machineconfig.h
+++ b/qtmips_machine/machineconfig.h
@@ -133,6 +133,7 @@ public:
void set_osemu_unknown_syscall_stop(bool);
void set_osemu_interrupt_stop(bool);
void set_osemu_exception_stop(bool);
+ void set_osemu_fs_root(QString v);
// Set path to source elf file. This has to be set before core is initialized.
void set_elf(QString path);
// Configure cache
@@ -152,6 +153,7 @@ public:
bool osemu_unknown_syscall_stop() const;
bool osemu_interrupt_stop() const;
bool osemu_exception_stop() const;
+ QString osemu_fs_root() const;
QString elf() const;
const MachineConfigCache &cache_program() const;
const MachineConfigCache &cache_data() const;
@@ -169,6 +171,7 @@ private:
unsigned mem_acc_read, mem_acc_write, mem_acc_burst;
bool osem_enable, osem_known_syscall_stop, osem_unknown_syscall_stop;
bool osem_interrupt_stop, osem_exception_stop;
+ QString osem_fs_root;
QString elf_path;
MachineConfigCache cch_program, cch_data;
};