From d6f799e412cbbcb8ea7734409d27a5454f133dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Fri, 22 Jul 2022 13:29:09 +0200 Subject: [PATCH] Minor changes --- src/Simulator.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Simulator.cpp b/src/Simulator.cpp index 973f7f4..2d8421f 100644 --- a/src/Simulator.cpp +++ b/src/Simulator.cpp @@ -15,7 +15,6 @@ #include #include "CPU.h" -#include "Memory.h" #include "BusCtrl.h" #include "Trace.h" #include "Timer.h" @@ -94,7 +93,6 @@ private: void MemoryDump() const { std::cout << "********** MEMORY DUMP ***********\n"; tlm::tlm_generic_payload trans; - tlm::tlm_dmi dmi_data; sc_core::sc_time delay; std::uint32_t data[4]; @@ -139,7 +137,7 @@ void intHandler(int dummy) { void process_arguments(int argc, char *argv[]) { int c; - int debug_level; + long int debug_level; debug_session = false; cpu_type_opt = RV32; @@ -153,13 +151,13 @@ void process_arguments(int argc, char *argv[]) { mem_dump = true; break; case 'B': - dump_addr_st = std::strtoul (optarg, 0, 16); + dump_addr_st = std::strtoul (optarg, nullptr, 16); break; case 'E': - dump_addr_end = std::strtoul(optarg, 0, 16); + dump_addr_end = std::strtoul(optarg, nullptr, 16); break; case 'L': - debug_level = std::atoi(optarg); + debug_level = std::strtol(optarg, nullptr, 10); switch (debug_level) { case 3: