From 9a4465e67f39d12ab215df38e8e364a4ad9b26fc Mon Sep 17 00:00:00 2001 From: Elmar Melcher Date: Tue, 14 Sep 2021 23:44:56 -0300 Subject: add option --cmd to read commands from file (#772) --- riscv/sim.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'riscv/sim.h') diff --git a/riscv/sim.h b/riscv/sim.h index 274361c..cf50de5 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -52,11 +52,11 @@ public: std::vector> plugin_devices, const std::vector& args, const std::vector hartids, const debug_module_config_t &dm_config, const char *log_path, - bool dtb_enabled, const char *dtb_file + bool dtb_enabled, const char *dtb_file, #ifdef HAVE_BOOST_ASIO - , io_service *io_service_ptr_ctor, tcp::acceptor *acceptor_ptr_ctor // option -s + io_service *io_service_ptr_ctor, tcp::acceptor *acceptor_ptr_ctor, // option -s #endif - ); + FILE *cmd_file); // needed for command line option --cmd ~sim_t(); // run the simulation to completion @@ -101,6 +101,8 @@ private: bus_t bus; log_file_t log_file; + FILE *cmd_file; // pointer to debug command input file + #ifdef HAVE_BOOST_ASIO // the following are needed for command socket interface boost::asio::io_service *io_service_ptr; -- cgit v1.1