diff options
author | Iman Hosseini <hosseini.iman@yahoo.com> | 2022-09-20 00:05:00 -0400 |
---|---|---|
committer | Iman Hosseini <hosseini.iman@yahoo.com> | 2022-09-20 00:05:00 -0400 |
commit | dfd191367991cb157b53767dcc05824c826b5abd (patch) | |
tree | 8891eff92502ba3d42a9ddf372f0f2f6e5a5e44c /fesvr/elfloader.h | |
parent | a0972c82d022f6f7c337b06b27c89a60af52202a (diff) | |
download | riscv-isa-sim-dfd191367991cb157b53767dcc05824c826b5abd.zip riscv-isa-sim-dfd191367991cb157b53767dcc05824c826b5abd.tar.gz riscv-isa-sim-dfd191367991cb157b53767dcc05824c826b5abd.tar.bz2 |
detects the loading of isa-incompatible (i.e. 32 bit code to 64bit HART) code and emits an error message to help avoid unintentionally loading wrong elf.
Diffstat (limited to 'fesvr/elfloader.h')
-rw-r--r-- | fesvr/elfloader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fesvr/elfloader.h b/fesvr/elfloader.h index 696ef47..ae4ee78 100644 --- a/fesvr/elfloader.h +++ b/fesvr/elfloader.h @@ -8,6 +8,6 @@ #include <string> class memif_t; -std::map<std::string, uint64_t> load_elf(const char* fn, memif_t* memif, reg_t* entry); +std::map<std::string, uint64_t> load_elf(const char* fn, memif_t* memif, reg_t* entry, unsigned required_xlen = 0); #endif |