qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, agraf@suse.de
Subject: [Qemu-devel] [PATCH 5/5] target-ppc: Use NARROW_MODE macro for tlbie
Date: Thu, 21 Mar 2013 13:01:49 -0700	[thread overview]
Message-ID: <1363896109-22776-6-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1363896109-22776-1-git-send-email-rth@twiddle.net>

Removing conditional compilation in the process.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-ppc/translate.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 2bb28b8..af936cd 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -4320,15 +4320,14 @@ static void gen_tlbie(DisasContext *ctx)
         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
         return;
     }
-#if defined(TARGET_PPC64)
-    if (!ctx->sf_mode) {
+    if (NARROW_MODE(ctx)) {
         TCGv t0 = tcg_temp_new();
         tcg_gen_ext32u_tl(t0, cpu_gpr[rB(ctx->opcode)]);
         gen_helper_tlbie(cpu_env, t0);
         tcg_temp_free(t0);
-    } else
-#endif
+    } else {
         gen_helper_tlbie(cpu_env, cpu_gpr[rB(ctx->opcode)]);
+    }
 #endif
 }
 
-- 
1.8.1.4

  parent reply	other threads:[~2013-03-21 20:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 20:01 [Qemu-devel] [PATCH 0/5] target-ppc: fix add-with-carry in narrow mode Richard Henderson
2013-03-21 20:01 ` [Qemu-devel] [PATCH 1/5] target-ppc: Fix add and subf carry generation " Richard Henderson
2013-03-21 20:01 ` [Qemu-devel] [PATCH 2/5] target-ppc: Use NARROW_MODE macro for branches Richard Henderson
2013-03-21 20:01 ` [Qemu-devel] [PATCH 3/5] target-ppc: Use NARROW_MODE macro for comparisons Richard Henderson
2013-03-21 20:01 ` [Qemu-devel] [PATCH 4/5] target-ppc: Use NARROW_MODE macro for addresses Richard Henderson
2013-03-21 20:01 ` Richard Henderson [this message]
2013-03-22  0:10 ` [Qemu-devel] [PATCH 0/5] target-ppc: fix add-with-carry in narrow mode Alexander Graf

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=1363896109-22776-6-git-send-email-rth@twiddle.net \
    --to=rth@twiddle.net \
    --cc=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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).