Skip to content

Commit 486330d

Browse files
committed
Include pointer to version of cheri-cap-lib used
1 parent 73d3589 commit 486330d

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PREVEOUS=../branches/20150624-cheri-architecture-1-13
44

55
SAIL_LATEX_RISCV_DIR=sail_latex_riscv
66

7-
SOURCES=$(wildcard *.tex insn-riscv/*.tex $(SAIL_LATEX_RISCV_DIR)/*.tex cheri_concentrate_listings/*.bsv) cheri.bib LICENSE LICENSE-sail-cheri-riscv LICENSE-sail-riscv
7+
SOURCES=$(wildcard *.tex insn-riscv/*.tex $(SAIL_LATEX_RISCV_DIR)/*.tex cheri_concentrate_listings/*.bsv cheri_concentrate_listings/*.tex) cheri.bib LICENSE LICENSE-sail-cheri-riscv LICENSE-sail-riscv
88
DIFFDIR=diff
99
DIFFTEX=$(SOURCES:%=${DIFFDIR}/%)
1010
DIFFPARAM=--type=UNDERLINE --packages=amsmath,hyperref --math-markup=1

app-cheri-concentrate-listings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ \chapter{CHERI Concentrate Listings}
22
\label{app:cheri-128-listings}
33

44
The cheri-cap-lib~\cite{CHERI-cheri-cap-lib} open-source library has been used in all of our open-source~\cite{CHERI-cheri-cpu,CHERI-Piccolo,CHERI-Flute,CHERI-Toooba} implementations and contains certain notable algorithms which have been highly optimised and verified to a significant degree.
5-
These algorithms are well documented by their contents, so several are reproduced in their current form here to serve as reference to anyone implementing CHERI Concentrate compression in any model or microarchitecture.
5+
These algorithms are well documented by their contents, so several are reproduced in their current form\footnote{\input{cheri_concentrate_listings/conc_version}} here to serve as reference to anyone implementing CHERI Concentrate compression in any model or microarchitecture.
66

77
\section{GetTop}
88
\label{sec:cheri-128-listings-gettop}

cheri_concentrate_listings/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.PHONY: all
2-
all: conc_getTopFat.bsv \
2+
all: conc_version.tex \
3+
conc_getTopFat.bsv \
34
conc_capInBounds.bsv \
45
conc_incOffsetFat.bsv \
56
conc_setAddress.bsv \
@@ -10,9 +11,12 @@ cheri-cap-lib:
1011

1112
cheri-cap-lib/CHERICC_Fat.bsv: cheri-cap-lib
1213

14+
conc_version.tex: cheri-cap-lib
15+
echo "\\url{https://github.com/CTSRD-CHERI/cheri-cap-lib/tree/$(shell git -C $< rev-parse --short HEAD)}" > $@
16+
1317
conc_%.bsv: cheri-cap-lib/CHERICC_Fat.bsv
1418
sed -n "/^function.*$*/,/^endfunction/p" $^ > $@
1519

1620
.PHONY: clean
1721
clean:
18-
rm -rf *.bsv
22+
rm -rf *.bsv conc_version.tex
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\url{https://github.com/CTSRD-CHERI/cheri-cap-lib/tree/618e844}

0 commit comments

Comments
 (0)