Yinan Xu
5afa62e541
Close file descriptors in destructor of syscall_t
3 years ago
Andrew Waterman
0835bd7729
Merge pull request #1332 from riscv-software-src/fix-1326
Partially revert #1326
3 years ago
Andrew Waterman
64dfca6bec
Partially revert #1326
Apparently GCC still wants the UNUSED.
Not sure why CI didn't catch this initially.
3 years ago
Andrew Waterman
3f7937e25a
Merge pull request #1326 from riscv-software-src/fix-1325
Avoid declaring potentially out-of-bounds references in vmfeq etc.
3 years ago
Andrew Waterman
808fa1cab1
Avoid declaring potentially out-of-bounds references in vmfeq etc.
I don't think this was actually broken, since the references weren't used,
but it was certainly unsanitary.
Fixes #1325
3 years ago
Andrew Waterman
1c2d53a3fc
Merge pull request #1322 from plctlab/plct-vector-fix
Remove unused parameter for macro in v_ext_macro.h
3 years ago
Weiwei Li
396910b869
Rename parameters for VI_VFP_NCVT* macros to be consistent with the
comments in vfncvt*.h
3 years ago
Weiwei Li
6f0fb68d58
Fix comments error in vfncvt_*_w.h
3 years ago
Weiwei Li
b82d97a011
Remove unused parameter for macro in v_ext_macro.h
3 years ago
Jerry Zhao
887d02e421
Merge pull request #1317 from riscv-software-src/fesvrdebug
Clean up fesvr/dtm_t
3 years ago
Jerry Zhao
7470633c42
Make some dtm_t interfaces protected
* This enables useful functionality in inheritors
3 years ago
Jerry Zhao
cf5d11c987
Unify fesvr/debug_defines.h and riscv/debug_defines.h
* fesvr/debug_defines.h is removed
3 years ago
Jerry Zhao
2e07ac8d71
Add debug_defines.h to list of installed headers
3 years ago
Andrew Waterman
0b52bb6255
Merge pull request #1311 from YenHaoChen/pr-show-d-mode
explicitly show D(-mode) instead of M(-mode) when in debug mode
3 years ago
YenHaoChen
0b266f2a51
explicitly show D(-mode) instead of M(-mode) when in debug mode
Debug mode (D-mode) can be considered an additional privilege mode.
This commit proposes printing D(-mode) instead of M(-mode) for D-mode.
3 years ago
Andrew Waterman
eb75ab37a1
Merge pull request #1307 from Jakub-Palider/master-stats-always
Print cache stats even when no access
3 years ago
Andrew Waterman
7f4c6eb469
Merge pull request #1306 from Jakub-Palider/master-override-cache-name
Allow client to override default names of caches
3 years ago
Andrew Waterman
09f29dbc54
Merge pull request #1305 from Jakub-Palider/master-cache-stats
Add cache statistics print on demand
3 years ago
Scott Johnson
035cc8e98d
Merge pull request #1263 from scottj97/icount-trigger
Improve icount trigger implementation
3 years ago
Scott Johnson
710117a997
Decrement icount trigger count on external interrupt
Spec says:
> This trigger matches on every instruction completed or trap
> taken from a privilege mode where the trigger is enabled.
Other (synchronous) traps were already correctly decrementing count,
but external interrupts (i.e. timer interrupts) were not.
3 years ago
Scott Johnson
805d71705c
Don't waste time checking icount when unnecessary
3 years ago
Scott Johnson
e4325fda27
Initialize all fields of icount_t
According to table in debug spec.
This has no visible effect, because every time we instantiate an
icount_t (in triggers::module_t::tdata1_write) we immediately call
tdata1_write() which sets these values, but it's cleaner this way.
3 years ago
Scott Johnson
dc109aeb94
Merge pull request #1299 from ptomsich/ptomsich/zfa
Add Zfa support
3 years ago
Jakub Palider
49362eb1b3
Allow client to override default names of caches
In multi-processor systems it is desired to track
caches separately by assigning unique names to them.
Signed-off-by: Jakub Palider <jpalider@marvell.com>
3 years ago
Jakub Palider
96c64bce53
Print cache stats even when no access
The cache stats are printed regardless on accesses they
recorded. This allows better insight into system operation
and provides consistent output for scripting.
Signed-off-by: Jakub Palider <jpalider@marvell.com>
3 years ago
Jakub Palider
3dd48fd91c
Add cache statistics print on demand
With this change it is not necessary to wait for
tracer destructor to trigger statistics printout.
Signed-off-by: Jakub Palider <jpalider@marvell.com>
3 years ago
Philipp Tomsich
09140c07e1
Implement Zfa.
This passes our developer test suite, when comparing output
(signature) against the SAIL implementation.
If any corner-cases require additional changes after ACT goes
upstream, we can apply an add-on patch.
3 years ago
Philipp Tomsich
f002b931d0
encoding.h: regenerate
3 years ago
Philipp Tomsich
50a48e1517
gitignore: ignore emacs backup files
3 years ago
Andrew Waterman
d70ea67df7
Merge pull request #1262 from jolivain/fix_spike_usage_message
Fix --bootargs default value in spike usage help() function
3 years ago
Julien Olivain
04dbf0d5be
Fix --bootargs default value in spike usage help() function
Commit 191634d285 changed the default kernel boot args from
"console=hvc0 earlycon=sbi" to "console=ttyS0 earlycon", but didn't
updated the spike usage help() function.
This commit introduces a new macro DEFAULT_KERNEL_BOOTARGS in order to
have a single definition. This macro is used everywhere in dts.cc and
spike.cc help() function.
Signed-off-by: Julien Olivain <ju.o@free.fr>
3 years ago
Jerry Zhao
929ff56a09
Merge pull request #1297 from riscv-software-src/zicntr_zihpm
Stop unconditionally adding zicntr/zihpm to supported extensions
3 years ago
Jerry Zhao
9641cf5b5a
Stop unconditionally adding zicntr_zihpm to extensions
3 years ago
Jerry Zhao
41934578a4
Support zihpm && !zicntr
3 years ago
Jerry Zhao
f9c78b8e05
Set counteren_mask properly when !(zihpm && zicntr)
3 years ago
Jerry Zhao
384316fb36
Add zicntr_zihpm to DEFAULT_ISA
3 years ago
Jerry Zhao
5e366af773
Update configure/config.h.in
Ran autoreconf in top directory, version 2.69
3 years ago
Jerry Zhao
a6eb6c2a99
Merge pull request #1294 from riscv-software-src/wfi_accessor
Add processor_t::is_waiting_for_interrupt accessor
3 years ago
Jerry Zhao
1545955298
Add processor_t::is_waiting_for_interrupt accessor
Signed-off-by: Jerry Zhao <jerryz123@berkeley.edu>
3 years ago
Andrew Waterman
4b0e34e013
Merge pull request #1279 from riscv-software-src/jerryz123-patch-1
Improve ctrlc responsiveness in interactive mode
3 years ago
Jerry Zhao
99a98013a4
interactive: Improve ctrlc responsiveness
* Move most ctrl-c logic to interactive()
* 5f4cabc was only a partial fix. This change catches more corner cases where the ctrlc is registered
Signed-off-by: Jerry Zhao <jerryz123@berkeley.edu>
3 years ago
Andrew Waterman
8983efd146
Merge pull request #1292 from TommyMurphyTM1234/master
Fix for #1291
3 years ago
Andrew Waterman
e3689fc92a
Merge pull request #1286 from riscv-software-src/smrnmi
Implement Smrnmi extension
3 years ago
Tommy Murphy
93c6d8e1e0
Fix for https://github.com/riscv-software-src/riscv-isa-sim/issues/1291
3 years ago
Andrew Waterman
a5fdc4efbf
Implement Smrnmi extension
We don't model any sources of RNMI, so this is mostly vestigial.
3 years ago
Andrew Waterman
43c87e5ccc
Make MPRV logic consistent; factor it out
I believe the fact that mmu_t::refill_tlb was ignoring debug mode
was benign, but certainly paying attention to debug mode is OK.
3 years ago
Andrew Waterman
b947fcb059
Update encoding.h for Smrnmi CSR and opcode definitions
3 years ago
Andrew Waterman
f29dcd0d34
Merge pull request #1284 from jolivain/fix_gcc13_build
fesvr: fix compilation with gcc 13
3 years ago
Andrew Waterman
a6ec93c6b6
Merge pull request #1285 from plctlab/plct-zc-update-v1.0.3
Fix the relationship between Zce and Zcf
3 years ago
Weiwei Li
00066cb365
Fix the relationship between Zce and Zcf
3 years ago