aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-01-31fix regex fpr pseudo op lookup to ensure that we don't hit on substringsNeel Gala1-1/+1
2023-01-31Add AIA registers (#143)i2h21-1/+35
2023-01-31Emit SLLI_RV128 etc. (and SLLI_RV32 etc. while we're at it)Andrew Waterman1-1/+4
2023-01-31Fix backwards incompatibility introduced by RV128 opcodes in #112Andrew Waterman3-10/+9
Adding RV128 shift opcodes changed what metadata we emit for SLLI, SRLI, and SRAI. Thus, downstream tooling that relies on these to connote the RV64 variants of these instructions is semantically affected. Fix by reverting SLLI etc. to being the RV64 variants.
2023-01-31Rename RV128 shamt to shamtqAndrew Waterman2-4/+5
This will reduce the chance that people pick the wrong shamt width.
2023-01-31Add (unratified) ZiCond extension (#152)Philipp Tomsich1-0/+3
2023-01-30Merge pull request #156 from adurbin-rivos/svaduAndrew Waterman2-1/+5
svadu
2023-01-26Update encoding.h.out's copyright year.Aaron Durbin1-1/+1
It's a new year. Make the copyright clause reflect 2023.
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.
2023-01-14Merge pull request #155 from riscv/fix-issues-from-153Andrew Waterman4-6/+21
Fix issues from #153
2023-01-14updated readmeNeel Gala1-0/+9
2023-01-14rv32_i shift pseudo ops should depend on rv64_i (not rv128_i)Neel Gala1-0/+3
2023-01-14adding pseudo_ops for shift-ops where the mnemonics remain the sameNeel Gala2-3/+6
2023-01-14indenting logs for better readabilityNeel Gala1-2/+2
2023-01-14fix regex fpr pseudo op lookup to ensure that we don't hit on substringsNeel Gala1-1/+1
2023-01-12Add AIA registers (#143)i2h21-1/+35
2023-01-12Merge pull request #153 from riscv/undo-rv128-breakageAndrew Waterman5-12/+15
Fix backwards incompatibility introduced by RV128 opcodes in #112
2023-01-12Emit SLLI_RV128 etc. (and SLLI_RV32 etc. while we're at it)Andrew Waterman1-1/+4
2023-01-12Fix backwards incompatibility introduced by RV128 opcodes in #112Andrew Waterman3-10/+9
Adding RV128 shift opcodes changed what metadata we emit for SLLI, SRLI, and SRAI. Thus, downstream tooling that relies on these to connote the RV64 variants of these instructions is semantically affected. Fix by reverting SLLI etc. to being the RV64 variants.
2023-01-12Rename RV128 shamt to shamtqAndrew Waterman2-4/+5
This will reduce the chance that people pick the wrong shamt width.
2023-01-11Add (unratified) ZiCond extension (#152)Philipp Tomsich1-0/+3
2023-01-04Merge pull request #151 from eflaner/masterNeel Gala3-4/+4
Fix pack instruction in unratified/rv_zbpbo
2023-01-04Update READMEBabu P S2-3/+3
2023-01-03Fix pack instruction in rv_zbpboBabu P S1-1/+1
pack instruction should be imported from zbe -- instead of zbp. Signed-off-by: Babu P S <11073327+eflaner@users.noreply.github.com>
2022-12-12Merge pull request #148 from eflaner/patch-1Neel Gala1-2/+0
Removing import of csrrs and crrci in rv_zpn
2022-12-12Removing import of csrrs and crrci in rv_zpnBabu P S1-2/+0
Removing import of csrrs and crrci as the instruction's pseudo opcode for is already included. Signed-off-by: Babu P S <11073327+eflaner@users.noreply.github.com>
2022-12-07updating opcodes of riscv-p-spec - v0.9.11 (c3409c8) (#147)Babu P S10-330/+325
* Correction of riscv-p-spec opcodes - Reorganized 'p' into sub-extensions zpn, zpfs & zbpbo - Some instructions such as insb, smmul has been rearranged according XLEN. * removed rv_m in rv32_zbpbp + newline additions Co-authored-by: Babu P S <babu.ps@incoresemi.com>
2022-11-17Add support for Zc* extensions (#107)liweiwei906-1/+35
2022-10-05Merge pull request #144 from sequencer/masterAndrew Waterman1-14/+16
support import parse.py from other python script.
2022-10-05support import parse.py from other python script.Jiuyang Liu1-14/+16
This PR changes opcodes_dir to the REAL path of parse.py. It helps python scripts which depends on parse.py can be stored in other place, using PYTHONPAT or sys.path to import from riscv-opcodes/parse.
2022-08-28Make path to encoding.h relative to script (#141)Florian Zaruba1-1/+1
That allows for running the script out-of-tree. Signed-off-by: Florian Zaruba <florian@zaruba.email> Signed-off-by: Florian Zaruba <florian@zaruba.email>
2022-08-23Add copyright holder to the generated file (#140)Antonio Borneo1-0/+2
The BSD-3-Clause license mentions a copyright notice that has to be retained while redistributing the source code. Copy the copyright notice from LICENSE file to the script, so it get in the generated file. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
2022-08-18Change to BSD-3-Clause license, and copyright holder. (#139)Tim Newsome2-19/+16
This removes the language about patents that was added in #133. Change copyright holder to RISC-V International.
2022-08-04fix extension merge and add name and encoding conflict checking (#116)Lehua Ding1-5/+33
* fix extension merge and add name and encoding conflict checking * fix comments * uniform code's indentation
2022-07-22Move the SPDX tag to the first line (#137)Antonio Borneo2-6/+6
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-09Merge pull request #135 from a4lg/fence.tso-generalizedAndrew Waterman1-1/+1
Generalize `fence.tso` instruction
2022-07-09Generalize fence.tso instructionTsukasa OI1-1/+1
Since `fence.tso' instruction is encoded as a FENCE instruction with fm=1000, predecessor=RW, and successor=RW (as per the ISA Manual), `fence.tso' is generalized to have unused rs1 and rd operands (shall be zero on standard software).
2022-07-06Remove UCB HTIF-specific interrupt from encoding.hAndrew Waterman1-1/+0
2022-07-06Merge pull request #134 from liweiwei90/plct-smstateen-opcodesAndrew Waterman1-0/+39
add field definition for stateen csrs
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 Newsome2-12/+14
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-06-27Add unratified 'Zawrs' extension (V1.0-rc2) (#129)Tsukasa #01 (a4lg)1-0/+2
This work is based on Zawrs fast-track extension, version 1.0-rc2. <https://github.com/riscv/riscv-zawrs/releases/tag/V1.0-rc2>
2022-06-27Add 'Zihintntl' non-temporal locality hints (v0.2) (#130)Tsukasa #01 (a4lg)2-0/+8
This work is based on the latest ISA Manual: <https://github.com/riscv/riscv-isa-manual/releases/tag/draft-20220622-c3b7d92>
2022-06-27Merge pull request #128 from a4lg/s-exts-csrsAndrew Waterman1-0/+58
Add CSRs from ratified S* extensions
2022-06-27Add 'Sstc' standard extension CSRsTsukasa OI1-0/+6
cf. <https://github.com/riscv/riscv-time-compare/releases/tag/v0.5.4>
2022-06-27Add 'Sscofpmf' standard extension CSRsTsukasa OI1-0/+32
cf. <https://github.com/riscv/riscv-count-overflow/releases/tag/v0.5.2>
2022-06-27Add 'Smstateen' standard extension CSRsTsukasa OI1-0/+20
cf. <https://github.com/riscv/riscv-state-enable/releases/tag/v1.0.0>
2022-06-10Fix incorrect encoding output in instr_dict.yaml. (#127)Kieran Siek1-1/+1
Making a shallow copy of the list prevents updating the final encoding output when checking for field overlap. Incorrect: encoding: 0000000rs2rs2rs2rs2rs2rs1rs1rs1rs1rs1000rdrdrdrdrd0110011 Correct: encoding: 0000000----------000-----0110011