qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Steven Seeger <steven.seeger@flightsystems.net>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org
Subject: [Qemu-devel] [PATCH 01/02] leon3: change the handling for ASI_LEON_NOCACHE to be aware of if the MMU is enabled or not
Date: Mon, 26 Mar 2018 22:25:24 -0400	[thread overview]
Message-ID: <3978804.GGRd8R3pmO@wirbelwind> (raw)

>From f512606776e20dc603b8ea3faaeb103667de3178 Mon Sep 17 00:00:00 2001
From: Steven Seeger <steven.seeger@flightsystems.net>
Date: Sun, 25 Mar 2018 17:58:21 -0400
Subject: [PATCH 1/6] leon3: change the handling for ASI_LEON_NOCACHE to be
 aware of if the MMU is enabled or not

Signed-off-by: Steven Seeger <steven.seeger@flightsystems.net>
---
 target/sparc/translate.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index f55ec28665..ab8d0a0c72 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -2121,6 +2121,9 @@ static DisasASI get_asi(DisasContext *dc, int insn, 
TCGMemOp memop)
                || (asi == ASI_USERDATA
                    && (dc->def->features & CPU_FEATURE_CASA))) {
         switch (asi) {
+        case ASI_LEON_NOCACHE: /* force cache miss */
+            type = GET_ASI_DIRECT;
+            break;
         case ASI_USERDATA:   /* User data access */
             mem_idx = MMU_USER_IDX;
             type = GET_ASI_DIRECT;
@@ -2131,7 +2134,6 @@ static DisasASI get_asi(DisasContext *dc, int insn, 
TCGMemOp memop)
             break;
         case ASI_M_BYPASS:    /* MMU passthrough */
         case ASI_LEON_BYPASS: /* LEON MMU passthrough */
-        case ASI_LEON_NOCACHE:
             mem_idx = MMU_PHYS_IDX;
             type = GET_ASI_DIRECT;
             break;
-- 
2.16.1

                 reply	other threads:[~2018-03-27  2:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3978804.GGRd8R3pmO@wirbelwind \
    --to=steven.seeger@flightsystems.net \
    --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).