aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-10-29 18:05:02 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-10-29 18:12:17 +0100
commitb716fdae5ef9b76920fdd2bcd8aab97d9cde90a0 (patch)
tree2027817e4966ea5c7422152c287ce7b190316129 /src/models
parentf0646cfa16d909b107e81dafd2f3c8f80d28a5f8 (diff)
downloadsysc-playground-b716fdae5ef9b76920fdd2bcd8aab97d9cde90a0.tar.gz
sysc-playground-b716fdae5ef9b76920fdd2bcd8aab97d9cde90a0.zip
build: enable warnings and fix existing warnings
Diffstat (limited to 'src/models')
-rw-r--r--src/models/lt_bus.h8
1 files changed, 3 insertions, 5 deletions
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);