-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lowrisc_ibex to lowRISC/cheriot-ibex@091ccfc3
Update code from upstream repository https://github.com/lowrisc/cheriot-ibex.git to revision 091ccfc3ce5c9c8dad4acfe200ee45b9401e6a9c * [rtl] Remove stray comma (Greg Chadwick) * [rtl] Enable use of ICache with ibexc_top (Greg Chadwick) * [util] Update check_tool_requirements.py (Gary Guo) * Update lowrisc_ip to lowRISC/opentitan@f235838a9e (Marno van der Maas) * Added patch to remove alert prim from all group (Marno van der Maas) * [vendor] Patch updated based on OpenTitan/36a2d3c (Marno van der Maas) * [dv] Alter cov_merge.tcl patch so icache coverage collection works (Greg Chadwick) * Add patch for lowrisc_ip (Harry Callahan) * [vendor] Update patch file based on upstream OpenTitan (Marno van der Maas) * Feed CHERI errors out to top module (Marno van der Maas) * Remove prim alert from build (Marno van der Maas) * Fix tracing (Marno van der Maas) * Update two port RAM for Sonata (Marno van der Maas) * Patch reading memory files taken from upstream (Marno van der Maas) * Various Verilator lint patches (Marno van der Maas) * Use ibexc_top since that is used in SAFE (Marno van der Maas) * Add FPGA primitives (Marno van der Maas) * fixed cheri_csr_always_ok (missing h counters) in ibex_decoder (Kunyan Liu) * updated functional coverage, minor RTL cleanup (rf_we) (Kunyan Liu) * updated dv/cheriot/tests for the new forward/backward sentry types (Kunyan Liu) * added support for the new forward/backward sentry types (Kunyan Liu) * more exception-related assertion fixes in ibex_controller (Kunyan Liu) * fixed IbexDontSkipExceptionReq assertion in controller (Kunyan Liu) * added illegal_regs_cheri to decoder (generate exceptions for regaddr > 15) (Kunyan Liu) * added handling for pc wraparound case in if_stage (issue lowrisc/cheriot-ibex#34) (Kunyan Liu) * added coremark test (Kunyan Liu) * checking in sanity tests (Kunyan Liu) * Update README.md (Kunyan Liu) * fixed illegal instruction warning in controller (Kunyan Liu) * added CSR cheri safe-list (no ASR) access feature (Kunyan Liu) * removed speculative fetching for cjal/cjalr, rvfi and assertion fixes (Kunyan Liu) * fixed mprv (see cheriot-ibex issue lowrisc/cheriot-ibex#35) and data-dependent behavior in fetch_fifo (potential side-channel leakage (Kunyan Liu) * fixed FV issues (pcc2mepcc, csr/mret ASR permission fault, etc) (Kunyan Liu) * updated core_ibex_fcov (added csethigh) (Kunyan Liu) * Ignore build directory (Marno van der Maas) * Fix reference to rst_ni in tb code (Marno van der Maas) * Fix assignments in memory model (Marno van der Maas) * Add missing files for Verlator build (Marno van der Maas) * Add flags for Verilator version 5 (Marno van der Maas) * fixed mtcc/mepcc legalization to match sail (Kunyan Liu) * fixed more exception handling priority issues (Kunyan Liu) * checked in more dv/cheriot files (Kunyan Liu) * added csethigh insn and updated test case (Kunyan Liu) Signed-off-by: Greg Chadwick <gac@lowrisc.org>
- Loading branch information
1 parent
b9f7aa0
commit d0e9987
Showing
78 changed files
with
9,850 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj_dir/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source ../scripts/common_setup.sh | ||
mkdir -p work | ||
cd work | ||
|
||
pwd | ||
|
||
export TESTNAME=coremark | ||
export CSRC=../csrc_cheri | ||
export SRC=../coremark | ||
export S_FILES="$CSRC/startup.S" | ||
export OBJ_FILES="startup.o" | ||
export C_COMMON="$CSRC/cstart.c $CSRC/util.c" | ||
export C_FILES="$C_COMMON $SRC/core_main.c $SRC/core_list_join.c $SRC/core_matrix.c $SRC/core_util.c $SRC/core_state.c $SRC/cheri/core_portme.c $SRC/cheri/ee_printf.c $SRC/cheri/cheri_atest.S" | ||
export LD_FILE="../link_coremark.ld" | ||
export ELF_OUTPUT=$TESTNAME.elf | ||
export BIN_OUTPUT=$TESTNAME.bin | ||
export HEX_OUTPUT=$TESTNAME.vhx | ||
|
||
# run the compile | ||
BASE_FLAGS="-target riscv32-unknown-unknown -mcpu=cheriot -mabi=cheriot -mxcheri-rvc -Oz -g -nostdlib" | ||
ADDON_CFLAGS="-DNDEBUG -DCOREMARK -I$SRC -I$CSRC -I$SRC/cheri" | ||
|
||
#RUN_CFLAGS="-DVALIDATION_RUN=1 -DITERATIONS=1 -DCLOCKS_PER_SEC=10000000" | ||
RUN_CFLAGS="-DPERFORMACE_RUN=1 -DITERATIONS=1 -DCLOCKS_PER_SEC=10000000" | ||
CLANG_FLAGS="$BASE_FLAGS $ADDON_CFLAGS $RUN_CFLAGS" | ||
|
||
echo "compile and linking.." | ||
echo $CLANG_FLAGS | ||
$CLANG $BASE_FLAGS -c $S_FILES | ||
$CLANG $CLANG_FLAGS -DFLAGS_STR="\"$CLANG_FLAGS\"" -T$LD_FILE -o $ELF_OUTPUT $C_FILES $OBJ_FILES | ||
|
||
$GCC_OBJCOPY -O binary -S $ELF_OUTPUT $BIN_OUTPUT | ||
|
||
$BIN2HEX $BIN_OUTPUT > $HEX_OUTPUT | ||
|
||
echo "Generating disassembled text.." | ||
$LLVM_HOME/llvm-objdump -xdCS --mcpu=cheriot $ELF_OUTPUT > $TESTNAME.dis | ||
|
||
echo "Copying binaries to run area.." | ||
cp $HEX_OUTPUT ../../run/bin | ||
cp $ELF_OUTPUT ../../run/bin | ||
|
Oops, something went wrong.