From nobody Tue Feb 10 13:37:11 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1611787475; cv=none; d=zohomail.com; s=zohoarc; b=ntSlihAn6hjvFUPpyktJm1pA7j9hnSvOOzATIOyHY+FwFHUasLYvdwW21d8GJnBvYxHXrtNIbxsd5K96yh/pXCDmgnTIVrTwNGGKcKPwdIE5TAy9wQUR4KRbaCJT6f3DjwcnZpeWsAf7pF6hWuJFsInB63erC9VkqC4OhPqDFRQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611787475; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hsf6YslG+iiwGWWyzTzUT651ZdNva63Lvir9YoamAx4=; b=JjxieQCV25yzgilq7gE7HB7fKTyhOoPpR8ds+uiFRv8n2XC9c+Pp3tDo9SL7Bvmdhn5l1xnb6vFE+n1kIoVstD+swVtnYy50dIivmZyVWB4CF38IjZYs9GZQbHTcc7UbXHKFQVZt/ULD5TYvePnLoZgyftGnXTmMe33qkbje/3k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161178747569058.13708057425583; Wed, 27 Jan 2021 14:44:35 -0800 (PST) Received: from localhost ([::1]:58118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4tYA-0007pZ-Jt for importer@patchew.org; Wed, 27 Jan 2021 17:44:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4tWp-0006VR-MO for qemu-devel@nongnu.org; Wed, 27 Jan 2021 17:43:11 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:35756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4tWo-0001eq-8z for qemu-devel@nongnu.org; Wed, 27 Jan 2021 17:43:11 -0500 Received: by mail-wm1-x32f.google.com with SMTP id e15so3003550wme.0 for ; Wed, 27 Jan 2021 14:43:09 -0800 (PST) Received: from localhost.localdomain (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id q9sm4331552wme.18.2021.01.27.14.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 14:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hsf6YslG+iiwGWWyzTzUT651ZdNva63Lvir9YoamAx4=; b=K8EQn8GTmUm9OhKOy8D8hABbFns8fRdgboTQVFsPW8omlNRQD/s3q5hL3vAgV5CVid l/v+79k8vQpxYwkkNRYAidgKt9h7YbbLkQa7p/qbtcafQ33ZpQ53koAU6rvieSCbf/d2 fRWtX9BWwYelWexOS6FgW1rRz2d8Bl2kxTXeyEnXizIl1oWJLPH8W5JbTvBFqvTnQgRP bOJ1pLhYHMFfJUqeTQWzuIiX9kGssWnTc6DiqfUYjDxqycRol0xQNC/xw8ecRA9ON+h0 OGa+72Ih9SdA3Ip8+NTIYHoEb/gpaBO88EZlZ9dR2nzOLiQeEMtCyB+tNcEdAVnenJeH pkBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=hsf6YslG+iiwGWWyzTzUT651ZdNva63Lvir9YoamAx4=; b=e2xAFHY5GrBoA0liM9IeYG8WLqu0Fd6Xp1oN4S2nXo59QtXS761OITPtRkTKN2zDrl PJGvX86df1+Zq/wM6l9Me8lWlKVXxCHRt3vjqpfiBJXeZCV3Ziw7RCECze+BayT8nOGd rxGkQE5m2yyvJjC7tzeI57667SMU7noluS4zcaoo7bEgjU/lgpYtyEfMOhIf9yz5lZqd MutJqlFujuelHkt4aRfESn8bBpcx9YmUQZ/OQCBhDrf+HrMU0nb9S6ffDNZ8uJMWUDaC brweXIgOAW9RbJT9OF5kOelzNJfZFCJprbCx93YIjbW2z00U3SpMenQ+EqSsJQ0CL3r5 uTVw== X-Gm-Message-State: AOAM532gKrAy9hkVUnRNaUhDpdIdh/EJYZ6Gw7vx1J3Gh3RFAnoR1kI9 +FOZxToJHrchnatAIBu+WckBde42iJk= X-Google-Smtp-Source: ABdhPJxefUx5HtYSGlomhi3A2311yHC3rNT8NTLgzr2dvatp6hP23xr0pW5S1FKBRXURA0y+/rhZgg== X-Received: by 2002:a1c:df08:: with SMTP id w8mr5797209wmg.81.1611787388638; Wed, 27 Jan 2021 14:43:08 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/3] target/tricore: Pass MMUAccessType to get_physical_address() Date: Wed, 27 Jan 2021 23:42:54 +0100 Message-Id: <20210127224255.3505711-3-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210127224255.3505711-1-f4bug@amsat.org> References: <20210127224255.3505711-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastian Koppelmann , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Joe Komlodi , David Brenken , Andreas Konopik Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) '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=C3=A9 Reviewed-by: Bastian Koppelmann --- 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 =3D TLBRET_MATCH; =20 @@ -72,13 +72,11 @@ bool tricore_cpu_tlb_fill(CPUState *cs, vaddr address, = int size, CPUTriCoreState *env =3D &cpu->env; hwaddr physical; int prot; - int access_type; int ret =3D 0; =20 rw &=3D 1; - access_type =3D ACCESS_INT; ret =3D get_physical_address(env, &physical, &prot, - address, rw, access_type); + address, rw, mmu_idx); =20 qemu_log_mask(CPU_LOG_MMU, "%s address=3D" TARGET_FMT_lx " ret %d phys= ical " TARGET_FMT_plx " prot %d\n", --=20 2.26.2