Skip to content

Commit

Permalink
Remove MIPS-specific Sail and instruction reference commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdjhb committed Oct 5, 2022
1 parent 722ffcc commit f8da207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions chap-sail.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ \chapter{Sail Overview}

Types used in Sail:

\label{sailMIPSzbits}
\label{sailRISCVzbits}
\begin{itemize}
\item \isail{int} Sail integers are of arbitrary precision (therefore there are no overflows) but can be constrained using simple first-order constraints. As a common case integer range types can be defined using \isail{range(a,b)} to indicate an integer in the range $a$ to $b$ inclusive. Operations on integers repsect the constraints on their operands so, for example, if \isail{x} and \isail{y} have type \isail{range(a, b)} then \isail{x + y} has type \isail{range(a + a, b + b)}. Integer literals are written in decimal.
Expand All @@ -29,7 +28,7 @@ \chapter{Sail Overview}
The following operators and expression syntax are used in the Sail code:

\begin{itemize}
\item \label{sailRISCVznot}\label{sailMIPSznot}Boolean operators:
\item \label{sailRISCVznot}Boolean operators:
\isail{not}, \isail{|} (logical OR), \isail{&} (logical AND), \isail{^} (exclusive OR)

\item Integer operators:
Expand Down Expand Up @@ -66,7 +65,7 @@ \chapter{Sail Overview}
\item Foreach loop:

% XXX: for some reason sail generates a link to "to" for ccleartags/cloadtags
\begin{lstlisting}[language=sail,label=sailMIPSzto]
\begin{lstlisting}[language=sail,label=sailRISCVzto]
foreach(i from start_exp to end_exp) {
body
};
Expand Down
3 changes: 0 additions & 3 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@

\input{preamble-saildoc-macros}

\makesailcmds{sailMIPS}{sail_latex_mips}
\makesailcmds{sailRISCV}{sail_latex_riscv}

% Must be included later than setspace, otherwise all footnote hyperlinks
Expand Down Expand Up @@ -209,7 +208,6 @@
% Register names
\newcommand{\reg}[1]{{\bf R#1}} % MIPS register numbers
\newcommand{\creg}[1]{{\bf C#1}} % Capability register numbers
\newcommand{\mreg}[1]{{\bf \$#1}} % MIPS ABI register names
\newcommand{\PC}{{\bf PC}}
\newcommand{\SP}{{\bf SP}}
\newcommand{\EPC}{{\bf EPC}}
Expand Down Expand Up @@ -427,7 +425,6 @@
}
\newcommand{\@makeinsncmds}[1]{\@makeinsncmds@explicit{#1}{#1}}

\@makeinsncmds{mips}
\@makeinsncmds{riscv}

\newcommand{\definsnarch}[1]{\def\@definsnarch{#1}}
Expand Down

0 comments on commit f8da207

Please sign in to comment.