From patchwork Fri Dec 16 21:55:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 634478 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1085295pvb; Fri, 16 Dec 2022 14:23:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+izJ6ME6wWx97k5sSYGzTEO/kC0hvSrk8pl+78eq1yyjh9R8pRZK5TQMoaiRtcbXW8/8A X-Received: by 2002:a05:622a:488d:b0:3a8:14ce:73db with SMTP id fc13-20020a05622a488d00b003a814ce73dbmr36311030qtb.17.1671229439619; Fri, 16 Dec 2022 14:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229439; cv=none; d=google.com; s=arc-20160816; b=DsTikaT/N/r8UKd51UU/j+2d8Wv5tBLqsazqq+s/Ff964ZjELuB0x1i/9fxy8+8w1d rTOx64xc+AVpgM15+KxWOLC2ivg7VZ/rebV+6dhDMxSuiYF5Jx2g4HpphUtRBuzAD6at txHR9kgqddu1z2sAdf0rToSQPCJR3Kf+mePGBKynml+vZTrxF3JwBqKBjAOLW4Qyw/M9 QFsMuuYc38ifIakCrVQchagBm+SsIv3Loa56Ewykwv2BcCHx0hwy258MOOOCKssiLE6f rTcvZvtybJuOmp/RrmQ0r0DQdAyy3+KGGHyLTLPRseQ7z3pirN2M07X8IdpKSaWUQJjc eq8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=hDjaN8eJVHHHAcFnMzr9A5qx6nMta47BhVSDkoRkjiY=; b=SzyuBexksFRDESsYJzCEV0UuT4wl8OcKZb75BTtICASQDqDKqSKjWMEDLfkVNHijOX +t6Wfqjaui+U/x72kd8/xtTSG9E+UcfjUxxTk8BIR1JYISzJ+aNX8rLyFM9Bb5c1l0kT pI0ovcRd0+DD573urAuo+KX7zjgBEbd8sWqa3i/CqsT0GoQqNKocA3g05MqGNe17PUUJ YfZLdkEhG0HbKqRbWJ3U7k7J3l48ivp8C/jNahVgwFO7o79GgQyue+K50seOLtcoQdnC gocdVRHPLFLo4VdYLEtlbCecQiPfKsjv5sQEA1fOXY5iAJZ4U8wq3iJF09pkwqbGrgZo DgKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=koVIL3cK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bp43-20020a05620a45ab00b006fec37428d8si1636659qkb.17.2022.12.16.14.23.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:23:59 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=koVIL3cK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Ig6-0003hx-OA; Fri, 16 Dec 2022 16:55:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Ifx-0003f0-BN for qemu-devel@nongnu.org; Fri, 16 Dec 2022 16:55:30 -0500 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Ifu-00038W-P9 for qemu-devel@nongnu.org; Fri, 16 Dec 2022 16:55:29 -0500 Received: by mail-ej1-x633.google.com with SMTP id fc4so9136828ejc.12 for ; Fri, 16 Dec 2022 13:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hDjaN8eJVHHHAcFnMzr9A5qx6nMta47BhVSDkoRkjiY=; b=koVIL3cKjIUh0I9iexsK0DqWfQr49gTESlxiAo8T9vnX2CJ4QixeCzMydRIRBOKWbx +R5klEOuw0jjsMOseiyYra2DmM7xugL01wBlJceq+pr1ETQMYuEF+l2nrxerxSyoOukk EE8047bs8JQBm+dUp3FUQQC1qnfqTHK47keip65hJwdx3mwendQAsAQLaIBR2pRzqlvf NqOH4fAeX01aJpH0nqGWNSKzukViznSJY7eNEFluBWjQzNLupunEjytyMWUMkkzTPBA2 KPTKjr9ShUXrdrTne0thHjnLliuX8/iEm2579930rtW//wgEDKCU8+iqi5HVgULV6x0O iFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hDjaN8eJVHHHAcFnMzr9A5qx6nMta47BhVSDkoRkjiY=; b=qmtn2MA+0w0oN0pLJNT9RNKlJX2eDNL2126Hxa1464M8ftmIjSBeatFCKj2w+Kccea c0LRwTW/khHYhll5AIEqe7we0z6nFGvdpbEAA5eGxDR5bR1nGtRfgK2AylAP6w24bWd7 81x5PxhYcn+Ik0a6TmekDOEWJ+QhCwX+spP+sC9vBtg5MKILgm3yS3l5PfNzYMB5nlxr eOUORIiVYTHcdV7YOrpOgK/DqfVMuQA+51/PiItYZZnyi4f0ZH1/Crx8dIdD+N5jISwT dFD3uDXD+kZADdbmpHwObX10uPJftz1ykBSKFgIUYoD6FvSC5rEDX+k5x8rBaugHZRJ6 zCjA== X-Gm-Message-State: ANoB5pl8QduBpK8Nb6w48BzPad4As6qMF0bkBGA6Bxt6i1Q2Rc/x5O88 QvkFtWuMbVBEuvIA8HnzBlMWsn/Dh/D3O75Hi/0= X-Received: by 2002:a17:906:8385:b0:7c4:f348:3b1f with SMTP id p5-20020a170906838500b007c4f3483b1fmr10710690ejx.44.1671227722936; Fri, 16 Dec 2022 13:55:22 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id f22-20020a17090631d600b007aece68483csm1261840ejf.193.2022.12.16.13.55.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 13:55:22 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Greg Kurz , qemu-ppc@nongnu.org, =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , Yanan Wang , Artyom Tarasenko , Mark Cave-Ayland , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , qemu-arm@nongnu.org, Laurent Vivier , Palmer Dabbelt , Max Filippov , Alistair Francis , Yoshinori Sato , "Edgar E. Iglesias" , David Gibson , Marcel Apfelbaum , Marek Vasut , Bin Meng , Eduardo Habkost , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= , Paolo Bonzini , =?utf-8?q?C=C3=A9dric_Le_Goater?= , qemu-riscv@nongnu.org, kvm@vger.kernel.org, Stafford Horne , Peter Maydell , Chris Wulff Subject: [PATCH v3 0/5] target/cpu: System/User cleanups around hwaddr/vaddr Date: Fri, 16 Dec 2022 22:55:14 +0100 Message-Id: <20221216215519.5522-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=philmd@linaro.org; helo=mail-ej1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Missing review: #1 We are not supposed to use the 'hwaddr' type on user emulation. This series is a preparatory cleanup before few refactors to isolate further System vs User code. Since v1: - only restrict SavedIOTLB in header (Alex) - convert insert/remove_breakpoint implementations (Peter) Since v2: - added 'dump' patch - collected R-b tags Philippe Mathieu-Daudé (5): dump: Include missing "cpu.h" header for tswap32/tswap64() declarations cputlb: Restrict SavedIOTLB to system emulation gdbstub: Use vaddr type for generic insert/remove_breakpoint() API target/cpu: Restrict cpu_get_phys_page_debug() handlers to sysemu target/cpu: Restrict do_transaction_failed() handlers to sysemu accel/kvm/kvm-all.c | 4 ++-- accel/kvm/kvm-cpus.h | 4 ++-- accel/tcg/tcg-accel-ops.c | 4 ++-- dump/dump.c | 1 + gdbstub/gdbstub.c | 1 - gdbstub/internals.h | 6 ++++-- gdbstub/softmmu.c | 5 ++--- gdbstub/user.c | 5 ++--- include/hw/core/cpu.h | 6 ++++-- include/sysemu/accel-ops.h | 6 +++--- target/alpha/cpu.h | 2 +- target/arm/cpu.h | 2 +- target/arm/internals.h | 2 ++ target/cris/cpu.h | 3 +-- target/hppa/cpu.h | 2 +- target/i386/cpu.h | 5 ++--- target/m68k/cpu.h | 4 +++- target/microblaze/cpu.h | 4 ++-- target/nios2/cpu.h | 2 +- target/openrisc/cpu.h | 3 ++- target/ppc/cpu.h | 2 +- target/riscv/cpu.h | 12 ++++++------ target/rx/cpu.h | 2 +- target/rx/helper.c | 4 ++-- target/sh4/cpu.h | 2 +- target/sparc/cpu.h | 3 ++- target/xtensa/cpu.h | 2 +- 27 files changed, 52 insertions(+), 46 deletions(-)