From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPbLn-0007j3-Qb for qemu-devel@nongnu.org; Thu, 04 Sep 2014 14:01:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPbLe-0003g0-Lw for qemu-devel@nongnu.org; Thu, 04 Sep 2014 14:01:39 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:51362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPbLe-0003fQ-FU for qemu-devel@nongnu.org; Thu, 04 Sep 2014 14:01:30 -0400 Received: by mail-pa0-f43.google.com with SMTP id et14so20547976pad.30 for ; Thu, 04 Sep 2014 11:01:29 -0700 (PDT) From: Chih-Min Chao Date: Fri, 5 Sep 2014 02:01:17 +0800 Message-Id: <1409853677-10966-3-git-send-email-cmchao@gmail.com> In-Reply-To: <1409853677-10966-1-git-send-email-cmchao@gmail.com> References: <1409853677-10966-1-git-send-email-cmchao@gmail.com> Subject: [Qemu-devel] [PATCH 2/2] target-arm : use aarch64 mode testing wrapper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Chih-Min Chao Don't use internal member but availabel wrapper function to test status Signed-off-by: Chih-Min Chao --- hw/arm/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index e32f2f4..26bc25f 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -417,7 +417,7 @@ static void do_cpu_reset(void *opaque) if (info) { if (!info->is_linux) { /* Jump to the entry point. */ - if (env->aarch64) { + if (is_a64(env)) { env->pc = info->entry; } else { env->regs[15] = info->entry & 0xfffffffe; @@ -425,7 +425,7 @@ static void do_cpu_reset(void *opaque) } } else { if (CPU(cpu) == first_cpu) { - if (env->aarch64) { + if (is_a64(env)) { env->pc = info->loader_start; } else { env->regs[15] = info->loader_start; -- 2.0.4