mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
OPAE runtime bug fix
This commit is contained in:
parent
304761c6fc
commit
9fc9b43307
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue