From nobody Tue Feb 10 07:42:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.54 as permitted sender) client-ip=209.85.221.54; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f54.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.54 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1611787385; cv=none; d=zohomail.com; s=zohoarc; b=dnem8jCCFENK7f6lL3SMwQLAe41Knrlvh607OYNmGRLFERrkWL9nQ/DJGRs6LxYx/FtDLROIzSbnMhh40F6O4IJ3WZ5MUKkZcsm4FrcjYxvlDM3woB74bb9c1hVitLCLc1QYs12/iRJuiu0rIkSmCWgBG6FL6hEJzRjGJbe1Ogw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611787385; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=D7TTiZh4CEBq1goSTNvOHrjObfTRjeZppiTNX6JNiI8=; b=BzjvlrrpriYm9b6lsPwctktiLVPVCJTHCM+peaDn0JM8Ijw5htEQGZytS8cpys4ov4SfjKkt1YqW+acBEW9aKKP0chMQOKOyPzWBjzxTghsYoXc84/lho8X/n6OirHjofObkd2VoYuTRSkpD3LXtPuIHnHc7F7c02515YcSOG44= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.54 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.zohomail.com with SMTPS id 1611787385033808.7585326678322; Wed, 27 Jan 2021 14:43:05 -0800 (PST) Received: by mail-wr1-f54.google.com with SMTP id c4so842674wru.9 for ; Wed, 27 Jan 2021 14:43:04 -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 r124sm3970413wmr.16.2021.01.27.14.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 14:43:02 -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=D7TTiZh4CEBq1goSTNvOHrjObfTRjeZppiTNX6JNiI8=; b=PmXrf2AXigkygEF1xVZC1Ov6Wl+HR95zFMzQY/3EwIUso3yONhrU3zkTQcNbV8mGLj hIAF7qi/HdNpHX2a+rjz/8wUSbxiCzv0KqpqoLtBYjn5QB+ktLt1JLv6huuYEhDufypC y+kKIj5y98ZxxhR5rXu4RueS8whPVuY4gb+8HRjQHHStCfGaPWAtrhsYIJWscjeTIuIg TLVtsC3otAMnimMZmnOqALAWfYEU50O9KUqEdAzm+olwG9PcGLMTE94RfKcINT3OEKw9 kNoK3ys7zxxH+q8vw+mYgKto078I/L/Zle2/MeJwMpYge4c0fZwA+H9b/NP2/u+rGX6y gVSg== 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=D7TTiZh4CEBq1goSTNvOHrjObfTRjeZppiTNX6JNiI8=; b=jEruZHeN1ViPiIjtkOFcNhZBZhu+vUkwXReumRROs0mstm7VFm/5tx8seqPmNGpcZD 0P4MbIXwkcSR5IPGF98a3jvZlBZCExrEphewURqjiiR7aW2KaBv91QU1lAjnaP9ALVnM 9O8aUGNR/ZRnmicmxG4e+XGDNsQvEKGevdLTOQpBGBUKisZFNd1S9Myk+7wR+mKDFQmW ql8kuZ8cbzbpTFmggRH2CpWCk91VYTNM/moGCJUpdTJDh1gUWa72sKpGEj30lMPUFRei U6xI2EXeLVULHtruKDeCPigpXsa0BD1pxW6rQWsJuhH128YID3aoaQlqak5f5G9CLARb +QdA== X-Gm-Message-State: AOAM531/rxK2f9B6edZKJtL9Z82zG+ApHPKNeqx3ziwSmg93yUTgFouM 7K2FbVz0+wJap7sQK209L0Y= X-Google-Smtp-Source: ABdhPJzGu3US36AMfOAu9I9YVEPvzcsi1x0pjWXoqaXv5lXog9H6jNHyELW4j00llb4skPU+UMtZNg== X-Received: by 2002:adf:c109:: with SMTP id r9mr13435621wre.261.1611787383304; Wed, 27 Jan 2021 14:43:03 -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: Bastian Koppelmann , Richard Henderson , Joe Komlodi , David Brenken , Andreas Konopik , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/3] target/tricore: Replace magic value by MMU_DATA_LOAD definition Date: Wed, 27 Jan 2021 23:42:53 +0100 Message-Id: <20210127224255.3505711-2-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 X-ZohoMail-DKIM: pass (identity @gmail.com) cpu_get_phys_page_debug() uses 'DATA LOAD' MMU access type. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bastian Koppelmann --- target/tricore/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/tricore/helper.c b/target/tricore/helper.c index 77152932630..81171db833b 100644 --- a/target/tricore/helper.c +++ b/target/tricore/helper.c @@ -50,7 +50,8 @@ hwaddr tricore_cpu_get_phys_page_debug(CPUState *cs, vadd= r addr) int prot; int mmu_idx =3D cpu_mmu_index(&cpu->env, false); =20 - if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, 0, mmu_id= x)) { + if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, + MMU_DATA_LOAD, mmu_idx)) { return -1; } return phys_addr; --=20 2.26.2