-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnanorv_config.h
86 lines (69 loc) · 1.56 KB
/
nanorv_config.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
#pragma once
//
// Example nanorv user config.
//
//
// Enable base RV32I instruction set.
//
#define RV_OPT_RV32I
//
// Enable RV32M multiplication extension.
//
#define RV_OPT_RV32M
//
// Enable base RV64I instruction set (and RV64M/RV64F if enabled).
//
#define RV_OPT_RV64I
//
// Enable RV32F single precision floating-point extension (and RV64F if enabled).
//
#define RV_OPT_RV32F
//
// Indicates that the host uses an IEEE-754 compliant FPU (only relevant for RV32F).
// This should be true for almost any modern processor.
//
#define RV_OPT_BUILD_IEEE_754
//
// Host architecture has atomic aligned load/stores.
//
#define RV_OPT_HOST_ATOMIC_ALIGNED_ACCESS
//
// Allow the use of C11 stdatomic.h.
//
// #define RV_OPT_BUILD_STD_ATOMIC
//
// Allow the use of MSVC-specific extensions and intrinsics.
//
// #define RV_OPT_BUILD_MSVC
//
// Allow the use of GCC-specific extensions and intrinsics.
//
// #define RV_OPT_BUILD_GCC
//
// Allow the use of Clang-specific extensions and intrinsics.
//
// #define RV_OPT_BUILD_CLANG
//
// Use actual SAL definitions.
//
// #define RV_OPT_BUILD_SAL
//
// Allow the use of SSE intrinsics (used by FP code).
//
//#define RV_OPT_BUILD_SSE
//
// Allow the use of CRT/LibC functions (used by FP code).
//
// #define RV_OPT_BUILD_LIBC
//
// Allow the use of GCC/clang-specific int128 types (used by RV32M code).
//
// #define RV_OPT_BUILD_INT128_TYPES
//
// Build for big-endian host environment.
//
// #define RV_OPT_HOST_BIG_ENDIAN
//
// Enable MMU Guest-To-Host paging support using an SV48 radix tree.
//
// #define RV_OPT_MMU_GTH_PAGING