From bdf261cbc6ba34d959b8bb66902bfae50ee72c01 Mon Sep 17 00:00:00 2001 From: mariusmonton Date: Mon, 12 Nov 2018 17:08:26 +0100 Subject: [PATCH] default value to variable to remove a warning --- src/CPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CPU.cpp b/src/CPU.cpp index fd10f0f..523f918 100644 --- a/src/CPU.cpp +++ b/src/CPU.cpp @@ -266,7 +266,7 @@ void CPU::CPU_thread(void) { tlm::tlm_generic_payload* trans = new tlm::tlm_generic_payload; uint32_t INSTR; sc_time delay = SC_ZERO_TIME; - bool PC_not_affected; + bool PC_not_affected = false; bool incPCby2 = false; trans->set_command( tlm::TLM_READ_COMMAND );