aboutsummaryrefslogtreecommitdiff
path: root/riscv
AgeCommit message (Collapse)AuthorFilesLines
26 hoursadd missing sdt/sie interaction when writing mstatus directlyVed Shanbhogue1-3/+2
4 daysFix ignored-attributes warning for unique_ptr declarationJoseph Faulls1-1/+1
The attribute `__nonnull` was added to `fclose` in glibc 2.38, which causes a warning when using its `decltype` on a template argument.
5 daysupdate encoding.h to get rid of erroneous defineParshintsev Anatoly1-2/+2
2024-10-04Updated load/store pair for RV32 to v0.10Christian Herber6-6/+6
- renamed Zcmlsd to Zclsd - bumped version number
2024-10-02fix typosYang Hau3-4/+4
2024-09-27Merge pull request #1819 from riscv-software-src/ss-cbo-faultAndrew Waterman2-5/+6
Raise store/AMO access fault on CBO to shadow-stack page
2024-09-27refactor: Merge halt and halt_on_reset variables in processor_tYenHaoChen3-5/+2
2024-09-27refactor: Move halt out of dcsrYenHaoChen5-5/+4
Suggested in https://github.com/riscv-software-src/riscv-isa-sim/pull/1816#pullrequestreview-2331806142.
2024-09-26Raise store/AMO access fault on CBO to shadow-stack pageAndrew Waterman2-5/+6
Proliferating the access_flags isn't ideal, but it wasn't clear how better to handle this case.
2024-09-26Only enter debug mode once with -H flag (halt_on_reset)YenHaoChen1-0/+1
2024-09-18Merge pull request #1804 from ved-rivos/ssdbltrp_typoAndrew Waterman1-1/+1
Fix error in reading right sstatus
2024-09-17fix error in reading right sstatusVed Shanbhogue1-1/+1
2024-09-14Remove --with-priv compile flagJerry Zhao2-6/+1
2024-09-14Remove --with-isa compile-time optionJerry Zhao2-6/+1
2024-09-11Merge pull request #1796 from cyyself/tmp_mcountinhibitAndrew Waterman4-4/+19
add support for mcountinhibit CSR
2024-09-09Only implement one solution for native triggers.Tim Newsome2-15/+29
When S-mode is present, use option 1 (disable triggers in M-mode unless MIE is set) from the Debug Spec. When S-mode is not present, use option 2 (implement mte and mpte bits in tcontrol). See discussion in #1777.
2024-09-09triggers: Move allow_action() into common_match()Tim Newsome2-23/+28
They are always called together, and now we get the previous privilege behavior in both.
2024-09-05Make allow_action() take proc instead of stateTim Newsome2-6/+7
2024-09-05Work if tcontrol doesn't exist.Tim Newsome3-3/+10
2024-09-06add support for mcountinhibit CSRYangyu Chen4-4/+19
We hardwired mcountinihibit to 0 previously. Now, we implemented it. Signed-off-by: Yangyu Chen <cyy@cyyself.name>
2024-09-02Merge pull request #1788 from riscv-software-src/support-larger-addressesAndrew Waterman3-4/+7
Lift restriction on physical-address size
2024-08-30Merge pull request #1779 from rtwfroody/trigger_timingAndrew Waterman1-1/+8
For mcontrol6, default to BEFORE timing.
2024-08-29pointer masking: Always apply sstatus.MXR regardless of effective VYenHaoChen1-1/+1
ISA spec says "Setting MXR at HS-level overrides both VS-stage and G-stage execute-only permissions."
2024-08-28pointer masking: Consider effective v bit instead of current v bitYenHaoChen1-1/+1
A previous commit removes the effectiveness of MPRV to MXR. (https://github.com/riscv-software-src/riscv-isa-sim/pull/1784) However, the removal implies the MPRV affects point masking individually, and the MXR should consider the effective v bit.
2024-08-27Merge pull request #1787 from riscv-software-src/fix-cfg-privJerry Zhao1-1/+1
2024-08-27Lift restriction on physical-address sizeAndrew Waterman2-2/+3
It remains true that PTEs can only represent addresses >= 2^56, but there's no need to impose that constraint on untranslated accesses.
2024-08-27Check size_t bounds overflow in create_mem_regionAndrew Waterman1-2/+4
2024-08-27Merge pull request #1786 from YenHaoChen/pr-mcontrolAndrew Waterman2-6/+8
triggers: Let mcontrol.match be default (0/equal) if maskmax is 0
2024-08-27Use cmdline --priv flag when parsing proc configurations from DTBJerry Zhao1-1/+1
2024-08-27triggers: Let mcontrol.match be default (0/equal) if maskmax is 0YenHaoChen2-5/+6
2024-08-27triggers: mcontrol: refactor: Add mcontrol_t::maskmaxYenHaoChen2-1/+2
2024-08-26pointer masking: Pointer masking does not apply when MXR=1 regardless of ↵YenHaoChen1-1/+1
MPRV in v1.0.0-rc2 Reference: https://github.com/riscv/riscv-j-extension/issues/70
2024-08-23Fix exception priority for RV32E JAL/JALRAndrew Waterman3-0/+3
2024-08-23Fix exception priority for RV32E loads and AMOsAndrew Waterman1-1/+1
2024-08-23Refactor insn_template to be more DRYAndrew Waterman1-24/+23
2024-08-20For mcontrol6, default to BEFORE timing.Tim Newsome1-1/+8
The existing implementation would end up using AFTER even for instruction execute and data store triggers, which is not desirable.
2024-08-19Merge pull request #1771 from rtwfroody/match_maskAndrew Waterman1-4/+8
Fix mcontrol6 mask low/high operations.
2024-08-19Fix mcontrol6 mask low/high operations.Tim Newsome1-4/+8
I doubt this code was ever tested, and this change isn't tested either, because OpenOCD doesn't use this trigger type. This problem was reported in https://github.com/riscv/riscv-debug-spec/issues/1057
2024-08-18Merge pull request #1722 from ved-rivos/smdbltrpAndrew Waterman10-20/+92
Add Smdbltrp
2024-08-18pointer masking: refactor: Use xlen to avoid sketchy, hardcoded number 64YenHaoChen1-1/+2
2024-08-16pointer masking: Fix: Let transformed_addr of fetching be unchangedYenHaoChen1-4/+5
The transformation does not apply to implicit accesses such as instruction fetches.
2024-08-12Fix a typo in ↵YenHaoChen1-1/+1
https://github.com/riscv-software-src/riscv-isa-sim/pull/1721/commits/f11bd7b511d7909f0291589e3aaab720ededdc8a
2024-08-09Use ordered map for commit logAndrew Waterman1-1/+1
In general, unordered maps should not be used for iteration, only for lookups. In this case, using an ordered map guarantees that the order in which writes are logged is consistent for a given instruction. Resolves #1499
2024-08-07Add SmdbltrpVed Shanbhogue10-20/+92
2024-08-04Merge pull request #1758 from riscv-software-src/csr-init-fixesAndrew Waterman5-407/+398
Only supply CSRs if corresponding extensions are enabled
2024-08-05Let MXR not affect implicit memory access for VS-stage address translationYenHaoChen1-1/+1
The behavior of MXR is clarified in https://github.com/riscv/riscv-isa-manual/pull/1543.
2024-08-01Only add CSRs if corresponding extensions are enabledAndrew Waterman1-55/+57
2024-08-01Remove boilerplate from most CSR instantiationsAndrew Waterman2-62/+34
2024-08-01Refactor initialization of mode-specific CSRsAndrew Waterman1-20/+18
The if-statements are boilerplate.
2024-08-01Add CSRs through an interface, rather than mutating csrmapAndrew Waterman3-148/+156