diff options
author | Akif Ejaz <81078376+akifejaz@users.noreply.github.com> | 2024-05-29 23:25:30 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 23:25:30 +0500 |
commit | dc8ea5921556e174f0393940465fb0fde99fe680 (patch) | |
tree | 44fb85b5e247889cf11a047e92bd531a497b2cd8 /fesvr/htif.h | |
parent | e7d46b854397d453fcbe7ccfcea6c9970f315a59 (diff) | |
parent | 3a70f84b8a2249c92d35c2229b48ca5735a543fa (diff) | |
download | spike-dc8ea5921556e174f0393940465fb0fde99fe680.zip spike-dc8ea5921556e174f0393940465fb0fde99fe680.tar.gz spike-dc8ea5921556e174f0393940465fb0fde99fe680.tar.bz2 |
Merge branch 'master' into vector-crypto
Diffstat (limited to 'fesvr/htif.h')
-rw-r--r-- | fesvr/htif.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fesvr/htif.h b/fesvr/htif.h index dd7c060..74511f5 100644 --- a/fesvr/htif.h +++ b/fesvr/htif.h @@ -7,6 +7,7 @@ #include "syscall.h" #include "device.h" #include "byteorder.h" +#include "../riscv/platform.h" #include <string.h> #include <map> #include <vector> @@ -58,7 +59,8 @@ class htif_t : public chunked_memif_t virtual size_t chunk_align() = 0; virtual size_t chunk_max_size() = 0; - virtual std::map<std::string, uint64_t> load_payload(const std::string& payload, reg_t* entry); + virtual std::map<std::string, uint64_t> load_payload(const std::string& payload, reg_t* entry, + reg_t load_addr); virtual void load_program(); virtual void idle() {} @@ -79,6 +81,7 @@ class htif_t : public chunked_memif_t void register_devices(); void usage(const char * program_name); unsigned int expected_xlen = 0; + const reg_t load_offset = DRAM_BASE; memif_t mem; reg_t entry; bool writezeros; |