From 642d953443c73b3fc8cc0fab1fd04b0eb5e8ffb1 Mon Sep 17 00:00:00 2001 From: Jordanplus <57957816+Jordanplus@users.noreply.github.com> Date: Sat, 11 Jul 2026 04:56:33 +0800 Subject: [PATCH] monitor: honor the address argument in the /transport_dbg route The /transport_dbg// REST route parses an address from the URL but never uses it: the payload address is hardcoded to 0, so every debug read returns the word at offset 0 of the target socket. Use the parsed address instead. Signed-off-by: McGrady Chen --- systemc-components/monitor/src/monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemc-components/monitor/src/monitor.cc b/systemc-components/monitor/src/monitor.cc index 31f3abd8..d1442013 100644 --- a/systemc-components/monitor/src/monitor.cc +++ b/systemc-components/monitor/src/monitor.cc @@ -368,7 +368,7 @@ void monitor::init_monitor() uint32_t data; tlm::tlm_generic_payload txn; txn.set_command(tlm::TLM_READ_COMMAND); - txn.set_address(0); + txn.set_address(addr); txn.set_data_ptr(reinterpret_cast(&data)); txn.set_data_length(4); txn.set_streaming_width(4);