elfloader.cc: change read_section prototype (#767)

as read_section does not return any value, return type is void.

Signed-off-by: Guillaume Chauvon <guillaume.chauvon@thalesgroup.com>
This commit is contained in:
Gchauvon 2021-11-23 09:13:55 +01:00 committed by GitHub
parent 39e4bb554b
commit e7dd85d4f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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