From nobody Tue May 21 18:05:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) client-ip=209.85.128.43; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f43.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1611794172; cv=none; d=zohomail.com; s=zohoarc; b=moNpP+K/R0jicB1QUiWJly62s3ubW+zaGPxLbHuztPILllmsS/I6z3yIpY0Y771auuYn9NJ24HLDlNvIuFZB+JQkCNkQeJobAlKzKRwrfj8NlnpiZPgOpzbmagaADkyH3e74JTLMsZQTiWhmUzJs1+EhmIwbEqStSzCIaGOIyH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611794172; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Sender:Subject:To; bh=8utqxPpitXaSmR9NLbaxoT1sgLxrNIez816r2NaVv6A=; b=BPgAkQXfkbzB3or7MxS1B64Fb9xXxCIpmNpLGhV+46JfTJGPS/tjRuC44kzxgOsaknAeEjzafHV+ZoplVFpEHDa57gEEHrhAAzniqOnMJpd8u4yzsM8Ogo9sh/7qAZKrLb8rmsaItxQl5a8QTo9+PMdBAkdKGWjsybgQ+pVZBf4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.zohomail.com with SMTPS id 1611794172854878.555477953924; Wed, 27 Jan 2021 16:36:12 -0800 (PST) Received: by mail-wm1-f43.google.com with SMTP id c127so3166552wmf.5 for ; Wed, 27 Jan 2021 16:36:12 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id b132sm4175544wmh.21.2021.01.27.16.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 16:36:10 -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:mime-version :content-transfer-encoding; bh=8utqxPpitXaSmR9NLbaxoT1sgLxrNIez816r2NaVv6A=; b=bMpRCHDnP/hmo5j1sma07V9SukzR7PtfgNllO+569sffkc86IZ0/DTPWahnP7d5syJ vVIIxCrtb9VsHlArBZD3OaAqQmHp2eSIxRX/Lb7X3ExrspcB+0ymURMxy3R8oaklncIp 1k5KmykBvk5H6cOb0DlQruhF3UnLRvloW9GFxo9VdSdSvPkwoKvk20oxd4izRrYynUMh +AhDhjM8ktpo1Zt12Gimwp0l5bCjrsYg8gwHj9vYRJlxI/i+FZa1ZPlh2qGoPXOP0tCi m/KdpqjSnlSe7S73/kuuTssdRnc5BJUcL9fDNMfid+PPWCcBYM3Sqit/2mmTUGDuRd9a MMjA== 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 :mime-version:content-transfer-encoding; bh=8utqxPpitXaSmR9NLbaxoT1sgLxrNIez816r2NaVv6A=; b=R3ZlipUksdBSjXISrXWL7Sc/czU72EXPMjqUdA6Ch28hI2KIZHfwOU4mBAdH/4BGdv 7Jf2oWialgi/mi57XeiZOlsDLhx4DXlwR7Jy7yF7kWmoP4QRSSS/A/RsZpRRGiMk75Ih G7WAgCjkO6cihECC9Kg7jjbwqKjIIULGvG1TFnkhiZjHHf0d4icS1aEd9DcrbuHGWrI+ xLSeHadCseaDJQncwXBMkslbo8kx8N4NY+bEB4MBCdoUrvDa++l+F+2EALvgmcMNBw0b POGIJtx511GMaHoSIZQqeIaIiDBDk5IklccIn7otsM3vFbDd7SAJpLa4wdYGEpo0IEwy CBaA== X-Gm-Message-State: AOAM5337mv8VLWoMIpwwMkssSgo+OrqDooC6M2ck3YFz4YSIiCJBzy5H 327lljJcbY4YBQXNwHMz7vQ= X-Google-Smtp-Source: ABdhPJw0NcoW/OUd866vrh59NNvVbovyYUFYS7GstUoCT5NrvdsljoovwfGsIwsYk1rGti2DEd8D/w== X-Received: by 2002:a1c:9cd8:: with SMTP id f207mr6391200wme.155.1611794171095; Wed, 27 Jan 2021 16:36:11 -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: Anthony Green , Joe Komlodi , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] target/moxie: Let moxie_mmu_translate() use MMUAccessType access_type Date: Thu, 28 Jan 2021 01:36:08 +0100 Message-Id: <20210128003608.3563322-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) moxie_mmu_translate() doesn't do much work. Still keep its prototype similar to the other targets, by taking a MMUAccessType argument. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/moxie/mmu.h | 2 +- target/moxie/helper.c | 2 +- target/moxie/mmu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/moxie/mmu.h b/target/moxie/mmu.h index d80690f4d2f..9fddc336746 100644 --- a/target/moxie/mmu.h +++ b/target/moxie/mmu.h @@ -14,6 +14,6 @@ typedef struct { =20 int moxie_mmu_translate(MoxieMMUResult *res, CPUMoxieState *env, uint32_t vaddr, - int rw, int mmu_idx); + MMUAccessType access_type, int mmu_idx); =20 #endif diff --git a/target/moxie/helper.c b/target/moxie/helper.c index b1919f62b34..0e72b1726e3 100644 --- a/target/moxie/helper.c +++ b/target/moxie/helper.c @@ -112,7 +112,7 @@ hwaddr moxie_cpu_get_phys_page_debug(CPUState *cs, vadd= r addr) MoxieMMUResult res; int miss; =20 - miss =3D moxie_mmu_translate(&res, &cpu->env, addr, 0, 0); + miss =3D moxie_mmu_translate(&res, &cpu->env, addr, MMU_DATA_LOAD, 0); if (!miss) { phy =3D res.phy; } diff --git a/target/moxie/mmu.c b/target/moxie/mmu.c index 87783a36f82..228d4c42ff4 100644 --- a/target/moxie/mmu.c +++ b/target/moxie/mmu.c @@ -24,7 +24,7 @@ =20 int moxie_mmu_translate(MoxieMMUResult *res, CPUMoxieState *env, uint32_t vaddr, - int rw, int mmu_idx) + MMUAccessType access_type, int mmu_idx) { /* Perform no translation yet. */ res->phy =3D vaddr; --=20 2.26.2