From bfb537e0d53c1deaf824ef3b08e5605848004f12 Mon Sep 17 00:00:00 2001 From: mariusmonton Date: Sun, 21 Feb 2021 20:53:39 +0100 Subject: [PATCH 1/2] deprecated constructor --- src/Debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Debug.cpp b/src/Debug.cpp index 4472b27..a94695c 100644 --- a/src/Debug.cpp +++ b/src/Debug.cpp @@ -20,7 +20,7 @@ constexpr char nibble_to_hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; -Debug::Debug(CPU *cpu, Memory* mem): sc_module(std::string("Debug")) { +Debug::Debug(CPU *cpu, Memory* mem): sc_module(sc_core::sc_module_name("Debug")) { dbg_cpu = cpu; dbg_mem = mem; From 295e86a3243b402073e2b609f79d014f5d33854c Mon Sep 17 00:00:00 2001 From: mariusmonton Date: Sun, 21 Feb 2021 20:54:15 +0100 Subject: [PATCH 2/2] fixed (silly way) unused ret value --- src/Trace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Trace.cpp b/src/Trace.cpp index ecc17ce..6fa4f73 100644 --- a/src/Trace.cpp +++ b/src/Trace.cpp @@ -109,7 +109,8 @@ void Trace::b_transport(tlm::tlm_generic_payload &trans, unsigned char *ptr = trans.get_data_ptr(); delay = sc_core::SC_ZERO_TIME; - (void) write(ptSlave, ptr, 1); + int a = write(ptSlave, ptr, 1); + (void) a; trans.set_response_status(tlm::TLM_OK_RESPONSE); }