没有合适的资源?快使用搜索试试~ 我知道了~
RISCV指令集原版-卷2-特权指令集v1.12
需积分: 43 20 下载量 97 浏览量
2020-05-18
17:51:51
上传
评论
收藏 656KB PDF 举报
温馨提示
RISCV指令集原版-卷2-特权指令集v1.12 英文原版 The RISC-V Instruction Set Manual Volume II: Privileged Architecture Document Version 1.12-draft
资源推荐
资源详情
资源评论
The RISC-V Instruction Set Manual
Volume II: Privileged Architecture
Document Version 1.12-draft
Editors: Andrew Waterman
1
, Krste Asanovi´c
1,2
1
SiFive Inc.,
2
CS Division, EECS Department, University of California, Berkeley
andrew@sifive.com, krste@berkeley.edu
February 29, 2020
Contributors to all versions of the spec in alphabetical order (please contact editors to suggest
corrections): Krste Asanovi´c, Peter Ashenden, Rimas Aviˇzienis, Jacob Bachmeyer, Allen J. Baum,
Jonathan Behrens, Paolo Bonzini, Ruslan Bukin, Christopher Celio, Chuanhua Chang, David Chis-
nall, Anthony Coulter, Palmer Dabbelt, Monte Dalrymple, Dennis Ferguson, Marc Gauthier, Andy
Glew, Gary Guo, Mike Frysinger, John Hauser, David Horner, Olof Johansson, David Kruckemyer,
Yunsup Lee, Andrew Lutomirski, Prashanth Mundkur, Jonathan Neusch¨afer, Rishiyur Nikhil, Ste-
fan O’Rear, Albert Ou, John Ousterhout, David Patterson, Dmitri Pavlov, Kade Phillips, Josh
Scheid, Colin Schmidt, Michael Taylor, Wesley Terpstra, Matt Thomas, Tommy Thorn, Ray Van-
DeWalker, Megan Wachs, Steve Wallach, Andrew Waterman, Clifford Wolf, and Reinoud Zandijk.
This document is released under a Creative Commons Attribution 4.0 International License.
This document is a derivative of the RISC-V privileged specification version 1.9.1 released under
following license:
c
2010–2017 Andrew Waterman, Yunsup Lee, Rimas Aviˇzienis, David Patterson,
Krste Asanovi´c. Creative Commons Attribution 4.0 International License.
Please cite as: “The RISC-V Instruction Set Manual, Volume II: Privileged Architecture, Document
Version 1.12-draft”, Editors Andrew Waterman and Krste Asanovi´c, RISC-V Foundation, June
2019.
Preface
This is a draft of version 1.12 of the RISC-V privileged architecture proposal. The document
contains the following versions of the RISC-V ISA modules:
Module Version Status
Machine ISA 1.12 Draft
Supervisor ISA 1.12 Draft
Hypervisor ISA 0.6 Draft
N Extension 1.1 Draft
The Machine and Supervisor ISAs, version 1.11, have been ratified by the RISC-V Foundation.
Version 1.12 of these modules, described in this document, is a minor revision to version 1.11.
The following changes have been made since version 1.11, which, while not strictly backwards
compatible, are not anticipated to cause software portability problems in practice:
• Changed MRET and SRET to clear mstatus.MPRV when leaving M-mode.
• Reserved additional satp patterns for future use.
• Stated that the scause Exception Code field must implement bits 4–0 at minimum.
• Relaxed I/O regions have been specified to follow RVWMO. The previous specification implied
that PPO rules other than fences and acquire/release annotations did not apply.
• Constrained the LR/SC reservation set size and shape when using page-based virtual memory.
Additionally, the following compatible changes have been made since version 1.11:
• Defined the RV32-only CSR mstatush, which contains most of the same fields as the upper
32 bits of RV64’s mstatus.
• Permitted the unconditional delegation of less-privileged interrupts.
• Added optional big-endian and bi-endian support.
Finally, the hypervisor architecture proposal has been extensively revised.
i
ii Volume II: RISC-V Privileged Architectures V1.12-draft
Preface to Version 1.11
This is version 1.11 of the RISC-V privileged architecture. The document contains the following
versions of the RISC-V ISA modules:
Module Version Status
Machine ISA 1.11 Ratified
Supervisor ISA 1.11 Ratified
Hypervisor ISA 0.3 Draft
Changes from version 1.10 include:
• Moved Machine and Supervisor spec to Ratified status.
• Improvements to the description and commentary.
• Added a draft proposal for a hypervisor extension.
• Specified which interrupt sources are reserved for standard use.
• Allocated some synchronous exception causes for custom use.
• Specified the priority ordering of synchronous exceptions.
• Added specification that xRET instructions may, but are not required to, clear LR reserva-
tions if A extension present.
• The virtual-memory system no longer permits supervisor mode to execute instructions from
user pages, regardless of the SUM setting.
• Software is strongly recommended to allocate ASIDs globally, so that a future extension can
globalize ASIDs for improved performance and hardware flexibility.
• SFENCE.VMA semantics have been clarified.
• Made the mstatus.MPP field WARL, rather than WLRL.
• Made the unused xip fields WPRI, rather than WIRI.
• Made the unused misa fields WLRL, rather than WIRI.
• Made the unused pmpaddr and pmpcfg fields WARL, rather than WIRI.
• Required all harts in a system to employ the same PTE-update scheme as each other.
• Rectified an editing error that misdescribed the mechanism by which mstatus.xIE is written
upon an exception.
• Described scheme for emulating misaligned AMOs.
• Specified the behavior of the misa and xepc registers in systems with variable IALIGN.
• Specified the behavior of writing self-contradictory values to the misa register.
• Defined the mcountinhibit CSR, which stops performance counters from incrementing to
reduce energy consumption.
• Specified semantics for PMP regions coarser than four bytes.
• Specified contents of CSRs across XLEN modification.
• Moved PLIC chapter into its own document.
Volume II: RISC-V Privileged Architectures V1.12-draft iii
Preface to Version 1.10
This is version 1.10 of the RISC-V privileged architecture proposal. Changes from version 1.9.1
include:
• The previous version of this document was released under a Creative Commons Attribution
4.0 International License by the original authors, and this and future versions of this document
will be released under the same license.
• The explicit convention on shadow CSR addresses has been removed to reclaim CSR space.
Shadow CSRs can still be added as needed.
• The mvendorid register now contains the JEDEC code of the core provider as opposed to
a code supplied by the Foundation. This avoids redundancy and offloads work from the
Foundation.
• The interrupt-enable stack discipline has been simplified.
• An optional mechanism to change the base ISA used by supervisor and user modes has been
added to the mstatus CSR, and the field previously called Base in misa has been renamed
to MXL for consistency.
• Clarified expected use of XS to summarize additional extension state status fields in mstatus.
• Optional vectored interrupt support has been added to the mtvec and stvec CSRs.
• The SEIP and UEIP bits in the mip CSR have been redefined to support software injection
of external interrupts.
• The mbadaddr register has been subsumed by a more general mtval register that can now
capture bad instruction bits on an illegal instruction fault to speed instruction emulation.
• The machine-mode base-and-bounds translation and protection schemes have been removed
from the specification as part of moving the virtual memory configuration to sptbr (now
satp). Some of the motivation for the base and bound schemes are now covered by the PMP
registers, but space remains available in mstatus to add these back at a later date if deemed
useful.
• In systems with only M-mode, or with both M-mode and U-mode but without U-mode
trap support, the medeleg and mideleg registers now do not exist, whereas previously they
returned zero.
• Virtual-memory page faults now have mcause values distinct from physical-memory access
exceptions. Page-fault exceptions can now be delegated to S-mode without delegating excep-
tions generated by PMA and PMP checks.
• An optional physical-memory protection (PMP) scheme has been proposed.
• The supervisor virtual memory configuration has been moved from the mstatus register to
the sptbr register. Accordingly, the sptbr register has been renamed to satp (Supervisor
Address Translation and Protection) to reflect its broadened role.
• The SFENCE.VM instruction has been removed in favor of the improved SFENCE.VMA
instruction.
• The mstatus bit MXR has been exposed to S-mode via sstatus.
• The polarity of the PUM bit in sstatus has been inverted to shorten code sequences involving
MXR. The bit has been renamed to SUM.
• Hardware management of page-table entry Accessed and Dirty bits has been made optional;
simpler implementations may trap to software to set them.
剩余134页未读,继续阅读
资源评论
fastwind1985
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Magica Cloth 2 V 2.13布料模拟插件
- 基于SpringBoot的在线考试系统源代码全套技术资料.zip
- 运行在PostgreSQL中的AdventureWorks示例数据库
- 最新女神大秀直播间打赏视频付费观看网站源码 自带直播数据
- 客户购物 (最新趋势) 数据集
- 配电网优化模型matlab 考虑可转移负荷、中断负荷以及储能、分布式能源的33节点系统优化模型,采用改进麻雀搜索算法,以IEEE33节点为例,以风电运维成本、网损成本等为目标,得到系统优化结果,一共有
- MATLAB代码:基于条件风险价值的合作型Stackerlberg博弈微网动态定价与优化调度 关键词:微网优化调度 条件风险价值 合作博弈 纳什谈判 参考文档:A cooperative Stack
- 述职报告PPT模板及样例文章
- MATLAB代码:基于分布式优化的多产消者非合作博弈能量共享 关键词:分布式优化 产消者 非合作博弈 能量共享 仿真平台: matlab 主要内容:为了使光伏用户群内各经济主体能实现有序的电能交易
- 学生抑郁数据集-可以用于分析学生的心理健康趋势
- CRUISE纯电动车双电机四驱仿真模型,基于simulink DLL联合仿真模型,实现前后电机效率最优及稳定性分配 关于模型: 1.策略是用64位软件编译的,如果模型运行不了请将软件切成64位 切
- Android程序开发初级教程WORD文档doc格式最新版本
- cruise混动仿真,P2并联混动仿真模型,Cruise混动仿真模型,可实现并联混动汽车动力性经济性仿真 关于模型 1.模型是基于cruise simulink搭建的base模型,策略模型基于MAT
- HCIP 复习内容实验 ia
- BGP路由协议模拟器,网络路由条目实时监控
- MATLAB代码:含多种需求响应及电动汽车的微网 电厂日前优化调度 关键词:需求响应 空调负荷 电动汽车 微网优化调度 电厂调度 仿真平台:MATLAB+CPLEX 主要内容:代码主要做的是一
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功