qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Chih-Min Chao <cmchao@gmail.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Chih-Min Chao <cmchao@gmail.com>
Subject: [Qemu-devel] [PATCH 2/2] target-arm : use aarch64 mode testing wrapper
Date: Fri,  5 Sep 2014 02:01:17 +0800	[thread overview]
Message-ID: <1409853677-10966-3-git-send-email-cmchao@gmail.com> (raw)
In-Reply-To: <1409853677-10966-1-git-send-email-cmchao@gmail.com>

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

Signed-off-by: Chih-Min Chao <cmchao@gmail.com>
---
 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

  parent reply	other threads:[~2014-09-04 18:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 18:01 [Qemu-devel] [PATCH 0/2] target-arm : improvement Chih-Min Chao
2014-09-04 18:01 ` [Qemu-devel] [PATCH 1/2] target-arm : make parameter of feature/status checking function const Chih-Min Chao
2014-09-04 18:05   ` Peter Maydell
2014-09-04 18:15     ` Chih-Min Chao
2014-09-04 18:01 ` Chih-Min Chao [this message]
2014-09-04 18:30   ` [Qemu-devel] [PATCH 2/2] target-arm : use aarch64 mode testing wrapper Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1409853677-10966-3-git-send-email-cmchao@gmail.com \
    --to=cmchao@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).