{"id":2197834,"url":"http://patchwork.ozlabs.org/api/1.0/covers/2197834/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260218-phys_addr-v6-0-a603bf363218@rev.ng>","date":"2026-02-18T17:21:26","name":"[v6,0/7] single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS","submitter":{"id":92408,"url":"http://patchwork.ozlabs.org/api/1.0/people/92408/?format=json","name":"Anton Johansson","email":"anjo@rev.ng"},"series":[{"id":492577,"url":"http://patchwork.ozlabs.org/api/1.0/series/492577/?format=json","date":"2026-02-18T17:21:30","name":"single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS","version":6,"mbox":"http://patchwork.ozlabs.org/series/492577/mbox/"}],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=rev.ng header.i=@rev.ng header.a=rsa-sha256\n header.s=dkim header.b=MrOQ/Shq;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fGNZ95wqKz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 19 Feb 2026 04:20:33 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vslCj-0005Uo-Vo; Wed, 18 Feb 2026 12:19:14 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <anjo@rev.ng>) id 1vslCO-0005PQ-EK\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 12:18:55 -0500","from rev.ng ([94.130.142.21])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <anjo@rev.ng>) id 1vslCG-0005aZ-Hm\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 12:18:49 -0500"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rev.ng;\n s=dkim; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version:\n Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description:\n Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:\n List-Post:List-Owner:List-Archive:List-Unsubscribe:List-Unsubscribe-Post:\n List-Help; bh=Yog9jPtAES0Jn63OVmBniBo9y/VkOCMQJJHTIyDoGno=; b=MrOQ/Shqo7LeVKu\n 2MzcPiOKFxIMCKlTNGHCwxb3E6b3TV/qmXM/8Ow/r/AwaB8LwN8uKQ/NPVOEUSJwo4XHx5oExRssI\n C6bxdyKY3UoO03ShYRdB1nT95JV3sHpHPo2FY+OQAwr/n59ybSb/jgVwK03xUv7tP3SE8oYN18q/x\n Is=;","Subject":"[PATCH v6 0/7] single-binary: Drop TARGET_PHYS_ADDR_SPACE_BITS","Date":"Wed, 18 Feb 2026 18:21:26 +0100","Message-Id":"<20260218-phys_addr-v6-0-a603bf363218@rev.ng>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","X-B4-Tracking":"v=1; b=H4sIAAAAAAAC/1XOS27DIBSF4a1EjEt0H2BMR91HVVWER8zEiaCyG\n kXee0mipHh4rvh+cRU1lhyreN9dRYlLrvk0tzG87YSf3HyMMoe2BQFpRFDyPF3qtwuhyAMkZaJ\n jQOVEe38uMeXfe+vzq+0p159TudzTC96ujwqB7SoLSpCeR5M4GgrGfLRv7OejuCUW6hjqnlFjA\n 7NzGCyRDxvGTzYAIvWMG9PJQgoHBajThql/Rgg9U40Z0k6PNo7sxw3TPRt6phsjGzRRQmbrX2x\n d1z/FwJN3ewEAAA==","X-Change-ID":"20251104-phys_addr-b0f47ea3014a","To":"qemu-devel@nongnu.org","Cc":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n  Richard Henderson <richard.henderson@linaro.org>,\n  Helge Deller <deller@gmx.de>, Paolo Bonzini <pbonzini@redhat.com>,\n  Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>,\n  Palmer Dabbelt <palmer@dabbelt.com>,\n  Alistair Francis <alistair.francis@wdc.com>,\n  Brian Cain <brian.cain@oss.qualcomm.com>,\n  Chao Liu <chao.liu.zevorn@gmail.com>, Anton Johansson <anjo@rev.ng>","X-Developer-Signature":"v=1; a=ed25519-sha256; t=1771435335; l=3743;\n i=anjo@rev.ng; s=20260210; h=from:subject:message-id;\n bh=cF/SKDDeS9pFbN8O0z4Rg2jBtPjLR3INVqUkjt4c4ng=;\n b=+izUq47c8FzTKYhURlJcuxhhdBZ48dHPY7GV7fbIakcocznkKW9q8gV8NIGe60F/Y5rlt1H5V\n 3RwMELK/wqfCgqfc7qSi8Qvjcw5WEq5pMLLnQJ04S4QqbK+0Gh6ht4h","X-Developer-Key":"i=anjo@rev.ng; a=ed25519;\n pk=dKsZvj/g3kgDxnV1/SWg8a0YNGSpWtFGNsWIepQYKow=","Received-SPF":"pass client-ip=94.130.142.21; envelope-from=anjo@rev.ng;\n helo=rev.ng","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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Reply-to":"Anton Johansson <anjo@rev.ng>","From":"Anton Johansson via qemu development <qemu-devel@nongnu.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"The target macro TARGET_PHYS_ADDR_SPACE_BITS is unused since commit\n\n  2e8fe327eb6 (\"accel/tcg: Simplify L1_MAP_ADDR_SPACE_BITS\"),\n\nreplace the handful of remaining uses with runtime functions or\nconstants.\n\nFor discussion see:\n\n  https://lore.kernel.org/qemu-devel/8f0db5c1-f20b-4b7a-8d6c-76ce7ec7b4e0@linaro.org/\n\nSeries fully reviewed.\n\nSuggested-by: Richard Henderson <richard.henderson@linaro.org>\nSigned-off-by: Anton Johansson <anjo@rev.ng>\n---\nChanges in v6:\n- Added reviewed-bys\n- Link to v5: https://lore.kernel.org/qemu-devel/20260216-phys_addr-v5-0-29d522f1339c@rev.ng\n\nChanges in v5:\n- Added RISCVIOMMUState::pas_bits property (Richard, Chao);\n- Dropped already merged alpha patch (Philippe);\n- Added reviewed-bys;\n- Link to v4: https://lore.kernel.org/qemu-devel/20260210-phys_addr-v4-0-725a589e83c8@rev.ng\n\nChanges in v4:\n- Revert to using 40 bit physical addresses for HPPA to not break SeaBIOS\n  functional tests. This will be addressed in a separate series;\n- Added HPPA patch 3/8 to convert a missed 32-bit abs -> physical\n  address conversion;\n- Link to v3: https://lore.kernel.org/qemu-devel/20260112-phys_addr-v3-0-5f90fdb4015f@rev.ng\n\nChanges in v3:\n- Added reviewed-by;\n- Widened CC;\n- Link to v2: https://lore.kernel.org/qemu-devel/20251215-phys_addr-v2-0-633aa1d922cd@rev.ng\n\nChanges in v2:\n- Move alpha_phys_addr_space_bits() to linux-user/alpha/target_proc.h\n  (Richard);\n- Link to v1: https://lore.kernel.org/qemu-devel/20251209-phys_addr-v1-0-c387f3e72d77@rev.ng\n\n---\nAnton Johansson (7):\n      target/hppa: Define PA[20|1X] physical address space size\n      hw/hppa: Use hppa_abs_to_phys_pa1x()\n      target/i386: Drop physical address range checks\n      target/loongarch: Introduce loongarch_palen_mask()\n      hw/loongarch: Use loongarch_palen_mask()\n      hw/riscv: Set IOMMU PAS via property\n      Drop TARGET_PHYS_ADDR_SPACE_BITS\n\n hw/riscv/riscv-iommu.h            |  1 +\n include/exec/cpu-defs.h           |  3 ---\n include/exec/poison.h             |  2 --\n include/hw/loongarch/boot.h       |  3 ++-\n target/alpha/cpu-param.h          |  3 ---\n target/arm/cpu-param.h            |  2 --\n target/avr/cpu-param.h            |  1 -\n target/hexagon/cpu-param.h        |  1 -\n target/hppa/cpu-param.h           |  3 ---\n target/hppa/cpu.h                 |  1 +\n target/i386/cpu-param.h           |  2 --\n target/i386/tcg/helper-tcg.h      |  2 --\n target/loongarch/cpu-mmu.h        |  1 +\n target/loongarch/cpu-param.h      |  1 -\n target/loongarch/internals.h      |  1 -\n target/m68k/cpu-param.h           |  1 -\n target/microblaze/cpu-param.h     |  2 --\n target/mips/cpu-param.h           |  2 --\n target/or1k/cpu-param.h           |  1 -\n target/ppc/cpu-param.h            |  7 -------\n target/riscv/cpu-param.h          |  2 --\n target/rx/cpu-param.h             |  1 -\n target/s390x/cpu-param.h          |  1 -\n target/sh4/cpu-param.h            |  1 -\n target/sparc/cpu-param.h          |  2 --\n target/tricore/cpu-param.h        |  1 -\n target/xtensa/cpu-param.h         |  1 -\n hw/hppa/machine.c                 |  2 +-\n hw/loongarch/boot.c               | 28 ++++++++++++++++------------\n hw/loongarch/virt.c               |  5 ++++-\n hw/riscv/riscv-iommu-pci.c        |  3 +++\n hw/riscv/riscv-iommu.c            |  8 ++++----\n hw/riscv/virt.c                   |  7 +++++++\n target/hppa/mem_helper.c          | 32 +++++++++++++++++++++++++++-----\n target/i386/cpu.c                 |  9 +++------\n target/i386/kvm/kvm.c             |  3 +--\n target/loongarch/cpu_helper.c     | 15 ++++++++++++---\n target/loongarch/tcg/tlb_helper.c | 12 ++++++++----\n 38 files changed, 91 insertions(+), 82 deletions(-)"}