diff options
| author | Brian Campbell | 2018-05-17 16:39:30 +0100 |
|---|---|---|
| committer | Brian Campbell | 2018-05-17 16:39:30 +0100 |
| commit | 1867ec89a4493ca6ce92c8926885c4090b6d3d5d (patch) | |
| tree | 8f6b4a527d80180341c8b19efd21c869a5e30065 /riscv | |
| parent | 333bbb7cbfda60eda1bfe6642e068f2795056c1d (diff) | |
| parent | f5672ea6a1e04ad1f2bee91ad86584b183d323b4 (diff) | |
Merge branch 'cheri-mono' into sail2
Diffstat (limited to 'riscv')
| -rw-r--r-- | riscv/.gitignore | 5 | ||||
| -rw-r--r-- | riscv/Holmakefile | 11 | ||||
| -rw-r--r-- | riscv/Makefile | 14 |
3 files changed, 30 insertions, 0 deletions
diff --git a/riscv/.gitignore b/riscv/.gitignore new file mode 100644 index 00000000..52f3767a --- /dev/null +++ b/riscv/.gitignore @@ -0,0 +1,5 @@ +riscv.lem +riscv_types.lem +riscvScript.sml +riscv_extrasScript.sml +riscv_typesScript.sml diff --git a/riscv/Holmakefile b/riscv/Holmakefile new file mode 100644 index 00000000..8269bc36 --- /dev/null +++ b/riscv/Holmakefile @@ -0,0 +1,11 @@ +LEMDIR=../../lem/hol-lib + +INCLUDES = $(LEMDIR) ../lib/hol + +all: riscvTheory.uo +.PHONY: all + +ifdef POLY +BASE_HEAP = ../lib/hol/sail-heap + +endif diff --git a/riscv/Makefile b/riscv/Makefile index 11cc7731..0532bf09 100644 --- a/riscv/Makefile +++ b/riscv/Makefile @@ -34,6 +34,18 @@ Riscv.thy: riscv.lem riscv_extras.lem riscv.lem: $(SAIL_SRCS) Makefile $(SAIL_DIR)/sail -lem -o riscv -lem_mwords -lem_lib Riscv_extras $(SAIL_SRCS) +riscv_sequential.lem: $(SAIL_SRCS) Makefile + $(SAIL_DIR)/sail -lem -lem_sequential -o riscv_sequential -lem_mwords -lem_lib Riscv_extras_sequential $(SAIL_SRCS) + +riscvScript.sml : riscv.lem riscv_extras.lem + lem -hol -outdir . -lib ../lib/hol -lib ../src/lem_interp -lib ../src/gen_lib \ + riscv_extras.lem \ + riscv_types.lem \ + riscv.lem + +riscvTheory.uo riscvTheory.ui: riscvScript.sml + Holmake riscvTheory.uo + # we exclude prelude.sail here, most code there should move to sail lib LOC_FILES:=$(SAIL_SRCS) main.sail include ../etc/loc.mk @@ -44,3 +56,5 @@ clean: -rm -f Riscv.thy Riscv_types.thy \ Riscv_extras.thy -rm -f Riscv_duopod.thy Riscv_duopod_types.thy riscv_duopod.lem riscv_duopod_types.lem + -rm -f riscvScript.sml riscv_typesScript.sml riscv_extrasScript.sml + -Holmake cleanAll |
