Skip to content

修正文档中CSRRSI的笔误#6

Open
peter2500zz wants to merge 4 commits into
ISRC-CAS:masterfrom
peter2500zz:Fix_rename_csrri_to_csrrsi
Open

修正文档中CSRRSI的笔误#6
peter2500zz wants to merge 4 commits into
ISRC-CAS:masterfrom
peter2500zz:Fix_rename_csrri_to_csrrsi

Conversation

@peter2500zz
Copy link
Copy Markdown

由于不存在 CSRRI 指令,且原文该位置是 CSRRSI,将两处 CSRRI 修正为了原文中的 CSRRSI

而不是来自一个整数寄存器。对于CSRRI和CSRRCI,如果uimm[4:0]域是零,那么这些指令将不会写CSR,

% register. For CSRRSI and CSRRCI, if the uimm[4:0] field is zero, then

\item $i$是一个CSR指令,且在$i$的操作码中,{\em csr}被设置为$r$(除非$i$是CSRRS或CSRRC,并且{\em rs1}被设置为{\em x0};或者$i$是CSRRI或CSRRCI,并且uimm[4:0]被设置为0) % $i$ is a CSR instruction, and in the opcode of $i$, {\em csr} is set to $r$, unless $i$ is CSRRS or CSRRC and {\em rs1} is set to {\tt x0} or $i$ is CSRRSI or CSRRCI and uimm[4:0] is set to zero.

@LiYonglei-0x0U
Copy link
Copy Markdown

LiYonglei-0x0U commented May 11, 2026 via email

@peter2500zz
Copy link
Copy Markdown
Author

此处应是将寄存器rs2中的一个32位值存储到内存,而不是存储到寄存器rs2中

C.SWSP把一个32位的值存储到寄存器{\em rs2}中。它通过将{\em 零}扩展的偏移量扩大4倍,加到栈指针{\tt x2}上,
来计算出有效地址。它扩展到{\tt sw rs2, offset(x2)}。
% C.SWSP stores a 32-bit value in register {\em rs2} to memory. It computes
% an effective address by adding the {\em zero}-extended offset, scaled by 4, to
% the stack pointer, {\tt x2}.
% It expands to {\tt sw rs2, offset(x2)}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants