[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH 28/34] arm: cpu: Guard cpu_init definition for u

From: Peter Crosthwaite
Subject: [Qemu-devel] [RFC PATCH 28/34] arm: cpu: Guard cpu_init definition for user mode
Date: Sun, 10 May 2015 23:29:31 -0700

cpu_init is only used by user-mode code. Don't define it for system
emulation. This prepares support for multi-arch as in multi-arch
system mode multiple cpu.h's from different archs may get included
together and this guards against a multiple def.

It also has the added bonus of no new system machine models being
able to use the legacy cpu_init() call.

Signed-off-by: Peter Crosthwaite <address@hidden>
 target-arm/cpu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 7833ff9..e0363a2 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -1555,7 +1555,9 @@ static inline bool arm_excp_unmasked(CPUState *cs, 
unsigned int excp_idx)
     return unmasked || pstate_unmasked;
 #define cpu_init(cpu_model) CPU(cpu_arm_init(cpu_model))
 #define cpu_list arm_cpu_list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]