Skip to content

Commit

Permalink
Add json target
Browse files Browse the repository at this point in the history
Produces JSON representation of instructions, operands, opcode layouts, etc.
Not claimed to be exhaustive.

Depends on https://github.com/ThinkOpenly/riscvdecode.

Signed-off-by: Paul A. Clarke <[email protected]>
  • Loading branch information
ThinkOpenly committed Aug 10, 2023
1 parent 58cac61 commit 105f309
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ endif
all: ocaml_emulator/riscv_ocaml_sim_$(ARCH) c_emulator/riscv_sim_$(ARCH) riscv_isa riscv_coq riscv_hol riscv_rmem
.PHONY: all

json: $(SAIL_SRCS) model/main.sail Makefile
sail -plugin $(HOME)/projects/Sail/riscvdecode/riscv_decode.cmxs -riscv_decode $(SAIL_FLAGS) $(SAIL_SRCS)

# the following ensures empty sail-generated .c files don't hang around and
# break future builds if sail exits badly
.DELETE_ON_ERROR: generated_definitions/c/%.c
Expand Down

0 comments on commit 105f309

Please sign in to comment.