Commit cad2103b authored by Daniel Krebs's avatar Daniel Krebs

rtds2gpu: get rid off those stupid warnings about virtual overload of dump()

parent 6d9e688c
Pipeline #73445 failed with stages
in 2 minutes and 22 seconds
......@@ -19,7 +19,10 @@ public:
bool init();
bool dump(spdlog::level::level_enum logLevel = spdlog::level::info);
void dump()
{ dumpLog(); }
bool dumpLog(spdlog::level::level_enum logLevel = spdlog::level::info);
bool startOnce(size_t frameSize);
size_t getMaxFrameSize();
......
......@@ -32,7 +32,10 @@ public:
bool init();
bool dump(spdlog::level::level_enum logLevel = spdlog::level::info);
void dump()
{ dumpLog(); }
bool dumpLog(spdlog::level::level_enum logLevel = spdlog::level::info);
bool startOnce(const MemoryBlock& mem, size_t frameSize, size_t dataOffset, size_t doorbellOffset);
......
......@@ -39,7 +39,7 @@ Gpu2Rtds::startOnce(size_t frameSize)
return true;
}
bool Gpu2Rtds::dump(spdlog::level::level_enum logLevel)
bool Gpu2Rtds::dumpLog(spdlog::level::level_enum logLevel)
{
const auto frame_size = *registerFrameSize;
auto status = *registerStatus;
......
......@@ -31,7 +31,7 @@ bool Rtds2Gpu::init()
bool Rtds2Gpu::dump(spdlog::level::level_enum logLevel)
bool Rtds2Gpu::dumpLog(spdlog::level::level_enum logLevel)
{
const auto baseaddr = XRtds2gpu_Get_baseaddr(&xInstance);
const auto data_offset = XRtds2gpu_Get_data_offset(&xInstance);
......
......@@ -99,8 +99,8 @@ Test(fpga, rtds2gpu_loopback_dma, .description = "Rtds2Gpu")
cr_assert_not_null(gpu2rtds, "No Gpu2Rtds IP found");
cr_assert_not_null(rtds, "RTDS IP not found");
rtds2gpu.dump(spdlog::level::debug);
gpu2rtds->dump(spdlog::level::debug);
rtds2gpu.dumpLog(spdlog::level::debug);
gpu2rtds->dumpLog(spdlog::level::debug);
/* Allocate and prepare memory */
......@@ -139,7 +139,7 @@ Test(fpga, rtds2gpu_loopback_dma, .description = "Rtds2Gpu")
while(not rtds2gpu.isFinished());
const uint32_t* doorbellDst = &dmaMemDst[DOORBELL_OFFSET];
rtds2gpu.dump(spdlog::level::info);
rtds2gpu.dumpLog(spdlog::level::info);
rtds2gpu.dumpDoorbell(*doorbellDst);
cr_assert(memcmp(dataSrc, dataDst, FRAME_SIZE) == 0, "Memory not equal");
......
Markdown is supported
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