forked from foss-for-synopsys-dwc-arc-processors/embench-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupport.h
72 lines (47 loc) · 1.71 KB
/
support.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
/* Support header for BEEBS.
Copyright (C) 2014 Embecosm Limited and the University of Bristol
Copyright (C) 2019 Embecosm Limited
Contributor James Pallister <[email protected]>
Contributor Jeremy Bennett <[email protected]>
This file is part of Embench and was formerly part of the Bristol/Embecosm
Embedded Benchmark Suite.
SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef SUPPORT_H
#define SUPPORT_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* Include board support header if we have one */
#ifdef HAVE_BOARDSUPPORT_H
#include "boardsupport.h"
#endif
/* Benchmarks must implement verify_benchmark, which must return -1 if no
verification is done. */
int verify_benchmark (int result);
/* Standard functions implemented for each board */
void initialise_board (void);
void start_trigger (void);
void stop_trigger (void);
/* Every benchmark implements this for one-off data initialization. This is
only used for initialization that is independent of how often benchmark ()
is called. */
void initialise_benchmark (void);
/* Every benchmark implements this for cache warm up, typically calling
benchmark several times. The argument controls how much warming up is
done, with 0 meaning no warming. */
void warm_caches (int temperature);
/* Every benchmark implements this as its entry point. Don't allow it to be
inlined! */
int benchmark (void) __attribute__ ((noinline));
/* Every benchmark must implement this to validate the result of the
benchmark. */
int verify_benchmark (int res);
/* Local simplified versions of library functions */
#include "beebsc.h"
#endif /* SUPPORT_H */
/*
Local Variables:
mode: C
c-file-style: "gnu"
End:
*/