Received: from eggs.gnu.org ([2001:4830:134:3::10]:46728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQi6Y-0000kA-EE for qemu-devel@nongnu.org; Wed, 25 Feb 2015 14:58:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQi6X-0000Ew-I5 for qemu-devel@nongnu.org; Wed, 25 Feb 2015 14:58:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQi6X-0000Ep-B6 for qemu-devel@nongnu.org; Wed, 25 Feb 2015 14:58:45 -0500 From: Eduardo Habkost Date: Wed, 25 Feb 2015 16:58:19 -0300 Message-Id: <1424894306-26740-5-git-send-email-ehabkost@redhat.com> In-Reply-To: <1424894306-26740-1-git-send-email-ehabkost@redhat.com> References: <1424894306-26740-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PULL 04/11] target-i386: Rename cpu_x86_init() to cpu_x86_init_user() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , qemu-devel@nongnu.org The function is used only for CONFIG_USER, so make its purpose clear. Reviewed-by: Paolo Bonzini Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 2 +- target-i386/cpu.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 356f97e..8f18556 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2135,7 +2135,7 @@ out: return cpu; } -X86CPU *cpu_x86_init(const char *cpu_model) +X86CPU *cpu_x86_init_user(const char *cpu_model) { Error *error = NULL; X86CPU *cpu; diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 478450c..41d7f0a 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -982,7 +982,7 @@ typedef struct CPUX86State { #include "cpu-qom.h" -X86CPU *cpu_x86_init(const char *cpu_model); +X86CPU *cpu_x86_init_user(const char *cpu_model); X86CPU *cpu_x86_create(const char *cpu_model, DeviceState *icc_bridge, Error **errp); int cpu_x86_exec(CPUX86State *s); @@ -1173,7 +1173,7 @@ uint64_t cpu_get_tsc(CPUX86State *env); static inline CPUX86State *cpu_init(const char *cpu_model) { - X86CPU *cpu = cpu_x86_init(cpu_model); + X86CPU *cpu = cpu_x86_init_user(cpu_model); if (cpu == NULL) { return NULL; } -- 2.1.0