aboutsummaryrefslogtreecommitdiff
path: root/encoding.h
AgeCommit message (Collapse)AuthorFilesLines
26 hoursFix definition of mcontrol.actionYenHaoChen1-1/+1
12 daysAdd extended cause codes in DCSRVed Shanbhogue1-0/+3
2024-07-01Add pointer masking related CSR fields (#256)YenHaoChen1-0/+5
2024-06-04Fix typo in CTR bitfield definition (#253)Ved Shanbhogue1-2/+2
2024-06-04Add unratified Smctr/Ssctr instructions and CSRs (#252)Ved Shanbhogue1-0/+71
2024-05-05Add unratified Ssdbltrp and Smdbltrp fields (#238)Ved Shanbhogue1-7/+18
* Add Ssdbltrp, Smdbltrp, and Sddbltrp fields * Add Ssdbltrp, Smdbltrp, and Sddbltrp fields * renasme pcerr to cetrig; fix fields of dcsr to match 1.0 spec
2024-05-01Add shadow stack fault codeAndrew Waterman1-0/+1
2024-04-10Add mstateen0[60] for Smcsrind/Sscsrind (#241)YenHaoChen1-0/+4
Signed-off-by: Andrew Waterman <andrew@sifive.com> Co-authored-by: Andrew Waterman <andrew@sifive.com>
2024-04-10Add stateen0[59] for AIA (#242)YenHaoChen1-0/+4
2024-02-26Add definition of low-priority and high-priority RAS event from AIA (#234)YenHaoChen1-15/+19
2024-02-21Add CSR fields of mtopiYenHaoChen1-0/+3
2024-02-18Remove erroneous MSTATEEN0[H]_HENVCFGH macros (#230)Andrew Waterman1-2/+0
MSTATEEN0[H]_HENVCFG should be used instead. Resolves #229
2024-02-15Add CSR fields of hvictl (#228)YenHaoChen1-0/+6
2024-02-03Add Zicfilp codes (#225)mylai-mtk1-0/+3
2023-12-25update mstateen0 fields (#218)Ved Shanbhogue1-1/+4
2023-12-23add srmcfg CSRVed Shanbhogue1-0/+4
2023-11-27CSR fields introduced by Zicfilp (#210)Ved Shanbhogue1-0/+8
2023-11-24CSR fields introduced by ZicfissVed Shanbhogue1-0/+3
2023-08-13Svadu: Rename HADE to ADUEVed Shanbhogue1-4/+4
2023-07-12Add Smcdeleg CSR+constantsAtul Khare1-0/+13
Adds CSR scountinhibit (0x120), MSTATEEN0.CD (bit 56), and siselect range (0x40 - 0x5F).
2023-03-16Add Snrmni CSR and field definitionsAndrew Waterman1-0/+4
2023-01-26Add support for SvaduAaron Durbin1-0/+4
The Svadu extension (https://github.com/riscv/riscv-svadu) adds the HADE bit (61) to menvcfg and henvcfg CSRs to control updating of the A/D bits in the PTE. Provide the bit encodings for the HADE support.
2022-11-17Add support for Zc* extensions (#107)liweiwei901-0/+7
2022-07-22Move the SPDX tag to the first line (#137)Antonio Borneo1-2/+0
Linux kernel coding style requires the SPDX tag to be placed in the very first line of the generated file. See kernel file Documentation/process/license-rules.rst at chapter 'License identifier syntax', '1. Placement:'. Move the SPDX tag in the python script. While there, adjust also the style of the multi-line comment. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
2022-07-06Remove UCB HTIF-specific interrupt from encoding.hAndrew Waterman1-1/+0
2022-07-04add field definition for MIP/SIP csrs added by Sscofpmf extensionWeiwei Li1-0/+2
2022-07-04add field definition for mhpmevent csrs added by Sscofpmf extensionWeiwei Li1-0/+14
2022-07-02add field definition for stateen csrsWeiwei Li1-0/+23
2022-06-30Change license to BSD-3-Clause-Clear (#133)Tim Newsome1-1/+1
Previously the license was a hybrid between the conditions form BSD-3-Clause-Clear and the disclaimer from MIT-Modern-Variant. Using a standard license makes it easier to include the generated code into other open source projects.
2022-03-28Define HGATP_MODE_SV57X4 for Sv57x4 translation modeAndrew Waterman1-0/+1
2021-12-16Add new CSR bits defined in Privileged Spec version 1.12 (#94)Tsukasa #01 (a4lg)1-0/+31
2021-11-02Remove no-longer-used SSTATUS_VS_MASKScott Johnson1-4/+0
Spike removed this in https://github.com/riscv-software-src/riscv-isa-sim/commit/60243a3bf9f86de5b8b58807ae218f1e3aedc31c I checked other uses of encoding.h (riscv-pk, riscv-test-env, riscv-openocd), and confirmed that none of them use this value.
2021-11-02Add new hypervisor bits to mstatushScott Johnson1-0/+2
In Spike, I added these by hand in https://github.com/riscv-software-src/riscv-isa-sim/commit/4730be82e63ec8bf4a30aa59afee5e5b58a0fbe4
2021-07-19Virtual memory updates (#76)Daniel Lustig1-0/+3
* Add Svinval instructions * Add PTE defines for Priv 1.12 and Svpbmt
2021-06-07Update PTE_N encodingAndrew Waterman1-1/+1
See https://github.com/riscv/riscv-isa-sim/pull/724
2021-01-23Removing platform-specific definitions (#59)Dan Petrisko1-6/+0
2021-01-08Add Zsn to encoding.hAndrew Waterman1-0/+1
2021-01-08Update mstatus/sstatus fields for hypervisor v0.6Andrew Waterman1-2/+8
2020-07-31hyperviosr: add csr mask and interrupt macro nameChih-Min Chao1-7/+46
This part copy the implementation which has been merged in spike Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2020-05-04Add DCSR_CAUSE_GROUP. (#44)Tim Newsome1-0/+1
2020-02-24Add N-extension CSRs and status bits. (#37)michael-roe1-0/+9
2020-02-13Remove mstatus.HPP; move mstatus.VS to its old locationAndrew Waterman1-3/+2
See https://github.com/riscv/riscv-v-spec/pull/351
2019-11-28rvv: add vleb csr register and mstatus.vs fieldChih-Min Chao1-0/+2
1. vleb is read-only CSR to keep vector implementation lenght in byte 2. mstatus.vs is similar to mstatus.fs and designed to keep vector extension state Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2017-12-27Use old C style comments. (#18)Tim Newsome1-11/+11
This improves the chance we can use this file with older, pickier compilers. Also it makes the OpenOCD patch check script happier.
2017-11-27Rename sptbr to satp and sbadaddr to stvalAndrew Waterman1-15/+15
Closes #17
2017-05-07Add UXl/SXLAndrew Waterman1-0/+3
2017-03-30New PMP encodingAndrew Waterman1-5/+6
2017-03-27Separate page faults from physical memory access exceptionsAndrew Waterman1-3/+2
2017-03-23Add PMPAndrew Waterman1-1/+12
2017-03-23Add TW/TVM/TSR fields to mstatusAndrew Waterman1-1/+4