xref: /third_party/ltp/tools/sparse/sparse-src/target-openrisc.c (revision f08c3bdf)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/
1#include "symbol.h"
2#include "target.h"
3#include "machine.h"
4
5
6static void init_openrisc(const struct target *self)
7{
8	fast16_ctype = &int_ctype;
9	ufast16_ctype = &uint_ctype;
10	fast32_ctype = &int_ctype;
11	ufast32_ctype = &uint_ctype;
12
13	wchar_ctype = &uint_ctype;
14}
15
16static void predefine_openrisc(const struct target *self)
17{
18	predefine_weak("__OR1K__");
19	predefine_weak("__or1k__");
20}
21
22const struct target target_openrisc = {
23	.mach = MACH_NDS32,
24	.bitness = ARCH_LP32,
25	.big_endian = true,
26
27	.bits_in_longdouble = 64,
28
29	.init = init_openrisc,
30	.predefine = predefine_openrisc,
31};
32

Indexes created Thu Nov 07 10:32:03 CST 2024