-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathfeature.h
117 lines (93 loc) · 2.42 KB
/
feature.h
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* rv32emu is freely redistributable under the MIT License. See the file
* "LICENSE" for information on usage and redistribution of this file.
*/
#pragma once
/* enable/disable (compile time) features in this header */
/* Standard Extension for Integer Multiplication and Division */
#ifndef RV32_FEATURE_EXT_M
#define RV32_FEATURE_EXT_M 1
#endif
/* Standard Extension for Atomic Instructions */
#ifndef RV32_FEATURE_EXT_A
#define RV32_FEATURE_EXT_A 1
#endif
/* Standard Extension for Single-Precision Floating Point Instructions */
#ifndef RV32_FEATURE_EXT_F
#define RV32_FEATURE_EXT_F 1
#endif
/* Standard Extension for Compressed Instructions */
#ifndef RV32_FEATURE_EXT_C
#define RV32_FEATURE_EXT_C 1
#endif
/* RV32E Base Integer Instruction Set */
#ifndef RV32_FEATURE_RV32E
#define RV32_FEATURE_RV32E 0
#endif
/* Control and Status Register (CSR) */
#ifndef RV32_FEATURE_Zicsr
#define RV32_FEATURE_Zicsr 1
#endif
/* Instruction-Fetch Fence */
#ifndef RV32_FEATURE_Zifencei
#define RV32_FEATURE_Zifencei 1
#endif
/* Zba Address generation instructions */
#ifndef RV32_FEATURE_Zba
#define RV32_FEATURE_Zba 1
#endif
/* Zbb Basic bit-manipulation */
#ifndef RV32_FEATURE_Zbb
#define RV32_FEATURE_Zbb 1
#endif
/* Zbc Carry-less multiplication */
#ifndef RV32_FEATURE_Zbc
#define RV32_FEATURE_Zbc 1
#endif
/* Zbs Single-bit instructions */
#ifndef RV32_FEATURE_Zbs
#define RV32_FEATURE_Zbs 1
#endif
/* Experimental SDL oriented system calls */
#ifndef RV32_FEATURE_SDL
#define RV32_FEATURE_SDL 1
#endif
/* GDB remote debugging */
#ifndef RV32_FEATURE_GDBSTUB
#define RV32_FEATURE_GDBSTUB 0
#endif
/* Experimental just-in-time compiler */
#ifndef RV32_FEATURE_JIT
#define RV32_FEATURE_JIT 0
#endif
/* Experimental tier-2 just-in-time compiler */
#ifndef RV32_FEATURE_T2C
#define RV32_FEATURE_T2C 0
#endif
/* T2C depends on JIT configuration */
#if !RV32_FEATURE_JIT
#undef RV32_FEATURE_T2C
#define RV32_FEATURE_T2C 0
#endif
/* System */
#ifndef RV32_FEATURE_SYSTEM
#define RV32_FEATURE_SYSTEM 0
#endif
/* Use ELF loader */
#ifndef RV32_FEATURE_ELF_LOADER
#define RV32_FEATURE_ELF_LOADER 0
#endif
/* MOP fusion */
#ifndef RV32_FEATURE_MOP_FUSION
#define RV32_FEATURE_MOP_FUSION 1
#endif
/* Block chaining */
#ifndef RV32_FEATURE_BLOCK_CHAINING
#define RV32_FEATURE_BLOCK_CHAINING 1
#endif
/* Logging with color */
#ifndef RV32_FEATURE_LOG_COLOR
#define RV32_FEATURE_LOG_COLOR 1
#endif
/* Feature test macro */
#define RV32_HAS(x) RV32_FEATURE_##x