blob: ca9589f5b65c4c893cd71aacf342411e7281dbcb (
plain)
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
|
#include "symbol.h"
#include "target.h"
#include "machine.h"
static void init_sparc32(const struct target *target)
{
if (arch_os == OS_SUNOS) {
wint_ctype = &long_ctype;
wchar_ctype = &long_ctype;
bits_in_longdouble = 128;
max_fp_alignment = 16;
}
}
const struct target target_sparc32 = {
.mach = MACH_SPARC32,
.bitness = ARCH_LP32,
.big_endian = 1,
.unsigned_char = 0,
.bits_in_longdouble = 64,
.max_fp_alignment = 8,
.init = init_sparc32,
.target_64bit = &target_sparc64,
};
const struct target target_sparc64 = {
.mach = MACH_SPARC64,
.bitness = ARCH_LP64,
.big_endian = 1,
.unsigned_char = 0,
.target_32bit = &target_sparc32,
};
|