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 "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: