From b716fdae5ef9b76920fdd2bcd8aab97d9cde90a0 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 29 Oct 2023 18:05:02 +0100 Subject: build: enable warnings and fix existing warnings --- src/models/lt_bus.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/models/lt_bus.h') diff --git a/src/models/lt_bus.h b/src/models/lt_bus.h index 37cfe84..c533c50 100644 --- a/src/models/lt_bus.h +++ b/src/models/lt_bus.h @@ -80,9 +80,9 @@ class lt_bus : public sc_core::sc_module { m_mappings.push_back({addr, id}); } - // -- DUMP ------------------------------------------------------------------- + // -- SHOW_MMAP -------------------------------------------------------------- - void dump() const { + void show_mmap() const { // Dump memory map. for (const auto& map : m_mappings) { std::printf("%08lx - %08lx :[%2ld] %s\n", map.addr.start, map.addr.end, @@ -125,9 +125,7 @@ class lt_bus : public sc_core::sc_module { // -- TLM_FW_TRANSPORT_IF ---------------------------------------------------- - void b_transport(usize id, - tlm::tlm_generic_payload& tx, - sc_core::sc_time& t) { + void b_transport(usize, tlm::tlm_generic_payload& tx, sc_core::sc_time& t) { if (const auto r = decode(tx)) { const auto start = tx.get_address(); assert(r.start <= start); -- cgit v1.2.3