Commit 0ad041d47692326f4c7f472d396ebdbfe92e1664

Authored by bellard
1 parent 1eb20527

fixed inline pb


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@284 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 4 additions and 0 deletions
dyngen.c
@@ -108,6 +108,7 @@ typedef uint64_t host_ulong; @@ -108,6 +108,7 @@ typedef uint64_t host_ulong;
108 #define SHT_RELOC SHT_REL 108 #define SHT_RELOC SHT_REL
109 #endif 109 #endif
110 110
  111 +#define NO_THUNK_TYPE_SIZE
111 #include "thunk.h" 112 #include "thunk.h"
112 113
113 enum { 114 enum {
@@ -236,6 +236,7 @@ void thunk_register_struct(int id, const char *name, const argtype *types); @@ -236,6 +236,7 @@ void thunk_register_struct(int id, const char *name, const argtype *types);
236 void thunk_register_struct_direct(int id, const char *name, StructEntry *se1); 236 void thunk_register_struct_direct(int id, const char *name, StructEntry *se1);
237 const argtype *thunk_convert(void *dst, const void *src, 237 const argtype *thunk_convert(void *dst, const void *src,
238 const argtype *type_ptr, int to_host); 238 const argtype *type_ptr, int to_host);
  239 +#ifndef NO_THUNK_TYPE_SIZE
239 240
240 extern StructEntry struct_entries[]; 241 extern StructEntry struct_entries[];
241 242
@@ -312,6 +313,8 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host) @@ -312,6 +313,8 @@ static inline int thunk_type_align(const argtype *type_ptr, int is_host)
312 } 313 }
313 } 314 }
314 315
  316 +#endif /* NO_THUNK_TYPE_SIZE */
  317 +
315 unsigned int target_to_host_bitmask(unsigned int x86_mask, 318 unsigned int target_to_host_bitmask(unsigned int x86_mask,
316 bitmask_transtbl * trans_tbl); 319 bitmask_transtbl * trans_tbl);
317 unsigned int host_to_target_bitmask(unsigned int alpha_mask, 320 unsigned int host_to_target_bitmask(unsigned int alpha_mask,