From 611733663eb41bcf4944b7917f9dfb84af4867cf Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Tue, 31 Dec 2013 14:56:02 -0800 Subject: [PATCH] Added BX_CPU_JIT. --- include/bx/platform.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bx/platform.h b/include/bx/platform.h index a69b705..defc5ea 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -21,6 +21,7 @@ #define BX_PLATFORM_XBOX360 0 #define BX_CPU_ARM 0 +#define BX_CPU_JIT 0 #define BX_CPU_MIPS 0 #define BX_CPU_PPC 0 #define BX_CPU_X86 0 @@ -112,6 +113,8 @@ # define BX_CPU_X86 1 # define BX_CACHE_LINE_SIZE 64 #else // PNaCl doesn't have CPU defined. +# undef BX_CPU_JIT +# define BX_CPU_JIT 1 # define BX_CACHE_LINE_SIZE 64 #endif // @@ -190,6 +193,8 @@ typedef struct { long double x, y; } __float128; # define BX_CPU_NAME "MIPS" #elif BX_CPU_PPC # define BX_CPU_NAME "PowerPC" +#elif BX_CPU_JIT +# define BX_CPU_NAME "JIT/VM" #elif BX_CPU_X86 # define BX_CPU_NAME "x86" #endif // BX_CPU_