From nobody Tue Feb 10 11:56:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.50 as permitted sender) client-ip=209.85.218.50; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f50.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1611844900; cv=none; d=zohomail.com; s=zohoarc; b=n1Ds0t8AwQoxq87+C33qoT50m6VtrmvqFKwdiAnRfmZCnS37l7n5OaSZy0NBFyGA7tgEFf3531hXYMm45XFkgr5BLUTAQr+HyaQjhaWNKo4+cEKvFMqQYXoW/lOMo0tfQNMGQ4xeejfvD4xdI0W63t2guSz7wYlcqUOlfmk0IT4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611844900; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=OxiSlNZhRqvdz8D8CqFLTD2O33eubJzrqgRXZJj8j/Y=; b=dZQFC/OjZ3wVnn8SYKEraPbbB6dPDlKXYAqlszJ6YxkKrFEjeyVNM99AS0UndiWOWFGL03qEtvtsmqDb6Z/FHe5PVBkhKzOFHjLkgiXyJG9HALawSxPpJOKF878NpBx3TfLyuMhX/kHGv8doQ8g2sZ+Pf/5Xu7mbstsdN+AAXeM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by mx.zohomail.com with SMTPS id 1611844900079975.1999997419144; Thu, 28 Jan 2021 06:41:40 -0800 (PST) Received: by mail-ej1-f50.google.com with SMTP id g12so8103101ejf.8 for ; Thu, 28 Jan 2021 06:41:39 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id z6sm2392056ejx.17.2021.01.28.06.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 06:41:37 -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=OxiSlNZhRqvdz8D8CqFLTD2O33eubJzrqgRXZJj8j/Y=; b=ZkYcj1cRAlQlJVcwRSDi3WCYy7lwZuD3S87GKTO4ZyGo1driqgKnDBdZNVRO2g9hxf OStGtHc/uco9VnpG3ZNgNl4hgD0saNmXtF318eAorIWOxINurB/sAsv9PHEsyJ48M/Im nhPm3NprcfcnipyqD3QkX3UUC95nxrsvCh5vPMwhA106Iz5Sf4m+lxttSnBPDPGmBgNt L6ZvZHN3G6o6xEUJ4GcG4DYszEbP8mMCt5Ad65jWXWVDpc8InAV0fwp23Z2vaUnV3pZL nxjgM2DPz1EXixXbqwK2/cWyoAInU+YvFsRhGssm/fz5YQt/UKZ7ERj/Lu8sCkrCKk5r 3fRg== 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=OxiSlNZhRqvdz8D8CqFLTD2O33eubJzrqgRXZJj8j/Y=; b=loNQaufE91y9uhgt61vBE3cXxXIMDHReRCctIKIU/Vu5x5Vr+SJHk0ANwmO8Bqs1YF JxwBdI2inQd0Ie7LpzK/dWD3ujk1hAt7FjdcAO//z0TrwyrEQUqSjyQHYrYwvHZfIrC8 pHrXjyeVhi7bLYIucZl6o7eMwE7yJHkgWiRESYEc8bJTXBPVTS+G+eCPpcVpAu91+4eV hDImCikuuVStyJtrWztPcnD3XlrUNaYnF9SEtlF2ckdmfQ7rtq7KU2riPpYUlb7dnxbZ 8ppdggEGbh8MsykdJ49oZCSyUN5r5+QDdCQzv5NBZREsUN7M7ISJTy2AVDUvneexPpFP ep2A== X-Gm-Message-State: AOAM532BoLSjKz87xlRBS9BVSMr5PKxYJkySsNHTPKk/G6muNs6lw2Qs e3spYFmUbFqy1NZ1ZlNXzd8= X-Google-Smtp-Source: ABdhPJzKsS9ZmP1y6VsDK1sOVYduUVtuzuHfTEos+u8OZKh8jt5+ndzl521UDHwbx3ADOo+MZ+ZkQA== X-Received: by 2002:a17:906:6407:: with SMTP id d7mr9938453ejm.133.1611844898305; Thu, 28 Jan 2021 06:41:38 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Huacai Chen , Joe Komlodi , Aurelien Jarno , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Richard Henderson Subject: [PATCH 02/13] target/mips: Remove access_type argument from get_seg_physical_address Date: Thu, 28 Jan 2021 15:41:14 +0100 Message-Id: <20210128144125.3696119-3-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210128144125.3696119-1-f4bug@amsat.org> References: <20210128144125.3696119-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) get_seg_physical_address() doesn't use the 'access_type' argument, remove it to simplify. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Jiaxun Yang --- target/mips/tlb_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/mips/tlb_helper.c b/target/mips/tlb_helper.c index 1af2dc969d6..9906292440c 100644 --- a/target/mips/tlb_helper.c +++ b/target/mips/tlb_helper.c @@ -222,7 +222,7 @@ static int is_seg_am_mapped(unsigned int am, bool eu, i= nt mmu_idx) =20 static int get_seg_physical_address(CPUMIPSState *env, hwaddr *physical, int *prot, target_ulong real_address, - int rw, int access_type, int mmu_idx, + int rw, int mmu_idx, unsigned int am, bool eu, target_ulong segmask, hwaddr physical_base) @@ -253,7 +253,7 @@ static int get_segctl_physical_address(CPUMIPSState *en= v, hwaddr *physical, hwaddr pa =3D ((hwaddr)segctl & CP0SC_PA_MASK) << 20; =20 return get_seg_physical_address(env, physical, prot, real_address, rw, - access_type, mmu_idx, am, eu, segmask, + mmu_idx, am, eu, segmask, pa & ~(hwaddr)segmask); } =20 @@ -349,7 +349,7 @@ static int get_physical_address(CPUMIPSState *env, hwad= dr *physical, /* Does CP0_Status.KX/SX/UX permit the access mode (am) */ if (env->CP0_Status & am_ksux[am]) { ret =3D get_seg_physical_address(env, physical, prot, - real_address, rw, access_ty= pe, + real_address, rw, mmu_idx, am, false, env->PA= Mask, 0); } else { --=20 2.26.2