From f193c7979c2f7e4e021453689b5dd9c8abdcbbc4 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 21 Mar 2004 17:06:25 +0000 Subject: do not depend on thunk.h - more log items git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@675 c046a42c-6fe2-441c-8c8c-71466251a162 --- cpu-defs.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpu-defs.h') diff --git a/cpu-defs.h b/cpu-defs.h index 59a0c0f..bbdb390 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -41,6 +41,14 @@ typedef uint64_t target_ulong; #error TARGET_LONG_SIZE undefined #endif +#if defined(__alpha__) || defined (__ia64__) || defined(__x86_64__) +#define HOST_LONG_BITS 64 +#else +#define HOST_LONG_BITS 32 +#endif + +#define HOST_LONG_SIZE (HOST_LONG_BITS / 8) + #define EXCP_INTERRUPT 256 /* async interruption */ #define EXCP_HLT 257 /* hlt instruction reached */ #define EXCP_DEBUG 258 /* cpu stopped after a breakpoint or singlestep */ -- cgit v1.1