From db682f605552930664b8db619bd66cde9d1d0315 Mon Sep 17 00:00:00 2001 From: mariusmonton Date: Tue, 2 Feb 2021 19:53:18 +0100 Subject: [PATCH] removed typedef, use default_time instead of fixed time --- src/BASE_ISA.cpp | 2 +- src/CPU.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BASE_ISA.cpp b/src/BASE_ISA.cpp index 14b96f0..0e3db5b 100644 --- a/src/BASE_ISA.cpp +++ b/src/BASE_ISA.cpp @@ -8,7 +8,7 @@ #include "BASE_ISA.h" -typedef enum { +enum { LUI = 0b0110111, AUIPC = 0b0010111, JAL = 0b1101111, diff --git a/src/CPU.cpp b/src/CPU.cpp index 89e2259..8931a75 100644 --- a/src/CPU.cpp +++ b/src/CPU.cpp @@ -196,7 +196,7 @@ void CPU::CPU_thread(void) { m_qk->sync(); } #else - sc_core::wait(10, sc_core::SC_NS); + sc_core::wait(default_time); #endif } // while(1) } // CPU_thread