OPAE runtime bug fix

This commit is contained in:
Blaise Tine 2024-08-17 02:18:04 -07:00
parent 304761c6fc
commit 9fc9b43307
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,4 @@
ROOT_DIR := $(realpath ../..)
include ../common.mk
TARGET ?= opaesim
@ -25,9 +26,9 @@ SRCS = $(SRC_DIR)/vortex.cpp $(SRC_DIR)/driver.cpp
# set up target types
ifeq ($(TARGET), opaesim)
OPAESIM = $(DESTDIR)/libopae-c-sim.so
CXXFLAGS += -I$(SIM_DIR)/opaesim
CXXFLAGS += -DOPAESIM -I$(SIM_DIR)/opaesim
else
CXXFLAGS += -I$(SYN_DIR)
CXXFLAGS += -I$(SYN_DIR) -I$(ROOT_DIR)/hw/syn/altera/opae
endif
# Debugging

View file

@ -13,7 +13,11 @@
#pragma once
#ifdef OPAESIM
#include <fpga.h>
#else
#include <opae/fpga.h>
#endif
typedef fpga_result (*pfn_fpgaGetProperties)(fpga_token token, fpga_properties *prop);
typedef fpga_result (*pfn_fpgaPropertiesSetObjectType)(fpga_properties prop, fpga_objtype objtype);