Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / mini / mini-arch.h
1 /**
2  * \file
3  */
4
5 #ifndef __MONO_MINI_ARCH_H__
6 #define __MONO_MINI_ARCH_H__
7
8 #ifdef TARGET_X86
9 #include "mini-x86.h"
10 #elif defined(TARGET_AMD64)
11 #include "mini-amd64.h"
12 #elif defined(TARGET_POWERPC)
13 #include "mini-ppc.h"
14 #elif defined(__sparc__) || defined(sparc)
15 #include "mini-sparc.h"
16 #elif defined(TARGET_S390X)
17 # if defined(__s390x__)
18 #  include "mini-s390x.h"
19 # else
20 #error "s390 is no longer supported."
21 # endif
22 #elif defined(TARGET_ARM)
23 #include "mini-arm.h"
24 #elif defined(TARGET_ARM64)
25 #include "mini-arm64.h"
26 #elif defined(__mips__)
27 #include "mini-mips.h"
28 #elif TARGET_WASM
29 #include "mini-wasm.h"
30 #else
31 #error add arch specific include file in mini-arch.h
32 #endif
33
34 #if (MONO_ARCH_FRAME_ALIGNMENT == 4)
35 #define MONO_ARCH_LOCALLOC_ALIGNMENT 8
36 #else
37 #define MONO_ARCH_LOCALLOC_ALIGNMENT MONO_ARCH_FRAME_ALIGNMENT
38 #endif
39
40 #endif /* __MONO_MINI_ARCH_H__ */