summaryrefslogtreecommitdiff
path: root/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'qemu')
-rw-r--r--qemu/dyngen.c1
-rw-r--r--qemu/thunk.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/qemu/dyngen.c b/qemu/dyngen.c
index 7fac4033..0266196a 100644
--- a/qemu/dyngen.c
+++ b/qemu/dyngen.c
@@ -108,6 +108,7 @@ typedef uint64_t host_ulong;
#define SHT_RELOC SHT_REL
#endif
+#define NO_THUNK_TYPE_SIZE
#include "thunk.h"
enum {
diff --git a/qemu/thunk.h b/qemu/thunk.h
index 929e47f4..90586fc6 100644
--- a/qemu/thunk.h
+++ b/qemu/thunk.h
@@ -236,6 +236,7 @@ void thunk_register_struct(int id, const char *name, const argtype *types);
void thunk_register_struct_direct(int id, const char *name, StructEntry *se1);
const argtype *thunk_convert(void *dst, const void *src,
const argtype *type_ptr, int to_host);
+#ifndef NO_THUNK_TYPE_SIZE
extern StructEntry struct_entries[];
@@ -312,6 +313,8 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host)
}
}
+#endif /* NO_THUNK_TYPE_SIZE */
+
unsigned int target_to_host_bitmask(unsigned int x86_mask,
bitmask_transtbl * trans_tbl);
unsigned int host_to_target_bitmask(unsigned int alpha_mask,