Muhammad Moiz Hussain
4764d3c029
Implement Ssccfg & Smcdeleg for spike
Signed-off-by: muhammad.moiz.hussain@semidynamics.com
1 year ago
Andrew Waterman
5ef9a61f5f
Merge pull request #1942 from trdthg/svade
Add Svadu/Svade Support
1 year ago
Mingzhu Yan
4d3920b262
Add Svade extension Support
Spike always supports the Svade extension, this is required by the RVA and RVB profiles
1 year ago
Andrew Waterman
842b700764
Merge pull request #1963 from riscv-software-src/wextra
Make compilation with -Wextra -Wall -Werror work
1 year ago
Andrew Waterman
7e80f118e8
Enable many more warnings in CI
1 year ago
Andrew Waterman
143c52fd0d
Do warn about unused variables in regular build
1 year ago
Andrew Waterman
19a6ba33de
Fix the remaining few warnings that Clang catches
1 year ago
Andrew Waterman
ea17df2db5
Suppress unused-argument warnings (-Wextra)
1 year ago
Andrew Waterman
5fb354dce8
Suppress sign-comparison warnings in libfdt/softfloat (-Wextra)
1 year ago
Andrew Waterman
417b778955
Suppress always-true comparison warnings (-Wextra)
1 year ago
Andrew Waterman
094392b02a
Avoid mixing enums and integers in ternary expressions (-Wextra)
1 year ago
Andrew Waterman
3ac4241246
Suppress empty-if warnings (-Wextra)
1 year ago
Andrew Waterman
b645cc0fba
Explicitly annotate fallthrough cases (-Wextra)
1 year ago
Andrew Waterman
08538789ab
Fix missing initializers (-Wextra)
1 year ago
Andrew Waterman
91418ffa71
Remove VLAs in indexed loads/stores (-Wvla)
1 year ago
Andrew Waterman
c75bf6f48f
Remove VLAs in htif/memif (-Wvla)
I don't think these are actually performance-critical, but if they prove
to be, there are obvious optimizations.
1 year ago
Andrew Waterman
a5f6dda2bc
Remove VLAs in DTM (-Wvla)
1 year ago
Andrew Waterman
3f0081afd8
Fix overflow warning (-Woverflow)
1 year ago
Andrew Waterman
01d9b06f3c
Explicitly annotate use of GNU extension (-Wpedantic)
1 year ago
Andrew Waterman
ab024c11d8
Remove extra semicolons (-Wpedantic)
1 year ago
Andrew Waterman
2c26357d0c
Remove non-ISO compound literals (-Wpedantic)
1 year ago
Andrew Waterman
8006a64768
Remove zero-sized arrays (-Werror)
1 year ago
Andrew Waterman
754cd2b123
Fix unspecified evaluation order of 64b loads within float128
1 year ago
Andrew Waterman
12f8e6b1c4
Waive statements with no effect (-Werror)
1 year ago
Andrew Waterman
85b9d265bf
Remove or waive unused variables (-Werror)
1 year ago
Andrew Waterman
8ccde08b27
Remove unused functions (-Werror)
1 year ago
Andrew Waterman
2f2766d866
Remove unused labels (-Werror)
1 year ago
Andrew Waterman
93f1fda53f
Remove repeated 0 in format string (-Werror)
1 year ago
Andrew Waterman
fdf5e82c2e
Merge pull request #1961 from i3abghany/strtolower-no-append
Avoid appending chars to result `strtolower`
1 year ago
Mahmoud Abumandour
31e12a18ef
processor: don't append one char at a time in strtolower
This avoids potential re-alloations as it allocates the result string
upfront.
1 year ago
Mahmoud Abumandour
cfa593d0ea
isa_parser: don't append one char at a time in strtolower
This avoids potential re-alloations as it allocates the result string
upfront.
1 year ago
Andrew Waterman
c2220e6f11
Merge pull request #1957 from riscv-software-src/fix-comlog-print-arrays
Let commit_log_print_value print any length byte array
1 year ago
Andrew Waterman
3084a8e549
Merge pull request #1953 from mslijepc/mslijepc_20250410_ext-sim
Enabling using Spike as a library
1 year ago
mslijepc
a396fee4ed
do_[load|store] in abstract_sim_if_t renamed
1 year ago
Andrew Waterman
6268f2ead5
Merge pull request #1954 from ved-rivos/0410_1
Use SDT of deleg priv. for double trap
1 year ago
Jerry Zhao
4592a869a4
Allow commit_log_print_value to print any byte array
1 year ago
Jerry Zhao
a9b6eab6c0
Change commit_log_print_value to iterate by bytes for array types
1 year ago
Andrew Waterman
c703940286
Merge pull request #1955 from radimkrcmar/fix-pmm-mxr
mmu: fix pointer masking with mstatus.MXR in M-mode
1 year ago
Ved Shanbhogue
77e3e4931d
Use SDT of deleg priv. for double trap
1 year ago
Radim Krčmář
7df2f593d9
mmu: fix pointer masking with mstatus.MXR in M-mode
Pointer masking is disabled if sstatus.MXR is in effect, but M-mode
doesn't use paging and hence sstatus.MXR should not be in effect for
effective M-mode loads.
Do not consider mstatus.MXR when deciding the pointer mask length for
effective M-mode loads.
vsstatus.MXR wasn't an issue as no effective M-mode load could happen
with V=1, but move it below M-mode as well to simplify the conditions.
Fixes: 71bdc3bbd1 ("pointer masking: Pointer masking does not apply when MXR=1 regardless of MPRV in v1.0.0-rc2")
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
1 year ago
mslijepc
7e8eb16973
added external_simulator to cfg_t
1 year ago
mslijepc
2d84179a32
added external_sim_device_t class and methods
1 year ago
mslijepc
5adf8d7ffb
added abstract_sim_if_t class
1 year ago
Andrew Waterman
76858cc3aa
Merge pull request #1946 from riscv-software-src/bus-robust
Add `size` method to `abstract_device_t`; make `bus_t` more robust
1 year ago
Andrew Waterman
e24ae2a79b
Merge pull request #1949 from arrv-sc/master
refactor: make extensions accept processor as an argument
1 year ago
Andrew Waterman
69c7d1129d
Merge pull request #1950 from riscv-software-src/fix-instreth
Fix implementation of instreth writes
1 year ago
Alexander Romanov
69ae3a866c
refactor: make extensions accept processor as an argument
1 year ago
Andrew Waterman
51835fd752
Fix implementation of instreth writes
Decrementing the counter in advance of incrementing it produces
incorrect results when there's a carry-out. Fix by getting rid of this
scheme altogher: just skip the increment if there was an expicit write.
1 year ago
Andrew Waterman
d3c308fc79
Bump counters by 0 when disabled, rather than not bumping
No functional change intended; fixes implementation of a forthcoming bug fix.
1 year ago
Andrew Waterman
290d0c69c5
Annotate bus_t::find_device control-flow paths with [un]likely
1 year ago