xref: /qemu/include/qemu/target-info-impl.h (revision 7cef6d686309e2792186504ae17cf4f3eb57ef68)
1 /*
2  * QEMU TargetInfo structure definition
3  *
4  *  Copyright (c) Linaro
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef QEMU_TARGET_INFO_IMPL_H
10 #define QEMU_TARGET_INFO_IMPL_H
11 
12 #include "qemu/target-info.h"
13 
14 typedef struct TargetInfo {
15     /* runtime equivalent of TARGET_NAME definition */
16     const char *target_name;
17     /* runtime equivalent of TARGET_LONG_BITS definition */
18     unsigned long_bits;
19     /* runtime equivalent of CPU_RESOLVING_TYPE definition */
20     const char *cpu_type;
21     /* QOM typename machines for this binary must implement */
22     const char *machine_typename;
23 } TargetInfo;
24 
25 /**
26  * target_info:
27  *
28  * Returns: The TargetInfo structure definition for this target binary.
29  */
30 const TargetInfo *target_info(void);
31 
32 #endif
33