diff --git a/corev_apu/tb/ariane_tb.sv b/corev_apu/tb/ariane_tb.sv index 261ff70ce..7aa0d36da 100644 --- a/corev_apu/tb/ariane_tb.sv +++ b/corev_apu/tb/ariane_tb.sv @@ -23,7 +23,7 @@ import uvm_pkg::*; import "DPI-C" function read_elf(input string filename); import "DPI-C" function byte get_section(output longint address, output longint len); -import "DPI-C" context function byte read_section(input longint address, inout byte buffer[]); +import "DPI-C" context function read_section(input longint address, inout byte buffer[]); module ariane_tb; diff --git a/corev_apu/tb/dpi/elfloader.cc b/corev_apu/tb/dpi/elfloader.cc index 2aa1dfb14..f137015a5 100644 --- a/corev_apu/tb/dpi/elfloader.cc +++ b/corev_apu/tb/dpi/elfloader.cc @@ -49,7 +49,7 @@ extern "C" char get_section (long long* address, long long* len) { } else return 0; } -extern "C" char read_section (long long address, const svOpenArrayHandle buffer) { +extern "C" void read_section (long long address, const svOpenArrayHandle buffer) { // get actual poitner void* buf = svGetArrayPtr(buffer); // check that the address points to a section