mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fpga: remove duplicate mapping in platform_card
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
70f355bb99
commit
fda074d97f
1 changed files with 1 additions and 4 deletions
|
@ -131,6 +131,7 @@ void PlatformCard::connect(std::string device_name,
|
|||
|
||||
size_t srcVertexId = mm.getOrCreateAddressSpace(device_name);
|
||||
|
||||
// TODO: This is really bad!
|
||||
std::string taget_address_space_name =
|
||||
ip->getInstanceName() + "/Reg"; //? TODO: Reg neded?
|
||||
size_t targetVertexId;
|
||||
|
@ -172,10 +173,6 @@ bool PlatformCard::mapMemoryBlock(const std::shared_ptr<MemoryBlock> block) {
|
|||
mm.createMapping(iovaAddr, 0, block->getSize(), "VFIO-D2H",
|
||||
this->addrSpaceIdDeviceToHost, addrSpaceId);
|
||||
|
||||
// TODO: Determine zynq name
|
||||
auto space = mm.findAddressSpace("zynq_zynq_ultra_ps_e_0/HPC1_DDR_LOW");
|
||||
mm.createMapping(iovaAddr, 0, block->getSize(), "VFIO-D2H", space,
|
||||
addrSpaceId);
|
||||
|
||||
// Remember that this block has already been mapped for later
|
||||
memoryBlocksMapped.insert({addrSpaceId, block});
|
||||
|
|
Loading…
Add table
Reference in a new issue