Andrew Waterman
52f045d9ba
Lift restriction on physical-address size
It remains true that PTEs can only represent addresses >= 2^56, but there's
no need to impose that constraint on untranslated accesses.
2 years ago
Andrew Waterman
16870946ed
Use create_mem_region for legacy -m argument
2 years ago
Andrew Waterman
eb85c33899
Check size_t bounds overflow in create_mem_region
2 years ago
Andrew Waterman
1b33b5426b
Factor out create_mem_region from parse_mem_layout
2 years ago
Andrew Waterman
60f02dd1d8
Merge pull request #1786 from YenHaoChen/pr-mcontrol
triggers: Let mcontrol.match be default (0/equal) if maskmax is 0
2 years ago
Jerry Zhao
eb07f100a3
Use cmdline --priv flag when parsing proc configurations from DTB
2 years ago
YenHaoChen
1510a6e461
triggers: Let mcontrol.match be default (0/equal) if maskmax is 0
2 years ago
YenHaoChen
d13dc0b3e3
triggers: mcontrol: refactor: Add mcontrol_t::maskmax
2 years ago
Andrew Waterman
20cd44ade6
Merge pull request #1784 from YenHaoChen/pr-pm
pointer masking: Pointer masking does not apply when MXR=1 regardless of MPRV in v1.0.0-rc2
2 years ago
YenHaoChen
71bdc3bbd1
pointer masking: Pointer masking does not apply when MXR=1 regardless of MPRV in v1.0.0-rc2
Reference: https://github.com/riscv/riscv-j-extension/issues/70
2 years ago
Andrew Waterman
1b80449f01
Merge pull request #1783 from riscv-software-src/fix-1782
Fix exception priority for RV32E JAL[R], loads, AMOs
2 years ago
Andrew Waterman
73bc67839a
Fix exception priority for RV32E JAL/JALR
2 years ago
Andrew Waterman
5efbfcbfa4
Fix exception priority for RV32E loads and AMOs
2 years ago
Andrew Waterman
c72eca8687
Refactor insn_template to be more DRY
2 years ago
Tim Newsome
a1506ec006
For mcontrol6, default to BEFORE timing.
The existing implementation would end up using AFTER even for
instruction execute and data store triggers, which is not desirable.
2 years ago
Andrew Waterman
a8c9d9ccb1
Merge pull request #1771 from rtwfroody/match_mask
Fix mcontrol6 mask low/high operations.
2 years ago
Tim Newsome
1a15805b94
Fix mcontrol6 mask low/high operations.
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
2 years ago
Andrew Waterman
f09b02460e
Merge pull request #1722 from ved-rivos/smdbltrp
Add Smdbltrp
2 years ago
Andrew Waterman
33d80b40d6
Merge pull request #1776 from YenHaoChen/pr-pm
pointer masking: Fix: Let transformed_addr of fetching be unchanged
2 years ago
YenHaoChen
0648ab40fc
pointer masking: refactor: Use xlen to avoid sketchy, hardcoded number 64
2 years ago
YenHaoChen
38330930da
pointer masking: Fix: Let transformed_addr of fetching be unchanged
The transformation does not apply to implicit accesses such as instruction fetches.
2 years ago
Andrew Waterman
bfe9173c28
Merge pull request #1769 from riscv-software-src/b-ordering
Fix ordering of B single-letter extension
2 years ago
Jerry Zhao
183a2d0a73
Merge pull request #1770 from YenHaoChen/pr-sim
Fix a typo in f11bd7b (Support parsing procs fully from DTS)
2 years ago
YenHaoChen
20a508244a
Fix a typo in f11bd7b511
2 years ago
Jerry Zhao
9031c7b651
Fix ordering of B single-letter extension
The canonical order is IMAFDQLCBKJTPVH
Signed-off-by: Jerry Zhao <jerryz123@berkeley.edu>
2 years ago
Andrew Waterman
6f28e4bee5
Merge pull request #1768 from riscv-software-src/commit-log-ordered
Use ordered map for commit log
2 years ago
Andrew Waterman
8b05d84ee9
Use ordered map for commit log
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
2 years ago
Andrew Waterman
91793ed7d9
Merge pull request #1764 from ved-rivos/exts
Update readme with recently included extensions
2 years ago
Ved Shanbhogue
c302e8bd16
Add Smdbltrp
2 years ago
Ved Shanbhogue
ddba69c980
update readme with extensions
2 years ago
Andrew Waterman
f70b03582f
Merge pull request #1763 from NXP/add-missing-extensions
Add implemented extensions to readme
2 years ago
Christian Herber
92833d1270
Add implemented extensions to readme
- Fixes #1761
2 years ago
Andrew Waterman
11fbcb52f4
Merge pull request #1758 from riscv-software-src/csr-init-fixes
Only supply CSRs if corresponding extensions are enabled
2 years ago
Andrew Waterman
1b53bf9364
Merge pull request #1760 from YenHaoChen/pr-mxr
Let MXR not affect implicit memory access for VS-stage address translation
2 years ago
YenHaoChen
e749bb0923
Let MXR not affect implicit memory access for VS-stage address translation
The behavior of MXR is clarified in https://github.com/riscv/riscv-isa-manual/pull/1543 .
2 years ago
Andrew Waterman
2890ea7212
Merge pull request #1759 from riscv-software-src/dts-api
Improve dts <-> dtb API
2 years ago
Andrew Waterman
1ecad57eae
Only add CSRs if corresponding extensions are enabled
2 years ago
Andrew Waterman
a81d59754f
Remove boilerplate from most CSR instantiations
2 years ago
Andrew Waterman
3c0e6bfa69
Refactor initialization of mode-specific CSRs
The if-statements are boilerplate.
2 years ago
Andrew Waterman
2597b4b4eb
Add CSRs through an interface, rather than mutating csrmap
2 years ago
Andrew Waterman
e98294c3c2
Move CSR initialization to its own file
2 years ago
Andrew Waterman
b9ecc1d4e5
In dtc_compile, use c string instead of stl string
2 years ago
Andrew Waterman
d9f21fc2db
Improve dts <-> dtb API
Avoid exposing the string args to the API.
2 years ago
Andrew Waterman
fdd2570fc4
Merge pull request #1721 from abejgonzalez/dts_parsing
Enable more configuration using the DTB
2 years ago
Andrew Waterman
62a2dd1d26
Merge pull request #1756 from riscv-software-src/clean-up-hpm
Avoid magic constants in hpmcounter implementation
2 years ago
Andrew Waterman
8e05766aa7
Merge pull request #1757 from riscv-software-src/fix-1755
Fix enabling hypervisor extension
2 years ago
Andrew Waterman
39ba3fe46d
Fix enabling hypervisor extension
I introduced a regression in #1753 .
Resolves #1755
2 years ago
Andrew Waterman
eb3ccab33e
Avoid magic constants in hpmcounter implementation
2 years ago
abejgonzalez
deeda9aa90
Fix trap interactive output
2 years ago
abejgonzalez
398101b53f
Generalize DTC compilation to support both DTS/B
2 years ago