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.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'riscv/sim.cc') diff --git a/riscv/sim.cc b/riscv/sim.cc index 23852d8..317d5b4 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -36,11 +36,11 @@ sim_t::sim_t(const char* isa, const char* priv, const char* varch, std::vector const 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, tcp::acceptor *acceptor_ptr // option -s + io_service *io_service_ptr, tcp::acceptor *acceptor_ptr, // option -s #endif - ) + FILE *cmd_file) // needed for command line option --cmd : htif_t(args), mems(mems), plugin_devices(plugin_devices), @@ -52,6 +52,7 @@ sim_t::sim_t(const char* isa, const char* priv, const char* varch, dtb_file(dtb_file ? dtb_file : ""), dtb_enabled(dtb_enabled), log_file(log_path), + cmd_file(cmd_file), #ifdef HAVE_BOOST_ASIO io_service_ptr(io_service_ptr), // socket interface acceptor_ptr(acceptor_ptr), -- cgit v1.1