qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 2/2] target-arm : use aarch64 mode testing wrapper


From: Chih-Min Chao
Subject: [Qemu-devel] [PATCH 2/2] target-arm : use aarch64 mode testing wrapper
Date: Fri, 5 Sep 2014 02:01:17 +0800

    Don't use internal member but availabel wrapper function to
    test status

Signed-off-by: Chih-Min Chao <address@hidden>
---
 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




reply via email to

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