aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore14
-rw-r--r--build/.gitignore7
-rw-r--r--build/Makefile (renamed from Makefile)27
-rw-r--r--src/a.tex (renamed from a.tex)0
-rw-r--r--src/assembly.tex (renamed from assembly.tex)0
-rw-r--r--src/b.tex (renamed from b.tex)0
-rw-r--r--src/bbding.sty (renamed from bbding.sty)0
-rw-r--r--src/c.tex (renamed from c.tex)0
-rw-r--r--src/calling.tex (renamed from calling.tex)0
-rw-r--r--src/cfgstr.tex (renamed from cfgstr.tex)0
-rw-r--r--src/d.tex (renamed from d.tex)0
-rw-r--r--src/extensions.tex (renamed from extensions.tex)0
-rw-r--r--src/f.tex (renamed from f.tex)0
-rw-r--r--src/figs/PLIC-block-diagram.pdf (renamed from figs/PLIC-block-diagram.pdf)bin19588 -> 19588 bytes
-rw-r--r--src/figs/PLIC-interrupt-flow.pdf (renamed from figs/PLIC-interrupt-flow.pdf)bin18106 -> 18106 bytes
-rw-r--r--src/figs/halimps.pdf (renamed from figs/halimps.pdf)bin14439 -> 14439 bytes
-rw-r--r--src/figs/halmode.pdf (renamed from figs/halmode.pdf)bin15183 -> 15183 bytes
-rw-r--r--src/figs/privimps.pdf (renamed from figs/privimps.pdf)bin13446 -> 13446 bytes
-rw-r--r--src/figs/virtimps.pdf (renamed from figs/virtimps.pdf)bin15538 -> 15538 bytes
-rw-r--r--src/gmaps.tex (renamed from gmaps.tex)0
-rw-r--r--src/graffles/PLIC-block-diagram.graffle (renamed from graffles/PLIC-block-diagram.graffle)bin11052 -> 11052 bytes
-rw-r--r--src/graffles/PLIC-interrupt-flow.graffle (renamed from graffles/PLIC-interrupt-flow.graffle)bin3578 -> 3578 bytes
-rw-r--r--src/graffles/privimps.graffle (renamed from graffles/privimps.graffle)0
-rw-r--r--src/history.tex (renamed from history.tex)0
-rw-r--r--src/hypervisor.tex (renamed from hypervisor.tex)0
-rw-r--r--src/instr-table.tex (renamed from instr-table.tex)0
-rw-r--r--src/intro.tex (renamed from intro.tex)0
-rw-r--r--src/l.tex (renamed from l.tex)0
-rw-r--r--src/m.tex (renamed from m.tex)0
-rw-r--r--src/machine.tex (renamed from machine.tex)0
-rw-r--r--src/naming.tex (renamed from naming.tex)0
-rw-r--r--src/opcode-map.tex (renamed from opcode-map.tex)0
-rw-r--r--src/p.tex (renamed from p.tex)0
-rw-r--r--src/plic.tex (renamed from plic.tex)0
-rw-r--r--src/preamble.tex (renamed from preamble.tex)0
-rw-r--r--src/preface.tex (renamed from preface.tex)0
-rw-r--r--src/priv-csrs.tex (renamed from priv-csrs.tex)0
-rw-r--r--src/priv-history.tex (renamed from priv-history.tex)0
-rw-r--r--src/priv-insns.tex (renamed from priv-insns.tex)0
-rw-r--r--src/priv-instr-table.tex (renamed from priv-instr-table.tex)0
-rw-r--r--src/priv-intro.tex (renamed from priv-intro.tex)0
-rw-r--r--src/priv-preface.tex (renamed from priv-preface.tex)0
-rw-r--r--src/q.tex (renamed from q.tex)0
-rw-r--r--src/riscv-privileged.tex (renamed from riscv-privileged.tex)0
-rw-r--r--src/riscv-spec.bib (renamed from riscv-spec.bib)0
-rw-r--r--src/riscv-spec.tex (renamed from riscv-spec.tex)0
-rw-r--r--src/rv128.tex (renamed from rv128.tex)0
-rw-r--r--src/rv32.tex (renamed from rv32.tex)0
-rw-r--r--src/rv32e.tex (renamed from rv32e.tex)0
-rw-r--r--src/rv64.tex (renamed from rv64.tex)0
-rw-r--r--src/rvc-instr-table.tex (renamed from rvc-instr-table.tex)0
-rw-r--r--src/rvc-opcode-map.tex (renamed from rvc-opcode-map.tex)0
-rw-r--r--src/sbi.tex (renamed from sbi.tex)0
-rw-r--r--src/supervisor.tex (renamed from supervisor.tex)0
-rw-r--r--src/t.tex (renamed from t.tex)0
-rw-r--r--src/v.tex (renamed from v.tex)0
56 files changed, 22 insertions, 26 deletions
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index c7ee05f..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,14 +0,0 @@
-riscv-spec.aux
-riscv-spec.bbl
-riscv-spec.blg
-riscv-spec.log
-riscv-spec.out
-riscv-spec.pdf
-riscv-spec.toc
-riscv-privileged.aux
-riscv-privileged.bbl
-riscv-privileged.blg
-riscv-privileged.log
-riscv-privileged.out
-riscv-privileged.pdf
-riscv-privileged.toc
diff --git a/build/.gitignore b/build/.gitignore
new file mode 100644
index 0000000..dba8159
--- /dev/null
+++ b/build/.gitignore
@@ -0,0 +1,7 @@
+*.aux
+*.bbl
+*.blg
+*.log
+*.out
+*.pdf
+*.toc
diff --git a/Makefile b/build/Makefile
index 6e5c764..ae4c9df 100644
--- a/Makefile
+++ b/build/Makefile
@@ -18,19 +18,22 @@
# .bib file (assumed to be in the source directory).
#
-srcdir = .
+srcdir = ../src
docs_with_bib = riscv-spec riscv-privileged
docs_without_bib =
-srcs = $(wildcard *.tex)
-figs = $(wildcard figs/*)
-bibs = riscv-spec.bib
+srcs = $(wildcard $(srcdir)/*.tex)
+figs = $(wildcard $(srcdir)/figs/*)
+bibs = $(srcdir)/riscv-spec.bib
#=======================================================================
# You shouldn't need to change anything below this
#=======================================================================
+PDFLATEX := TEXINPUTS=$(srcdir): pdflatex
+BIBTEX := BIBINPUTS=$(srcdir): bibtex
+
default : pdf
#------------------------------------------------------------
@@ -46,15 +49,15 @@ pdf : $(pdfs)
open: $(pdfs)
open $(pdfs)
-$(pdfs_with_bib): %.pdf: %.tex $(srcs) $(figs) $(bibs)
- pdflatex $*
- bibtex $*
- pdflatex $*
- pdflatex $*
+$(pdfs_with_bib): %.pdf: $(srcdir)/%.tex $(srcs) $(figs) $(bibs)
+ $(PDFLATEX) $*
+ $(BIBTEX) $*
+ $(PDFLATEX) $*
+ $(PDFLATEX) $*
-$(pdfs_without_bib): %.pdf: %.tex $(srcs) $(figs)
- pdflatex $*
- pdflatex $*
+$(pdfs_without_bib): %.pdf: $(srcdir)/%.tex $(srcs) $(figs)
+ $(PDFLATEX) $*
+ $(PDFLATEX) $*
junk += $(pdfs) *.aux *.log *.bbl *.blg *.toc *.out
diff --git a/a.tex b/src/a.tex
index 8c3c745..8c3c745 100644
--- a/a.tex
+++ b/src/a.tex
diff --git a/assembly.tex b/src/assembly.tex
index bd34d40..bd34d40 100644
--- a/assembly.tex
+++ b/src/assembly.tex
diff --git a/b.tex b/src/b.tex
index 0951df4..0951df4 100644
--- a/b.tex
+++ b/src/b.tex
diff --git a/bbding.sty b/src/bbding.sty
index 7e49f44..7e49f44 100644
--- a/bbding.sty
+++ b/src/bbding.sty
diff --git a/c.tex b/src/c.tex
index 2c81f7b..2c81f7b 100644
--- a/c.tex
+++ b/src/c.tex
diff --git a/calling.tex b/src/calling.tex
index 55c55e1..55c55e1 100644
--- a/calling.tex
+++ b/src/calling.tex
diff --git a/cfgstr.tex b/src/cfgstr.tex
index 0a2520a..0a2520a 100644
--- a/cfgstr.tex
+++ b/src/cfgstr.tex
diff --git a/d.tex b/src/d.tex
index 8a48137..8a48137 100644
--- a/d.tex
+++ b/src/d.tex
diff --git a/extensions.tex b/src/extensions.tex
index 4346422..4346422 100644
--- a/extensions.tex
+++ b/src/extensions.tex
diff --git a/f.tex b/src/f.tex
index 94c0920..94c0920 100644
--- a/f.tex
+++ b/src/f.tex
diff --git a/figs/PLIC-block-diagram.pdf b/src/figs/PLIC-block-diagram.pdf
index e9141f0..e9141f0 100644
--- a/figs/PLIC-block-diagram.pdf
+++ b/src/figs/PLIC-block-diagram.pdf
Binary files differ
diff --git a/figs/PLIC-interrupt-flow.pdf b/src/figs/PLIC-interrupt-flow.pdf
index 039c1b8..039c1b8 100644
--- a/figs/PLIC-interrupt-flow.pdf
+++ b/src/figs/PLIC-interrupt-flow.pdf
Binary files differ
diff --git a/figs/halimps.pdf b/src/figs/halimps.pdf
index 2adddf3..2adddf3 100644
--- a/figs/halimps.pdf
+++ b/src/figs/halimps.pdf
Binary files differ
diff --git a/figs/halmode.pdf b/src/figs/halmode.pdf
index 3f4c99c..3f4c99c 100644
--- a/figs/halmode.pdf
+++ b/src/figs/halmode.pdf
Binary files differ
diff --git a/figs/privimps.pdf b/src/figs/privimps.pdf
index a5f433c..a5f433c 100644
--- a/figs/privimps.pdf
+++ b/src/figs/privimps.pdf
Binary files differ
diff --git a/figs/virtimps.pdf b/src/figs/virtimps.pdf
index 2ab2682..2ab2682 100644
--- a/figs/virtimps.pdf
+++ b/src/figs/virtimps.pdf
Binary files differ
diff --git a/gmaps.tex b/src/gmaps.tex
index 2caaa79..2caaa79 100644
--- a/gmaps.tex
+++ b/src/gmaps.tex
diff --git a/graffles/PLIC-block-diagram.graffle b/src/graffles/PLIC-block-diagram.graffle
index aeca213..aeca213 100644
--- a/graffles/PLIC-block-diagram.graffle
+++ b/src/graffles/PLIC-block-diagram.graffle
Binary files differ
diff --git a/graffles/PLIC-interrupt-flow.graffle b/src/graffles/PLIC-interrupt-flow.graffle
index c0d79ac..c0d79ac 100644
--- a/graffles/PLIC-interrupt-flow.graffle
+++ b/src/graffles/PLIC-interrupt-flow.graffle
Binary files differ
diff --git a/graffles/privimps.graffle b/src/graffles/privimps.graffle
index f260ab1..f260ab1 100644
--- a/graffles/privimps.graffle
+++ b/src/graffles/privimps.graffle
diff --git a/history.tex b/src/history.tex
index 8305c8d..8305c8d 100644
--- a/history.tex
+++ b/src/history.tex
diff --git a/hypervisor.tex b/src/hypervisor.tex
index 03b52d2..03b52d2 100644
--- a/hypervisor.tex
+++ b/src/hypervisor.tex
diff --git a/instr-table.tex b/src/instr-table.tex
index 90b09cd..90b09cd 100644
--- a/instr-table.tex
+++ b/src/instr-table.tex
diff --git a/intro.tex b/src/intro.tex
index f10f975..f10f975 100644
--- a/intro.tex
+++ b/src/intro.tex
diff --git a/l.tex b/src/l.tex
index dcc6c75..dcc6c75 100644
--- a/l.tex
+++ b/src/l.tex
diff --git a/m.tex b/src/m.tex
index cc289e8..cc289e8 100644
--- a/m.tex
+++ b/src/m.tex
diff --git a/machine.tex b/src/machine.tex
index 1e94a57..1e94a57 100644
--- a/machine.tex
+++ b/src/machine.tex
diff --git a/naming.tex b/src/naming.tex
index ac649f2..ac649f2 100644
--- a/naming.tex
+++ b/src/naming.tex
diff --git a/opcode-map.tex b/src/opcode-map.tex
index a3224c1..a3224c1 100644
--- a/opcode-map.tex
+++ b/src/opcode-map.tex
diff --git a/p.tex b/src/p.tex
index f66acf7..f66acf7 100644
--- a/p.tex
+++ b/src/p.tex
diff --git a/plic.tex b/src/plic.tex
index 798b139..798b139 100644
--- a/plic.tex
+++ b/src/plic.tex
diff --git a/preamble.tex b/src/preamble.tex
index 45ff257..45ff257 100644
--- a/preamble.tex
+++ b/src/preamble.tex
diff --git a/preface.tex b/src/preface.tex
index ce3e8df..ce3e8df 100644
--- a/preface.tex
+++ b/src/preface.tex
diff --git a/priv-csrs.tex b/src/priv-csrs.tex
index b9993d9..b9993d9 100644
--- a/priv-csrs.tex
+++ b/src/priv-csrs.tex
diff --git a/priv-history.tex b/src/priv-history.tex
index 1187868..1187868 100644
--- a/priv-history.tex
+++ b/src/priv-history.tex
diff --git a/priv-insns.tex b/src/priv-insns.tex
index e1c388c..e1c388c 100644
--- a/priv-insns.tex
+++ b/src/priv-insns.tex
diff --git a/priv-instr-table.tex b/src/priv-instr-table.tex
index 470d32b..470d32b 100644
--- a/priv-instr-table.tex
+++ b/src/priv-instr-table.tex
diff --git a/priv-intro.tex b/src/priv-intro.tex
index ebed27c..ebed27c 100644
--- a/priv-intro.tex
+++ b/src/priv-intro.tex
diff --git a/priv-preface.tex b/src/priv-preface.tex
index bc07a43..bc07a43 100644
--- a/priv-preface.tex
+++ b/src/priv-preface.tex
diff --git a/q.tex b/src/q.tex
index 2830cd3..2830cd3 100644
--- a/q.tex
+++ b/src/q.tex
diff --git a/riscv-privileged.tex b/src/riscv-privileged.tex
index 7157739..7157739 100644
--- a/riscv-privileged.tex
+++ b/src/riscv-privileged.tex
diff --git a/riscv-spec.bib b/src/riscv-spec.bib
index 157617b..157617b 100644
--- a/riscv-spec.bib
+++ b/src/riscv-spec.bib
diff --git a/riscv-spec.tex b/src/riscv-spec.tex
index eff7333..eff7333 100644
--- a/riscv-spec.tex
+++ b/src/riscv-spec.tex
diff --git a/rv128.tex b/src/rv128.tex
index 17075d0..17075d0 100644
--- a/rv128.tex
+++ b/src/rv128.tex
diff --git a/rv32.tex b/src/rv32.tex
index 77824e5..77824e5 100644
--- a/rv32.tex
+++ b/src/rv32.tex
diff --git a/rv32e.tex b/src/rv32e.tex
index 9c63dbc..9c63dbc 100644
--- a/rv32e.tex
+++ b/src/rv32e.tex
diff --git a/rv64.tex b/src/rv64.tex
index 5de9ea2..5de9ea2 100644
--- a/rv64.tex
+++ b/src/rv64.tex
diff --git a/rvc-instr-table.tex b/src/rvc-instr-table.tex
index b4bc8c6..b4bc8c6 100644
--- a/rvc-instr-table.tex
+++ b/src/rvc-instr-table.tex
diff --git a/rvc-opcode-map.tex b/src/rvc-opcode-map.tex
index 48eeb08..48eeb08 100644
--- a/rvc-opcode-map.tex
+++ b/src/rvc-opcode-map.tex
diff --git a/sbi.tex b/src/sbi.tex
index c4fdaa2..c4fdaa2 100644
--- a/sbi.tex
+++ b/src/sbi.tex
diff --git a/supervisor.tex b/src/supervisor.tex
index 2f0bb65..2f0bb65 100644
--- a/supervisor.tex
+++ b/src/supervisor.tex
diff --git a/t.tex b/src/t.tex
index 103c045..103c045 100644
--- a/t.tex
+++ b/src/t.tex
diff --git a/v.tex b/src/v.tex
index 29d4144..29d4144 100644
--- a/v.tex
+++ b/src/v.tex