All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: qemu-devel@nongnu.org
Cc: "Bastian Koppelmann" <kbastian@mail.uni-paderborn.de>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Joe Komlodi" <komlodi@xilinx.com>,
	"David Brenken" <david.brenken@efs-auto.org>,
	"Andreas Konopik" <andreas.konopik@efs-auto.de>
Subject: [PATCH 2/3] target/tricore: Pass MMUAccessType to get_physical_address()
Date: Wed, 27 Jan 2021 23:42:54 +0100	[thread overview]
Message-ID: <20210127224255.3505711-3-f4bug@amsat.org> (raw)
In-Reply-To: <20210127224255.3505711-1-f4bug@amsat.org>

'int access_type' and ACCESS_INT are unused, drop them.
Provide the mmu_idx argument to match other targets.
'int rw' is actually the MMUAccessType, rename it.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 target/tricore/helper.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/target/tricore/helper.c b/target/tricore/helper.c
index 81171db833b..c5e997f3215 100644
--- a/target/tricore/helper.c
+++ b/target/tricore/helper.c
@@ -33,7 +33,7 @@ enum {
 #if defined(CONFIG_SOFTMMU)
 static int get_physical_address(CPUTriCoreState *env, hwaddr *physical,
                                 int *prot, target_ulong address,
-                                int rw, int access_type)
+                                MMUAccessType access_type, int mmu_idx)
 {
     int ret = TLBRET_MATCH;
 
@@ -72,13 +72,11 @@ bool tricore_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
     CPUTriCoreState *env = &cpu->env;
     hwaddr physical;
     int prot;
-    int access_type;
     int ret = 0;
 
     rw &= 1;
-    access_type = ACCESS_INT;
     ret = get_physical_address(env, &physical, &prot,
-                               address, rw, access_type);
+                               address, rw, mmu_idx);
 
     qemu_log_mask(CPU_LOG_MMU, "%s address=" TARGET_FMT_lx " ret %d physical "
                   TARGET_FMT_plx " prot %d\n",
-- 
2.26.2



  parent reply	other threads:[~2021-01-27 22:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27 22:42 [PATCH 0/3] target/tricore: Pass MMUAccessType to get_physical_address() Philippe Mathieu-Daudé
2021-01-27 22:42 ` [PATCH 1/3] target/tricore: Replace magic value by MMU_DATA_LOAD definition Philippe Mathieu-Daudé
2021-02-10 12:00   ` Bastian Koppelmann
2021-01-27 22:42 ` Philippe Mathieu-Daudé [this message]
2021-02-10 12:09   ` [PATCH 2/3] target/tricore: Pass MMUAccessType to get_physical_address() Bastian Koppelmann
2021-01-27 22:42 ` [PATCH 3/3] target/tricore: Remove unused definitions Philippe Mathieu-Daudé
2021-02-10 12:10   ` Bastian Koppelmann
2021-02-10 11:19 ` [PATCH 0/3] target/tricore: Pass MMUAccessType to get_physical_address() Philippe Mathieu-Daudé
2021-02-10 12:12 ` Bastian Koppelmann
2021-03-09 22:46   ` Philippe Mathieu-Daudé

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=20210127224255.3505711-3-f4bug@amsat.org \
    --to=f4bug@amsat.org \
    --cc=andreas.konopik@efs-auto.de \
    --cc=david.brenken@efs-auto.org \
    --cc=kbastian@mail.uni-paderborn.de \
    --cc=komlodi@xilinx.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.