Minor changes

This commit is contained in:
Màrius Montón 2022-07-22 13:29:09 +02:00
parent 2615ccc8f8
commit d6f799e412
No known key found for this signature in database
GPG Key ID: FA199E7A752699F0
1 changed files with 4 additions and 6 deletions

View File

@ -15,7 +15,6 @@
#include <cstdint> #include <cstdint>
#include "CPU.h" #include "CPU.h"
#include "Memory.h"
#include "BusCtrl.h" #include "BusCtrl.h"
#include "Trace.h" #include "Trace.h"
#include "Timer.h" #include "Timer.h"
@ -94,7 +93,6 @@ private:
void MemoryDump() const { void MemoryDump() const {
std::cout << "********** MEMORY DUMP ***********\n"; std::cout << "********** MEMORY DUMP ***********\n";
tlm::tlm_generic_payload trans; tlm::tlm_generic_payload trans;
tlm::tlm_dmi dmi_data;
sc_core::sc_time delay; sc_core::sc_time delay;
std::uint32_t data[4]; std::uint32_t data[4];
@ -139,7 +137,7 @@ void intHandler(int dummy) {
void process_arguments(int argc, char *argv[]) { void process_arguments(int argc, char *argv[]) {
int c; int c;
int debug_level; long int debug_level;
debug_session = false; debug_session = false;
cpu_type_opt = RV32; cpu_type_opt = RV32;
@ -153,13 +151,13 @@ void process_arguments(int argc, char *argv[]) {
mem_dump = true; mem_dump = true;
break; break;
case 'B': case 'B':
dump_addr_st = std::strtoul (optarg, 0, 16); dump_addr_st = std::strtoul (optarg, nullptr, 16);
break; break;
case 'E': case 'E':
dump_addr_end = std::strtoul(optarg, 0, 16); dump_addr_end = std::strtoul(optarg, nullptr, 16);
break; break;
case 'L': case 'L':
debug_level = std::atoi(optarg); debug_level = std::strtol(optarg, nullptr, 10);
switch (debug_level) { switch (debug_level) {
case 3: case 3: