Skip to content

Commit

Permalink
CSetBoundsRoundDown archdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf committed Nov 19, 2024
1 parent d80eb02 commit db662a3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions archdoc/app-isaquick-riscv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ \chapter{Instruction encoding summary}

\rvcheriisaquick{CSetBoundsExact}

\rvcheriisaquick{CSetBoundsRoundDown}

\rvcheriisaquick{CSetBoundsImm}

\rvcheriisaquick{CSetHigh}
Expand Down
1 change: 1 addition & 0 deletions archdoc/chap-changes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ \chapter{Version history}
\item[\ghissue{71}, \ghpr{87}] \rvcheriasminsnref{CUnseal} now no longer requires exact equality between sealed input otype and authority address.
Instead, it merely requires that the otype of the sealed input is within bounds to yield a tagged result.
The address of a sealing-root capability is now meaningful only to \rvcheriasminsnref{CSeal}.
\item[\ghissue{72},\ghpr{74}] Introduce \rvcheriasminsnref{CSetBoundsRoundDown} to facilitate constructing representable slices of buffers.
\end{description}
\end{description}
3 changes: 3 additions & 0 deletions archdoc/chap-encoding-sail.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ \chapter{Sail listings for capability encoding}
\medskip
\sailRISCVfnsetCapBounds

\medskip
\sailRISCVfnsetCapBoundsRoundDown

\medskip
\sailRISCVfngetRepresentableAlignmentMask

Expand Down
2 changes: 2 additions & 0 deletions archdoc/chap-isaref-riscv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ \subsection*{Functions for manipulating capabilities}

\medskip
\sailRISCVval{setCapBounds}
\sailRISCVval{setCapBoundsRoundDown}
\sailRISCVval{setCapAddr}
\sailRISCVval{incCapAddr}
% \sailRISCVval{setCapOffset}
Expand Down Expand Up @@ -305,6 +306,7 @@ \section{\cherimcu{} Instructions}
\input{insn-riscv/csetaddr}
\input{insn-riscv/csetbounds}
\input{insn-riscv/csetboundsexact}
\input{insn-riscv/csetboundsrounddown}
\input{insn-riscv/csetboundsimm}
\input{insn-riscv/csetequalexact}
\input{insn-riscv/csethigh}
Expand Down
1 change: 1 addition & 0 deletions archdoc/def-riscv-insns.tex
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
\rvcherisrcsrcdestimm[name=CIncAddrImm]{1}{cd}{cs1}{imm}
\rvcherisrcsrcdest[name=CSetBounds]{8}{cd}{cs1}{rs2}
\rvcherisrcsrcdest[name=CSetBoundsExact]{9}{cd}{cs1}{rs2}
\rvcherisrcsrcdest[name=CSetBoundsRoundDown]{A}{cd}{cs1}{rs2}
\rvcherisrcsrcdestimm[name=CSetBoundsImm]{2}{cd}{cs1}{uimm}
\rvcherisrcsrcdest[name=CSetHigh]{16}{cd}{cs1}{rs2}
\rvcherisrcdest[name=CClearTag]{B}{cd}{cs1}
Expand Down
16 changes: 16 additions & 0 deletions archdoc/insn-riscv/csetboundsrounddown.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
\clearpage
\phantomsection
\addcontentsline{toc}{subsection}{CSetBoundsRoundDown}
\insnriscvlabel{csetboundsrounddown}
\subsection*{CSetBoundsRoundDown}

\subsubsection*{Format}

\rvcheriasm{CSetBoundsRoundDown}

\begin{center}
\rvcheriheader
\rvcheribitbox{CSetBoundsRoundDown}
\end{center}

\sailRISCVisarefbody{CSetBoundsRoundDown}

0 comments on commit db662a3

Please sign in to comment.