blob: b3f8598ddb12ca75745444baef6e1b9da295f55d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
riscv_subproject_deps = \
softfloat_riscv \
softfloat \
riscv_hdrs = \
htif.h \
common.h \
decode.h \
mmu.h \
processor.h \
sim.h \
trap.h \
opcodes.h \
insn_header.h \
dispatch.h \
cachesim.h \
memtracer.h \
NDISPATCH := 10
DISPATCH_SRCS := \
dispatch0.cc \
dispatch1.cc \
dispatch2.cc \
dispatch3.cc \
dispatch4.cc \
dispatch5.cc \
dispatch6.cc \
dispatch7.cc \
dispatch8.cc \
dispatch9.cc \
dispatch10.cc \
$(DISPATCH_SRCS): %.cc: dispatch $(wildcard insns/*.h) $(riscv_hdrs)
$< $(subst dispatch,,$(subst .cc,,$@)) $(NDISPATCH) 1024 < $(src_dir)/riscv/opcodes.h > $@
dispatch.h: %.h: dispatch $(riscv_hdrs)
$< $(NDISPATCH) 1024 < $(src_dir)/riscv/opcodes.h > $@
riscv_srcs = \
htif.cc \
processor.cc \
sim.cc \
interactive.cc \
trap.cc \
cachesim.cc \
mmu.cc \
disasm.cc \
$(DISPATCH_SRCS) \
riscv_test_srcs =
riscv_install_prog_srcs = \
riscv-isa-run.cc \
|