Merge branch 'confprec'
[riscv-isa-sim.git] / hwacha / hwacha.mk.in
1 hwacha_subproject_deps = \
2 riscv \
3 softfloat \
4
5 hwacha_install_prog_srcs = \
6
7 hwacha_hdrs = \
8 hwacha.h \
9 hwacha_xcpt.h \
10 decode_hwacha.h \
11 decode_hwacha_ut.h \
12 decode_hwacha_ut_half.h \
13 opcodes_hwacha.h \
14 opcodes_hwacha_ut.h \
15 opcodes_hwacha_ut_half.h \
16
17 hwacha_srcs = \
18 hwacha.cc \
19 hwacha_disasm.cc \
20 cvt16.cc \
21 $(hwacha_gen_srcs) \
22 $(hwacha_ut_gen_srcs) \
23 $(hwacha_ut_half_gen_srcs) \
24
25 hwacha_test_srcs =
26
27 hwacha_gen_srcs = \
28 $(addsuffix .cc, $(call get_insn_list,$(src_dir)/hwacha/opcodes_hwacha.h))
29
30 $(hwacha_gen_srcs): %.cc: insns/%.h insn_template_hwacha.cc
31 sed 's/NAME/$(subst .cc,,$@)/' $(src_dir)/hwacha/insn_template_hwacha.cc | sed 's/OPCODE/$(call get_opcode,$(src_dir)/hwacha/opcodes_hwacha.h,$(subst .cc,,$@))/' > $@
32
33 hwacha_ut_gen_srcs = \
34 $(addsuffix .cc, $(call get_insn_list,$(src_dir)/hwacha/opcodes_hwacha_ut.h))
35
36 $(hwacha_ut_gen_srcs): %.cc: insns_ut/%.h insn_template_hwacha_ut.cc
37 sed 's/NAME/$(subst .cc,,$@)/' $(src_dir)/hwacha/insn_template_hwacha_ut.cc | sed 's/OPCODE/$(call get_opcode,$(src_dir)/hwacha/opcodes_hwacha_ut.h,$(subst .cc,,$@))/' > $@
38
39 hwacha_ut_half_gen_srcs = \
40 $(addsuffix .cc, $(call get_insn_list,$(src_dir)/hwacha/opcodes_hwacha_ut_half.h))
41
42 $(hwacha_ut_half_gen_srcs): %.cc: insns_ut_half/%.h insn_template_hwacha_ut_half.cc
43 sed 's/NAME/$(subst .cc,,$@)/' $(src_dir)/hwacha/insn_template_hwacha_ut_half.cc | sed 's/OPCODE/$(call get_opcode,$(src_dir)/hwacha/opcodes_hwacha_ut_half.h,$(subst .cc,,$@))/' > $@