Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit a592fe8

Browse files
author
IgnoreWarnings
committed
move vfio ip connection from zynq to platform
1 parent c2822f7 commit a592fe8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/ips/zynq.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ Zynq::init()
3737
// allocating DMA memory in host RAM)
3838
card->addrSpaceIdDeviceToHost =
3939
mm.getOrCreateAddressSpace(addrSpaceNameDeviceToHost);
40-
41-
dynamic_cast<PlatformCard*>(card)->connectVFIOtoIPS();
42-
4340

4441
//! Hardcoded end
4542

lib/platform_card.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ PlatformCardFactory::make(json_t *json,
192192
if (card->ips.empty())
193193
throw ConfigError(parser.json_ips, "node-config-fpga-ips", "Cannot initialize IPs of FPGA card {}", card_name);
194194

195+
card->connectVFIOtoIPS();
195196
cards.push_back(std::move(card));
196197
}
197198
return cards;

0 commit comments

Comments
 (0)