Received: from eggs.gnu.org ([2001:4830:134:3::10]:41203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCBWk-0005lF-EP for qemu-devel@nongnu.org; Mon, 06 Jul 2015 14:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCBWh-0004I6-2D for qemu-devel@nongnu.org; Mon, 06 Jul 2015 14:54:02 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:63377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCBWg-0004Hj-TB for qemu-devel@nongnu.org; Mon, 06 Jul 2015 14:53:59 -0400 From: Date: Mon, 6 Jul 2015 11:53:51 -0700 Message-ID: <1436208832-17651-2-git-send-email-meadori@codesourcery.com> In-Reply-To: <1436208832-17651-1-git-send-email-meadori@codesourcery.com> References: <1436208832-17651-1-git-send-email-meadori@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1/2] target-arm: Allow CPU "any" for system-mode emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Meador Inge From: Meador Inge The "any" CPU is useful for cases where the system-mode emulator is being used to work with a wide array of bare-metal C/C++ applications that have been compiled in different ways. Signed-off-by: Meador Inge --- target-arm/cpu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 80669a6..3665f6b 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -1243,7 +1243,6 @@ static void pxa270c5_initfn(Object *obj) cpu->reset_sctlr = 0x00000078; } -#ifdef CONFIG_USER_ONLY static void arm_any_initfn(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); @@ -1258,7 +1257,6 @@ static void arm_any_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_CRC); cpu->midr = 0xffffffff; } -#endif #endif /* !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64) */ @@ -1305,10 +1303,8 @@ static const ARMCPUInfo arm_cpus[] = { { .name = "pxa270-b1", .initfn = pxa270b1_initfn }, { .name = "pxa270-c0", .initfn = pxa270c0_initfn }, { .name = "pxa270-c5", .initfn = pxa270c5_initfn }, -#ifdef CONFIG_USER_ONLY { .name = "any", .initfn = arm_any_initfn }, #endif -#endif { .name = NULL } }; -- 1.8.1.1