aboutsummaryrefslogtreecommitdiff
path: root/fesvr/htif.h
AgeCommit message (Collapse)AuthorFilesLines
2024-05-29add support to load ET_DYN elfClément Léger1-1/+4
When compiled as PIE, executable can be loaded at any memory address. Lately, OpenSBI switched to such behavior and spike was not able to load it anymore. This patch add an additional load_offset parameter for load_elf(). This load_offset value is passed as DRAM_BASE and used only for ET_DYN elfs. Signed-off-by: Clément Léger <cleger@rivosinc.com>
2023-03-07fesvr: Add --symbol-elf flag to populate htif-t::symbol_elfsJerry Zhao1-0/+3
2023-03-07fesvr: Add symbol_elfs field to htif_tJerry Zhao1-0/+1
When populated, symbol_elfs are additional elf files that populate the addr2symbol map in htif
2023-03-07fesvr: fix +signature-granularity opt parsing to be required_argJerry Zhao1-1/+1
2023-03-07fesvr: Add +target-argument= flag to htif parsingJerry Zhao1-0/+1
2023-03-07fesvr: target_args() should return a constJerry Zhao1-1/+1
2023-03-07make target_args() protected instead of private to allow subclasses to ↵Sagar Karandikar1-2/+1
inject args
2023-02-02Make htif->get_to/fromhost_addr methods publicJerry Zhao1-3/+3
2023-01-17Add htif_t tohost/fromhost accessorsJerry Zhao1-0/+3
Signed-off-by: Jerry Zhao <jerryz123@berkeley.edu>
2022-12-15Rename memif_endianness_t to endianness_tJerry Zhao1-6/+6
2022-10-04Suppress several unused-parameter warnings in fesvrAndrew Waterman1-1/+1
2022-09-20detects the loading of isa-incompatible (i.e. 32 bit code to 64bit HART) ↵Iman Hosseini1-2/+2
code and emits an error message to help avoid unintentionally loading wrong elf.
2022-07-17remove unnecessary ifdef for RISCV_ENABLE_DUAL_ENDIANWeiwei Li1-8/+0
the default target endian is always little endian: - mmu::is_target_big_endian() return false - sim_t::get_target_endianness() return memif_endianness_little when RISCV_ENABLE_DUAL_ENDIAN macro is undefined
2020-11-07Tag target endian values to help guide conversion codeMarcus Comstedt1-6/+6
2020-11-07Implement support for big-endian targetsMarcus Comstedt1-0/+26
2020-10-15reduce sig_len constraint to 4 bytes (#569)Neel Gala1-0/+4
* reduce sig_len constraint to 4 bytes Spike currently asserts that the signature length should always be a multiple of 16-bytes. However, the compliance suite has agreed to upon the signature being a multiple ot 4-bytes. This prevents some of the tests to run on spike since it fails the assertion. The proposed change fixes this issue and reduces the assertion to 4 bytes. * Added size argument to htif arguments and zero padding for signature output. Defaultline size-16. * Modified type of line_size to unsigned. * Renamed size to granularity. * Rename granularity to signature-granularity. Co-authored-by: dracarys99 <spawan1999@gmail.com>
2020-09-29Adding symbol lookup when --enable-commitlog is enabled (#558)sthiruva1-0/+5
* Adding symbol lookup when --enable-commitlog is enabled * Removed the #ifdef RISCV_ENABLE_COMMITLOG for all get_symbol related function Only retained the in processor.cc where it is called. Co-authored-by: Shajid Thiruvathodi <sthiruva@valtrix.in>
2020-01-31Support loading multiple ELF files via a new payload HTIF optionJames Clarke1-0/+6
Firmware implementations, such as OpenSBI's fw_jump, make use of this feature on other targets to avoid having to be rebuilt every time the payload is updated.
2020-01-31Support plusarg +h/+help option for HTIFJames Clarke1-0/+1
2019-03-31Add fesvr; only globally install fesvr headers/libsstatic-linkAndrew Waterman1-0/+114