From: Ben Cheng Date: Thu, 23 Sep 2010 08:23:14 +0000 (-0700) Subject: Print the JIT codegen type in the VM configuration list. X-Git-Tag: android-x86-4.0-r1~164^2~18^2~25 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=629e6923;p=android-x86%2Fdalvik.git Print the JIT codegen type in the VM configuration list. Example: Configured with: debugger profiler hprof jit(armv7-a-neon) show_exception=1 So that the CPU capability on JIT-enabled devices can be exposed. (cherry-picked from dalvik-dev) Change-Id: I887201e7023ca94cd9c3d690f03b7b042175e6ed --- diff --git a/vm/Dvm.mk b/vm/Dvm.mk index 85fc59806..0867ffa87 100644 --- a/vm/Dvm.mk +++ b/vm/Dvm.mk @@ -27,6 +27,7 @@ LOCAL_CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2 -fno-align-jumps #LOCAL_CFLAGS += -DUSE_INDIRECT_REF LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter +LOCAL_CFLAGS += -DARCH_VARIANT=\"$(dvm_arch_variant)\" # # Optional features. These may impact the size or performance of the VM. diff --git a/vm/Init.c b/vm/Init.c index 72f6218ea..24513f3fa 100644 --- a/vm/Init.c +++ b/vm/Init.c @@ -182,7 +182,7 @@ static void dvmUsage(const char* progName) " profile_field_access" #endif #if defined(WITH_JIT) - " jit" + " jit(" ARCH_VARIANT ")" #endif #if defined(WITH_SELF_VERIFICATION) " self_verification"