Commit 98cf7227 authored by Daniel Krebs's avatar Daniel Krebs
Browse files

rtds2gpu: update status register before dump

parent 9263d3a1
Pipeline #73354 failed with stages
in 1 minute and 1 second
...@@ -38,6 +38,10 @@ void Rtds2Gpu::dump(spdlog::level::level_enum logLevel) ...@@ -38,6 +38,10 @@ void Rtds2Gpu::dump(spdlog::level::level_enum logLevel)
const auto doorbell_offset = XRtds2gpu_Get_doorbell_offset(&xInstance); const auto doorbell_offset = XRtds2gpu_Get_doorbell_offset(&xInstance);
const auto frame_size = XRtds2gpu_Get_frame_size(&xInstance); const auto frame_size = XRtds2gpu_Get_frame_size(&xInstance);
if(not updateStatus()) {
logger->warn("Couldn't read status register (not ready), values may be wrong");
}
logger->log(logLevel, "Rtds2Gpu registers (IP base {:#x}):", xInstance.Ctrl_BaseAddress); logger->log(logLevel, "Rtds2Gpu registers (IP base {:#x}):", xInstance.Ctrl_BaseAddress);
logger->log(logLevel, " Base address (bytes): {:#x}", baseaddr); logger->log(logLevel, " Base address (bytes): {:#x}", baseaddr);
logger->log(logLevel, " Doorbell offset (bytes): {:#x}", doorbell_offset); logger->log(logLevel, " Doorbell offset (bytes): {:#x}", doorbell_offset);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment