forked from moizumi99/m99_riscv_emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
75 lines (67 loc) · 1.9 KB
/
CMakeLists.txt
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.14)
project(assembler_test)
set(CMAKE_CXX_STANDARD 14)
###### For profiling.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")
###### End for profiling.
include_directories(.)
add_executable(assembler_test
tests/assembler.cc
tests/assembler.h
bit_tools.cc
bit_tools.h
instruction_encdec.cc
instruction_encdec.h
tests/load_assembler.cc
tests/load_assembler.h
tests/load_assembler_test.cc
tests/load_assembler_test.h
memory_wrapper.h
memory_wrapper.cpp
)
add_executable(cpu_test
tests/assembler.cc
tests/assembler.h
bit_tools.cc
bit_tools.h
instruction_encdec.cc
instruction_encdec.h
tests/load_assembler.cc
tests/load_assembler.h
tests/cpu_test.cc
RISCV_cpu.cc
RISCV_cpu.h
memory_wrapper.cpp memory_wrapper.h
system_call_emulator.cpp system_call_emulator.h
pte.cpp pte.h
Mmu.cpp Mmu.h
riscv_cpu_common.h Disassembler.cpp Disassembler.h PeripheralEmulator.cpp PeripheralEmulator.h)
add_executable(RISCV_Emulator
bit_tools.cc
bit_tools.h
instruction_encdec.cc
instruction_encdec.h
RISCV_cpu.cc
RISCV_cpu.h
RISCV_Emulator.cc
RISCV_Emulator.h
memory_wrapper.cpp
memory_wrapper.h
system_call_emulator.cpp
system_call_emulator.h
pte.cpp pte.h
Mmu.cpp Mmu.h
riscv_cpu_common.h Disassembler.cpp Disassembler.h PeripheralEmulator.cpp PeripheralEmulator.h)
add_executable(memory_wrapper_test
memory_wrapper.cpp
memory_wrapper.h
tests/memory_wrapper_test.cpp
)
add_executable(pte_test
pte.cpp
pte.h
tests/pte_test.cpp
bit_tools.h
bit_tools.cc
)