Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge remote-tracking branch 'upstream/master' into difftest #31

Merged
merged 223 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
4477cf5
triggers: remove mcontrol6.timing (implement suggested trigger timings)
YenHaoChen Feb 16, 2023
983eb01
triggers: refactor: update debug_defines.h
YenHaoChen Feb 16, 2023
2f12bb8
triggers: refactor: move mcontrol_common_t::hit to mcontrol_t::hit an…
YenHaoChen Feb 21, 2023
2855c71
triggers: refactor: add typedef enum { ... } hit_t for mcontrol6
YenHaoChen Feb 21, 2023
5e2edf8
triggers: implement mcontrol6.hit
YenHaoChen Feb 21, 2023
7657966
triggers: introduce tinfo.version
YenHaoChen May 22, 2024
2cfd539
Merge pull request #1257 from YenHaoChen/pr-mcontrol6-hit0-hit1
aswaterman May 22, 2024
853105c
zicflip: fix [ms]ret behavior
chihminchao May 23, 2024
8ad1b68
vector: Not logging write of reduction instructions when vl = 0
YenHaoChen May 24, 2024
4611b1f
Merge pull request #1675 from chihminchao/cfi-fix
aswaterman May 27, 2024
5c3cc77
Merge pull request #1677 from YenHaoChen/pr-vector-reduction
aswaterman May 27, 2024
48cf35d
Require vector extension when attempting vxsat writes
rbuchner-aril May 23, 2024
a53a71f
Merge pull request #1678 from rbuchner-aril/rbuchner/vxsat-write
aswaterman May 27, 2024
6a65a80
updated README with supported Vector Cryptography Extensions
akifejaz May 27, 2024
a316a37
add support to load ET_DYN elf
clementleger May 15, 2024
3a70f84
Merge pull request #1670 from clementleger/dev/cleger/et_dyn
jerryz123 May 29, 2024
e7d46b8
corrected the crypto extension version
akifejaz May 29, 2024
dc8ea59
Merge branch 'master' into vector-crypto
akifejaz May 29, 2024
148e6d6
No need to check if Zicfilp is enabled before checking ELP
aswaterman May 31, 2024
7595995
Avoid checking ELP before every instruction fetch
aswaterman May 31, 2024
00dfa28
Merge pull request #1684 from riscv-software-src/simplify-zicfilp
aswaterman May 31, 2024
db76232
triggers: implement tcontrol
YenHaoChen Jun 11, 2024
9bcda41
Merge pull request #1688 from YenHaoChen/pr-tcontrol
aswaterman Jun 11, 2024
025a50d
Add missing instructions to Makefile
aswaterman Jun 11, 2024
5defb11
Remove unnecessary instructions from overlap list
aswaterman May 31, 2024
74ee3b7
Refine Zicfiss overlap list
aswaterman May 31, 2024
ca38d97
Add comments to overlap list
aswaterman May 31, 2024
acd43e0
Preserve the ordering of the instruction list
aswaterman Jun 11, 2024
625e945
Keep potentially overlapping instructions in order at head of list
aswaterman Jun 11, 2024
4d23478
Compensate for perf loss of not mutating insn list by presorting it
aswaterman Jun 11, 2024
48f8154
Improve hit rate of opcode cache to compensate for not mutating insn …
aswaterman Jun 11, 2024
0325be5
Separate RV32 and RV64 C instructions into separate files
aswaterman Jun 11, 2024
40b660a
Validate contents of overlap list in CI
aswaterman Jun 11, 2024
9e6253f
Merge pull request #1687 from riscv-software-src/flw-overlap
aswaterman Jun 11, 2024
22748de
Merge branch 'master' into vector-crypto
akifejaz Jun 12, 2024
62d5c06
Merge pull request #1679 from akifejaz/vector-crypto
aswaterman Jun 12, 2024
0556242
Fix a few compile warnings
aswaterman Jun 13, 2024
70d26d6
Adding Zilsd and Zcmlsd extensions (Load/store pair for RV32)
christian-herber-nxp Jun 10, 2024
92d6c3f
Merge branch 'NXP-zilsd'
aswaterman Jun 13, 2024
6c008e9
Make softfloat's rounding mode thread-local
aswaterman Jun 13, 2024
2d7af2f
Merge pull request #1689 from riscv-software-src/rounding-mode-thread…
aswaterman Jun 14, 2024
4a884e6
Consistently order BF16 routines in Makefile and softfloat.h
aswaterman Jun 15, 2024
59b6458
Add a prerequisite for building
Du-Chao Jun 18, 2024
2746119
Merge pull request #1694 from Du-Chao/master
aswaterman Jun 18, 2024
fe47d09
Add several BF16 ops to SoftFloat
aswaterman Jun 19, 2024
a826a4e
Merge pull request #1690 from riscv-software-src/fix-warnings
jerryz123 Jun 20, 2024
5e7928a
Merge pull request #1695 from riscv-software-src/bf16-ops
aswaterman Jun 20, 2024
c6cb05c
In isa_parser, move extensionology code before error-checking code
aswaterman Jun 20, 2024
6fb4362
Merge pull request #1702 from riscv-software-src/fix-1696
aswaterman Jun 21, 2024
0408e79
Add isa_parser parsing for zvl/zve
jerryz123 Jun 20, 2024
ede5371
Add Zvl/Zve validation to isa_parser
jerryz123 Jun 20, 2024
a3a626b
Add accessors to isa_parser's VLEN/ELEN
jerryz123 Jun 20, 2024
24d5693
Relax has_fs dependency on misa.v
jerryz123 Jun 20, 2024
9925435
Allow disassembly from implementations that are not full V
jerryz123 Jun 20, 2024
457ea8c
Relax zvfh/zvfhmin dependency on V, they only actually depend on Zve
jerryz123 Jun 20, 2024
a484f6e
Relax vector_csr dependency on 'V'
jerryz123 Jun 20, 2024
08d5119
Relax mstatus.vs dependency on full V
jerryz123 Jun 20, 2024
9ee100f
Relax require_vector check for misa.V
jerryz123 Jun 20, 2024
9f5df7f
Disallow any vector, not just V, when no __int128 type is present
jerryz123 Jun 20, 2024
0f4642e
Switch to Zvl/Zve parsing from isa_parser, instead of varch
jerryz123 Jun 20, 2024
3b6a8fa
Remove all --varch parsing
jerryz123 Jun 20, 2024
67e205c
Restrict spike to vlen <= 4096
jerryz123 Jun 20, 2024
c790f73
Vector-fp instructions depend on zve, not F/D
jerryz123 Jun 20, 2024
29da140
Fix C/C++ thread-local linkage differently
aswaterman Jun 21, 2024
3d4027a
Merge pull request #1704 from riscv-software-src/thread-local-again
aswaterman Jun 22, 2024
f03e97c
Merge pull request #1701 from riscv-software-src/zvl_zve
jerryz123 Jun 22, 2024
ef7416c
Fix: Add missing <stdexcept> header for std::logic_error
rpsene Jun 22, 2024
0c70692
Merge pull request #1705 from rpsene/master
jerryz123 Jun 22, 2024
7f93baf
Fix riscv-tests commit for CI
jerryz123 Jun 26, 2024
d00dfd6
Merge pull request #1710 from riscv-software-src/fix_debug_ci
jerryz123 Jun 26, 2024
389851c
Add disassembly for Zfa extension
aswaterman Jun 27, 2024
6854a91
Expand default disassembly ISA
aswaterman Jun 27, 2024
b6498b1
Merge pull request #1711 from riscv-software-src/zfa-disasm
aswaterman Jun 27, 2024
e72fcaa
Add insn cmds to interactive debug mode
abejgonzalez Jun 26, 2024
ed5f817
Merge pull request #1709 from abejgonzalez/add-insn-debug-mode-cmds
aswaterman Jun 27, 2024
abb2d55
Fix insn interactive command (catch/print trap, use proper access func)
abejgonzalez Jun 28, 2024
3947fa0
Don't print vregs if no V exts
abejgonzalez Jun 28, 2024
f2a20b1
Merge pull request #1715 from abejgonzalez/fix-interactive-vregs
jerryz123 Jun 28, 2024
1b1a333
Merge pull request #1714 from abejgonzalez/fix-interactive-insn
jerryz123 Jun 28, 2024
ec292be
Update encoding.h for pointer masking
YenHaoChen Jul 2, 2024
952b98f
Loads to shadow-stack pages are allowed
aswaterman Jul 2, 2024
4a2da91
Merge pull request #1719 from YenHaoChen/pr-encoding
aswaterman Jul 3, 2024
98d2c29
Merge pull request #1717 from riscv-software-src/fix-ss-load
aswaterman Jul 4, 2024
436b684
pointer masking: Support _smmpm to --isa
YenHaoChen Jul 5, 2024
58defa0
pointer masking: Let mseccfg.PMM be WARL if with Smmpm
YenHaoChen Jul 5, 2024
c70e0c2
refactor: Implement sext(x, pos) macro
YenHaoChen Jul 2, 2024
dfdd13f
refactor: Move implementation of generate_access_info() to riscv/mmu.cc
YenHaoChen Jul 18, 2024
a15cf88
pointer masking: Let load take into account pointer masking
YenHaoChen Jul 18, 2024
37d06eb
pointer masking: performance: Move pointer masking out of load fast path
YenHaoChen Jul 15, 2024
f47782c
refactor: Rename parameter addr to original_addr in load_slow_path()
YenHaoChen Jul 18, 2024
9be6070
pointer masking: Let store take into account pointer masking
YenHaoChen Jul 15, 2024
68df897
pointer masking: performance: Move pointer masking out of store fast …
YenHaoChen Jul 15, 2024
5beff7a
refactor: Rename parameter addr to original_addr in store_slow_path()
YenHaoChen Jul 18, 2024
42776e6
pointer masking: Let cache-block zero instruction (cbo.zero) take int…
YenHaoChen Jul 2, 2024
91173cb
pointer masking: Let cache-block management instructions take into ac…
YenHaoChen Jul 15, 2024
a8cc689
refactor: Add const qualifier to mmu_t::in_mprv()
YenHaoChen Jul 18, 2024
fb76125
pointer masking: Let pointer masking not apply when both MPRV and MXR…
YenHaoChen Jul 18, 2024
8b5cb0f
pointer masking: Let HLVX.* instructions not subject to pointer masking
YenHaoChen Jul 18, 2024
eea20ae
pointer masking: Support _smnpm to --isa
YenHaoChen Jul 5, 2024
6cc342b
pointer masking: Let menvcfg.PMM be WARL if with Smnpm
YenHaoChen Jul 5, 2024
370f741
pointer masking: Support _ssnpm to --isa
YenHaoChen Jul 5, 2024
faeef6e
pointer masking: Let [sh]envcfg.PMM be WARL if with Ssnpm
YenHaoChen Jul 5, 2024
f710dc7
pointer masking: Implement Smnpm (Flush TLB on changing *envcfg.PMM)
YenHaoChen Jul 5, 2024
c268fb2
pointer masking: Implement [sh]envcfg.PMM
YenHaoChen Jul 5, 2024
69f0c46
refactor: Add specialized hstatus_csr_t
YenHaoChen Jul 2, 2024
7f8c663
pointer masking: Implement hstatus.HUPMM (Flush TLB on changing hstat…
YenHaoChen Jul 2, 2024
707b1f2
Instantiate vector CSRs only if any_vector_extensions()
YenHaoChen Jul 19, 2024
0797c21
Add Ssdbltrp
ved-rivos Jun 20, 2024
f7d0dba
Merge pull request #1700 from ved-rivos/ssdbltrp
aswaterman Jul 8, 2024
ad86a5f
Deprecate dcsr.halt
YenHaoChen Jul 15, 2024
50c89ea
zkr: check extension availability in csr_mseccef permssion check
binno Jul 12, 2024
4fe12b2
ssqosid: modify permission check condition for srmcfg
binno Jul 12, 2024
eccb557
Fix require_vector_vs checking by reverting https://github.com/riscv-…
YenHaoChen Jul 17, 2024
6b89a49
Merge pull request #1726 from YenHaoChen/pr-dcsr
aswaterman Jul 17, 2024
f205bc4
Add missing include
aswaterman Jul 17, 2024
c96f57e
Fix warning by renaming C++ source to .cc
aswaterman Jul 17, 2024
fb2adef
update c++ version to c++2a for CI tests
aswaterman Jul 17, 2024
238e0ac
Use "" rather than <> includes in libfdt.h
aswaterman Jul 17, 2024
8feeaf3
Add include guards to entropy_source.h
aswaterman Jul 17, 2024
3e44fee
Don't install private softfloat headers
aswaterman Jul 17, 2024
97a7244
Avoid dependence on config.h in byteorder.h
aswaterman Jul 17, 2024
77654f6
Obtain definition of reg_t in elfloader.h
aswaterman Jul 17, 2024
a492492
Add install-hdrs-list.h target
aswaterman Jul 17, 2024
aa73432
Check in CI that all installed headers are usable
aswaterman Jul 17, 2024
0846302
excp: support hardware_error_exception delegation
binno Jul 12, 2024
0f0c1c1
zicfiss: fix missed throw to store access fault of shadow stack page
binno Jul 12, 2024
e9af319
zicfiss: modify check condicton to loads to shadow-stack pages
binno Jul 12, 2024
0a4f0b3
zkr: enable write for useed/sseed fileds of mseccfg csr
binno Jul 12, 2024
4f69177
Merge pull request #1730 from riscv-software-src/test-headers
aswaterman Jul 17, 2024
985837a
Merge pull request #1731 from chihminchao/fix-zicfiss
aswaterman Jul 17, 2024
fd141e9
Merge pull request #1733 from chihminchao/fix-ssqosid
aswaterman Jul 17, 2024
c0281a1
Merge pull request #1735 from chihminchao/deleg-hw-excp
aswaterman Jul 17, 2024
229b159
Fix ePMP checking on hlvx instructions
YenHaoChen Jul 17, 2024
34601fc
Merge pull request #1736 from YenHaoChen/pr-hlvx-epmp
aswaterman Jul 18, 2024
6dbc8ca
zkr: entropy source access control for seed csr
binno Jul 12, 2024
cefa747
Check if any vector extensions for vector CSRs
YenHaoChen Jul 19, 2024
67933ec
Check any_vector_extensions() in require_vector_vs
YenHaoChen Jul 19, 2024
af90d42
vector: check extension existence before reading vl
YenHaoChen Jul 19, 2024
ea5138d
The senvcfg.SSE will read (only) as zero when menvcfg.SSE is 0
binno Jul 11, 2024
f2181f0
Merge pull request #1732 from chihminchao/fix-zkr
aswaterman Jul 19, 2024
344a860
Merge pull request #1724 from chihminchao/cif-sse-fix
aswaterman Jul 19, 2024
83a2035
Merge pull request #1718 from YenHaoChen/pr-pm
aswaterman Jul 20, 2024
7dce838
Merge pull request #1729 from YenHaoChen/pr-require-vector
aswaterman Jul 21, 2024
1342c68
refactor: set_fp_exceptions: Use a new macro raise_fp_exceptions(flag…
YenHaoChen Jul 23, 2024
e86e653
fcvtmod.w.h: Not update fflags if no exception flag, e.g., exp == fra…
YenHaoChen Jul 22, 2024
64bc0c1
Merge pull request #1740 from YenHaoChen/pr-fcvtmod_w_d
aswaterman Jul 23, 2024
94d21c9
svpbmt: don't reset [mh]envcfg.pbmt to 1
chihminchao Jul 25, 2024
4703ad9
Merge pull request #1746 from chihminchao/fix-svpbmt-init
aswaterman Jul 25, 2024
54a5e38
vnclip.wx: Check if there is any vector extension before using vector…
YenHaoChen Jul 31, 2024
adacda4
Merge pull request #1749 from YenHaoChen/pr-vnclip_wx
aswaterman Jul 31, 2024
e9f620f
vector: Check if there is any vector extension before using vector CSRs
YenHaoChen Jul 31, 2024
0a2c3b6
Merge pull request #1750 from YenHaoChen/pr-vector-xrm
aswaterman Jul 31, 2024
584f855
Fix segfault accessing menvcfg when U-mode doesn't exist
aswaterman Jul 31, 2024
9572283
Merge pull request #1753 from riscv-software-src/fix-1752
aswaterman Aug 1, 2024
a17842c
vcompress.vm: Check if there is any vector extension before using vec…
YenHaoChen Aug 1, 2024
47a57ee
Merge pull request #1754 from YenHaoChen/pr-vcompress
aswaterman Aug 1, 2024
c536aff
Pass cfg into make_dts
jerryz123 Jun 30, 2024
6f4116d
Move isa property to a field of processor_t, not sim_t
jerryz123 Jun 30, 2024
f11bd7b
Support parsing procs fully from DTS
jerryz123 Jun 30, 2024
398101b
Generalize DTC compilation to support both DTS/B
abejgonzalez Jul 3, 2024
deeda9a
Fix trap interactive output
abejgonzalez Jul 3, 2024
eb3ccab
Avoid magic constants in hpmcounter implementation
aswaterman Aug 1, 2024
39ba3fe
Fix enabling hypervisor extension
aswaterman Aug 1, 2024
8e05766
Merge pull request #1757 from riscv-software-src/fix-1755
aswaterman Aug 1, 2024
62a2dd1
Merge pull request #1756 from riscv-software-src/clean-up-hpm
aswaterman Aug 1, 2024
fdd2570
Merge pull request #1721 from abejgonzalez/dts_parsing
aswaterman Aug 1, 2024
d9f21fc
Improve dts <-> dtb API
aswaterman Aug 2, 2024
b9ecc1d
In dtc_compile, use c string instead of stl string
aswaterman Aug 2, 2024
e98294c
Move CSR initialization to its own file
aswaterman Aug 1, 2024
2597b4b
Add CSRs through an interface, rather than mutating csrmap
aswaterman Aug 1, 2024
3c0e6bf
Refactor initialization of mode-specific CSRs
aswaterman Aug 1, 2024
a81d597
Remove boilerplate from most CSR instantiations
aswaterman Aug 1, 2024
1ecad57
Only add CSRs if corresponding extensions are enabled
aswaterman Aug 1, 2024
2890ea7
Merge pull request #1759 from riscv-software-src/dts-api
aswaterman Aug 2, 2024
e749bb0
Let MXR not affect implicit memory access for VS-stage address transl…
YenHaoChen Aug 2, 2024
1b53bf9
Merge pull request #1760 from YenHaoChen/pr-mxr
aswaterman Aug 5, 2024
11fbcb5
Merge pull request #1758 from riscv-software-src/csr-init-fixes
aswaterman Aug 5, 2024
92833d1
Add implemented extensions to readme
christian-herber-nxp Aug 7, 2024
f70b035
Merge pull request #1763 from NXP/add-missing-extensions
aswaterman Aug 7, 2024
ddba69c
update readme with extensions
ved-rivos Aug 7, 2024
c302e8b
Add Smdbltrp
ved-rivos Jul 4, 2024
91793ed
Merge pull request #1764 from ved-rivos/exts
aswaterman Aug 7, 2024
8b05d84
Use ordered map for commit log
aswaterman Aug 9, 2024
6f28e4b
Merge pull request #1768 from riscv-software-src/commit-log-ordered
aswaterman Aug 9, 2024
9031c7b
Fix ordering of B single-letter extension
jerryz123 Aug 11, 2024
20a5082
Fix a typo in https://github.com/riscv-software-src/riscv-isa-sim/pul…
YenHaoChen Aug 12, 2024
183a2d0
Merge pull request #1770 from YenHaoChen/pr-sim
jerryz123 Aug 12, 2024
bfe9173
Merge pull request #1769 from riscv-software-src/b-ordering
aswaterman Aug 12, 2024
3833093
pointer masking: Fix: Let transformed_addr of fetching be unchanged
YenHaoChen Aug 16, 2024
0648ab4
pointer masking: refactor: Use xlen to avoid sketchy, hardcoded numbe…
YenHaoChen Aug 18, 2024
33d80b4
Merge pull request #1776 from YenHaoChen/pr-pm
aswaterman Aug 18, 2024
f09b024
Merge pull request #1722 from ved-rivos/smdbltrp
aswaterman Aug 18, 2024
1a15805
Fix mcontrol6 mask low/high operations.
rtwfroody Aug 12, 2024
a8c9d9c
Merge pull request #1771 from rtwfroody/match_mask
aswaterman Aug 19, 2024
a1506ec
For mcontrol6, default to BEFORE timing.
rtwfroody Aug 20, 2024
c72eca8
Refactor insn_template to be more DRY
aswaterman Aug 23, 2024
5efbfcb
Fix exception priority for RV32E loads and AMOs
aswaterman Aug 23, 2024
73bc678
Fix exception priority for RV32E JAL/JALR
aswaterman Aug 23, 2024
1b80449
Merge pull request #1783 from riscv-software-src/fix-1782
aswaterman Aug 23, 2024
71bdc3b
pointer masking: Pointer masking does not apply when MXR=1 regardless…
YenHaoChen Aug 26, 2024
20cd44a
Merge pull request #1784 from YenHaoChen/pr-pm
aswaterman Aug 27, 2024
d13dc0b
triggers: mcontrol: refactor: Add mcontrol_t::maskmax
YenHaoChen Aug 27, 2024
1510a6e
triggers: Let mcontrol.match be default (0/equal) if maskmax is 0
YenHaoChen Aug 27, 2024
eb07f10
Use cmdline --priv flag when parsing proc configurations from DTB
jerryz123 Aug 27, 2024
60f02dd
Merge pull request #1786 from YenHaoChen/pr-mcontrol
aswaterman Aug 27, 2024
1b33b54
Factor out create_mem_region from parse_mem_layout
aswaterman Aug 27, 2024
eb85c33
Check size_t bounds overflow in create_mem_region
aswaterman Aug 27, 2024
1687094
Use create_mem_region for legacy -m argument
aswaterman Aug 27, 2024
52f045d
Lift restriction on physical-address size
aswaterman Aug 28, 2024
5029aa7
Merge pull request #1787 from riscv-software-src/fix-cfg-priv
jerryz123 Aug 28, 2024
61d277c
pointer masking: Consider effective v bit instead of current v bit
YenHaoChen Aug 28, 2024
272c149
Merge pull request #1789 from YenHaoChen/pr-pm
aswaterman Aug 28, 2024
84a212e
pointer masking: Always apply sstatus.MXR regardless of effective V
YenHaoChen Aug 29, 2024
3f556d6
Merge pull request #1791 from YenHaoChen/pr-pm
aswaterman Aug 30, 2024
3c5b1bb
Merge pull request #1779 from rtwfroody/trigger_timing
aswaterman Aug 30, 2024
2538c1f
Merge pull request #1788 from riscv-software-src/support-larger-addre…
aswaterman Sep 2, 2024
ff62109
vector: disassemble: Let operand ordering be vd, [vr]s1, vs2 to vecto…
YenHaoChen Sep 3, 2024
7f38a50
vector: disassemble: Let operand ordering be vd, [vr]s1, vs2 to vecto…
YenHaoChen Sep 3, 2024
b47d0ba
vector: disassemble: Let operand ordering be vd, [vf]s1, vs2 to vecto…
YenHaoChen Sep 3, 2024
6a1a5db
vector: disassemble: Let operand ordering be vd, [vf]s1, vs2 to vecto…
YenHaoChen Sep 3, 2024
cb78f09
Merge pull request #1797 from YenHaoChen/pr-vector
aswaterman Sep 3, 2024
cb04c57
Merge remote-tracking branch 'upstream/master' into difftest
lewislzh Sep 5, 2024
04a17bd
fix : compile error of merge
lewislzh Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/debug-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: |
git clone --recurse-submodules https://github.com/riscv-software-src/riscv-tests.git
cd riscv-tests
git checkout bd0a19c136927eaa3b7296a591a896c141affb6b
git checkout e06a435c1e545def71e833031356372f0828f165

- name: Run Tests
run: |
Expand Down
9 changes: 9 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,15 @@ install-hdrs : $(install_hdrs)
$(INSTALL_HDR) $(src_dir)/$$file $(install_hdrs_dir)/`dirname $$file`; \
done

install-hdrs-list.h: $(install_hdrs)
rm -f [email protected]
for file in $(subst $(src_dir)/,,$^); \
do \
$(MKINSTALLDIRS) $(install_hdrs_dir)/`dirname $$file`; \
echo "#include <$(src_dir)/$$file>" >> [email protected]; \
done
mv [email protected] $@

install-libs : $(install_libs)
$(MKINSTALLDIRS) $(install_libs_dir)
for file in $^; \
Expand Down
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ Spike supports the following RISC-V ISA features:
- RV32E and RV64E base ISAs, v1.9
- Zifencei extension, v2.0
- Zicsr extension, v2.0
- Zicntr extension, v2.0
- M extension, v2.0
- A extension, v2.1
- B extension, v1.0
- F extension, v2.2
- D extension, v2.2
- Q extension, v2.2
Expand All @@ -37,11 +39,22 @@ Spike supports the following RISC-V ISA features:
- Svnapot extension, v1.0
- Svpbmt extension, v1.0
- Svinval extension, v1.0
- Svadu extension, v1.0
- Sdext extension, v1.0-STABLE
- Sdtrig extension, v1.0-STABLE
- Smepmp extension v1.0
- Smstateen extension, v1.0
- Smdbltrp extension, v1.0
- Sscofpmf v0.5.2
- Ssdbltrp extension, v1.0
- Ssqosid extension, v1.0
- Zaamo extension, v1.0
- Zalrsc extension, v1.0
- Zabha extension, v1.0
- Zacas extension, v1.0
- Zawrs extension, v1.0
- Zicfiss extension, v1.0
- Zicfilp extension, v1.0
- Zca extension, v1.0
- Zcb extension, v1.0
- Zcf extension, v1.0
Expand All @@ -51,6 +64,19 @@ Spike supports the following RISC-V ISA features:
- Zfbfmin extension, v0.6
- Zvfbfmin extension, v0.6
- Zvfbfwma extension, v0.6
- Zvbb extension, v1.0
- Zvbc extension, v1.0
- Zvkg extension, v1.0
- Zvkned extension, v1.0
- Zvknha, Zvknhb extension, v1.0
- Zvksed extension, v1.0
- Zvksh extension, v1.0
- Zvkt extension, v1.0
- Zvkn, Zvknc, Zvkng extension, v1.0
- Zvks, Zvksc, Zvksg extension, v1.0
- Zicond extension, v1.0
- Zilsd extension, v0.9.0
- Zcmlsd extension, v0.9.0

Versioning and APIs
-------------------
Expand All @@ -74,7 +100,7 @@ Build Steps
We assume that the RISCV environment variable is set to the RISC-V tools
install path.

$ apt-get install device-tree-compiler libboost-regex-dev
$ apt-get install device-tree-compiler libboost-regex-dev libboost-system-dev
$ mkdir build
$ cd build
$ ../configure --prefix=$RISCV
Expand Down
2 changes: 1 addition & 1 deletion ci-tests/build-spike
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mkdir install
CXXFLAGS="-Wnon-virtual-dtor" CFLAGS="-Werror -Wignored-qualifiers -Wunused-function -Wunused-parameter -Wunused-variable" $DIR/../configure --prefix=`pwd`/install
make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
make check
make install
make install install-hdrs-list.h

# check that help message prints without error
install/bin/spike -h
7 changes: 5 additions & 2 deletions ci-tests/test-spike
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ tar xf spike-ci.tar
time ../install/bin/spike --isa=rv64gc pk hello | grep "Hello, world! Pi is approximately 3.141588."

# check that including sim.h in an external project works
g++ -std=c++17 -I../install/include -L../install/lib $DIR/testlib.c -lriscv -o test-libriscv
g++ -std=c++17 -I../install/include -L../install/lib $DIR/test-customext.cc -lriscv -o test-customext
g++ -std=c++2a -I../install/include -L../install/lib $DIR/testlib.cc -lriscv -o test-libriscv
g++ -std=c++2a -I../install/include -L../install/lib $DIR/test-customext.cc -lriscv -o test-customext

# check that all installed headers are functional
g++ -std=c++2a -I../install/include -L../install/lib $DIR/testlib.cc -lriscv -o /dev/null -include ../install-hdrs-list.h

LD_LIBRARY_PATH=../install/lib ./test-libriscv pk hello| grep "Hello, world! Pi is approximately 3.141588."
LD_LIBRARY_PATH=../install/lib ./test-customext pk dummy-slliuw | grep "Executed successfully"
File renamed without changes.
3 changes: 0 additions & 3 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
/* Default value for --priv switch */
#undef DEFAULT_PRIV

/* Default value for --varch switch */
#undef DEFAULT_VARCH

/* Define if subproject MCPPBS_SPROJ_NORM is enabled */
#undef DISASM_ENABLED

Expand Down
17 changes: 0 additions & 17 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,6 @@ with_boost_asio
with_boost_regex
with_isa
with_priv
with_varch
with_target
enable_dual_endian
'
Expand Down Expand Up @@ -1407,8 +1406,6 @@ Optional Packages:
--with-isa=RV64IMAFDC_zicntr_zihpm
Sets the default RISC-V ISA
--with-priv=MSU Sets the default RISC-V privilege modes supported
--with-varch=vlen:128,elen:64
Sets the default vector config
--with-target=riscv64-unknown-elf
Sets the default target config
Expand Down Expand Up @@ -6593,20 +6590,6 @@ fi



# Check whether --with-varch was given.
if test ${with_varch+y}
then :
withval=$with_varch;
printf "%s\n" "#define DEFAULT_VARCH \"$withval\"" >>confdefs.h

else $as_nop

printf "%s\n" "#define DEFAULT_VARCH \"vlen:128,elen:64\"" >>confdefs.h

fi



# Check whether --with-target was given.
if test ${with_target+y}
then :
Expand Down
1 change: 0 additions & 1 deletion difftest/difftest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ const cfg_t *DifftestRef::create_cfg() {
cfg->bootargs = nullptr;
cfg->isa = CONFIG_DIFF_ISA_STRING;
cfg->priv = DEFAULT_PRIV;
cfg->varch = DEFAULT_VARCH;
cfg->misaligned = false;
// const endianness_t default_endianness,
cfg->endianness = endianness_little;
Expand Down
Loading