aboutsummaryrefslogtreecommitdiff
path: root/fesvr
AgeCommit message (Collapse)AuthorFilesLines
2020-05-19Add missing stdexcept importsSchuyler Eldridge1-0/+1
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
2020-04-10op: update CSRChih-Min Chao1-2/+2
1. add new hypervisor csr 2. add debug module csr 3. add some new high part register for rv32 Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2020-04-05When enabling the debug module, poll til it's really enabledAndrew Waterman1-0/+2
Resolves #435
2020-04-05FESVR: ensure dmactive is 1 before reading debug module registersMegan Wachs1-3/+3
2020-04-05fixed htif exception typo (#423)Dai chou1-1/+1
2020-02-12FESVR: Can't read a DM register when DMACTIVE=0Megan Wachs1-1/+1
2020-02-12Support loading multiple ELF files via a new payload HTIF optionJames Clarke2-7/+31
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-02-12Support plusarg +h/+help option for HTIFJames Clarke2-1/+6
2020-02-12Allow EM_NONE ELFs, tooAndrew Waterman2-1/+3
2020-02-12Refuse to load non-EXEC/non-RISC-V/non-V1 ELFs (#388)Alexander Lent2-0/+10
Stricter validation of ELF binaries improves usability with informative assertions. This prevents users from loading ELF relocatable files and binaries compiled for their (non-RISC-V) workstations, for example. Without this patch, spike would attempt to load nearly any ELF given, but it would usually fail with an error about debug module accesses, since the given ELF causes accesses in the debug module's memory space. Even if spike successfully loaded the ELF file, it would still misbehave during simulation, for example in the case of ELF relocatable files. ELF magic numbers come from official ELF documents: TIS ELF spec v1.2, via Linux Foundation Referenced Specifications See: https://refspecs.linuxbase.org/ RISC-V magic number comes from official RISC-V ELF documents: See: riscv/riscv-elf-psabi-doc@60c25981b62c0b43d16142f8a12c8b1e98e60d4d
2019-10-29Whithhold BE ELF loading until BE target support is availableMarcus Comstedt1-9/+3
2019-10-29Implement support for big-endian hostsMarcus Comstedt4-40/+52
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-07-22Add override modifier to fix clang warningsAndrew Waterman1-2/+2
2019-05-14fesvr: remove duplicated encodingChih-Min Chao1-1471/+0
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-05-14Build fesvr as -fPIC to improve compatibility with old usesAndrew Waterman1-0/+2
2019-05-14Add fesvr; only globally install fesvr headers/libsAndrew Waterman34-0/+6394