From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04661C433DB for ; Sun, 7 Feb 2021 23:24:48 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 72FCA64DE7 for ; Sun, 7 Feb 2021 23:24:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72FCA64DE7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8tQ6-0000iU-I3 for qemu-devel@archiver.kernel.org; Sun, 07 Feb 2021 18:24:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8tOf-0007LR-0j; Sun, 07 Feb 2021 18:23:17 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:33974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8tOd-00014Y-I4; Sun, 07 Feb 2021 18:23:16 -0500 Received: by mail-wr1-x434.google.com with SMTP id g10so15170949wrx.1; Sun, 07 Feb 2021 15:23:14 -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=y1pGU14UHqg8rNsEIaCyxsn4UDDD0m20iHSEWL2qx/Q=; b=TKBDWfIup/ugeSs+yR9NlfKx/HGCBkDqJ00cSaUOHQEaoAWM+e++jYevmJFqc7Vg0C rLYD7u2CGCidVZxFaHFF7TecGq5jDWya+3LkMHbFvrCXnh4r3x9/o+VjNHpFtCuOQn01 7ub9Ga73lnMWI3qqqcNbFPznfNpJ5s3cangE6lJwNmf84aJVRzBMYe1mXM/jkX+yuCQI pusn8N+w1m/6OVcS0cYX4fRBIgu9VGCuegUwVXo+bdi6nmxvYX01biBTdvVu5oQZCHgV 6pcR7Ty0zdrMVE0E36I9iKJYBhJGdDeDfuB1Q6QMyQeZUTs3N7dEKwGo4KVjpj+cefYt XcYA== 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=y1pGU14UHqg8rNsEIaCyxsn4UDDD0m20iHSEWL2qx/Q=; b=B3/fwQkyHyO48WkcA0y7HPeZ/mwS7AV4KskNhKZ3d5jGl7brFHrX7ytFL7N6HX0EBC 1JsSTGybvh0Naep7yhElPnZqzi5Td3TymlIs+MwOhfBg0jNVraWkKRh0ztARCvxgRAMw yJ02d1XoI5h1heRC6Ft72WkVhjUY9Nty2VbuXafxieM689BhsHHO4/lY64MaP/DZVzVC EE+vwh2gujvU+TSgUlzw9UMrjWByRJzEcxHQRUrkON7l1EYC6D4BAhJrCAfPx80GCBTS JQis78IHVLUSkPtzhEKhXhws/BDpCiw/jDe7xDqjRFXcFyh4hT3Yum1TC9ttlnufCrVV UXZg== X-Gm-Message-State: AOAM5334i1TD+LWO2hW7Ykx9sVwAPSPiar7BiixQDZ/NJ73HxP7ntoMn uDqd3I3apVUWIX3LfWcfTduaacIQwbg= X-Google-Smtp-Source: ABdhPJwSIVoWQ/Jqel/IBUw773Y2P+SPnrGRqwGLR1kgUfexXfzOflsuZqX0oBStxfASFqWJisPEHw== X-Received: by 2002:a5d:470f:: with SMTP id y15mr16791857wrq.187.1612740193336; Sun, 07 Feb 2021 15:23:13 -0800 (PST) Received: from localhost.localdomain (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id d9sm26583482wrq.74.2021.02.07.15.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 15:23:12 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [RFC PATCH v2 0/6] exec: Remove "tcg/tcg.h" from "exec/cpu_ldst.h" Date: Mon, 8 Feb 2021 00:23:04 +0100 Message-Id: <20210207232310.2505283-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 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x434.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.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, 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: Peter Maydell , Alistair Francis , qemu-riscv@nongnu.org, Yoshinori Sato , Sagar Karandikar , Bastian Koppelmann , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier , qemu-arm@nongnu.org, Palmer Dabbelt , Claudio Fontana , Paolo Bonzini , Aleksandar Rikalo , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since v1:=0D - Do not move tlb_vaddr_to_host()=0D =0D Hi,=0D =0D I wondered why changing something in "tcg/tcg.h" would trigger=0D rebuilding the whole tree and figured the inclusion in=0D "exec/cpu_ldst.h".=0D =0D By making tlb_addr_write() static to accel/tcg/cputlb.c we can=0D remove the "tcg/tcg.h" inclusion and reduce the number of objects=0D to rebuild.=0D =0D I added tlb_assert_iotlb_entry_for_ptr_present() but there is=0D this comment in target/arm/mte_helper.c which I don't understand=0D much (so have no clue how to fix this TODO) but I suppose this=0D would be to add a proper implementation and not need this ugly=0D tlb_assert_iotlb_entry_for_ptr_present():=0D =0D * TODO: Perhaps there should be a cputlb helper that returns a=0D * matching tlb entry + iotlb entry.=0D =0D Regards,=0D =0D Phil.=0D =0D Philippe Mathieu-Daud=C3=A9 (6):=0D target: Replace tcg_debug_assert() by assert()=0D target/m68k: Include missing "tcg/tcg.h" header=0D target/mips: Include missing "tcg/tcg.h" header=0D accel/tcg: Include missing "tcg/tcg.h" header=0D accel/tcg: Refactor debugging tlb_assert_iotlb_entry_for_ptr_present()=0D exec/cpu_ldst: Move tlb* declarations to "exec/exec-all.h"=0D =0D include/exec/cpu_ldst.h | 28 -------------------=0D include/exec/exec-all.h | 25 +++++++++++++++++=0D target/arm/translate.h | 4 +--=0D accel/tcg/cputlb.c | 23 ++++++++++++++++=0D accel/tcg/tcg-accel-ops-mttcg.c | 1 +=0D accel/tcg/tcg-accel-ops-rr.c | 1 +=0D target/arm/mte_helper.c | 15 +++--------=0D target/arm/sve_helper.c | 18 +++++--------=0D target/arm/translate-a64.c | 12 ++++-----=0D target/arm/translate-sve.c | 4 +--=0D target/arm/translate.c | 36 ++++++++++++-------------=0D target/hppa/translate.c | 4 +--=0D target/m68k/op_helper.c | 1 +=0D target/mips/msa_helper.c | 1 +=0D target/rx/op_helper.c | 6 ++---=0D target/rx/translate.c | 14 +++++-----=0D target/sh4/translate.c | 4 +--=0D target/riscv/insn_trans/trans_rvv.c.inc | 2 +-=0D 18 files changed, 105 insertions(+), 94 deletions(-)=0D =0D -- =0D 2.26.2=0D =0D