mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 13:47:13 -04:00
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:
parent
39e4bb554b
commit
e7dd85d4f9
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue