From fc3571602f19d86ca86c25dd204f8662782e62d6 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sat, 9 Mar 2019 20:37:54 +0100 Subject: 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 --- qtmips_machine/machineconfig.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qtmips_machine/machineconfig.h') 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; }; -- cgit v1.2.3