Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 362F8CD5BC8 for ; Tue, 26 May 2026 20:39:12 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wRyWn-0000Wg-S6; Tue, 26 May 2026 16:37:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wRyWm-0000Vh-C7 for qemu-arm@nongnu.org; Tue, 26 May 2026 16:37:28 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wRyWk-0006lX-Ln for qemu-arm@nongnu.org; Tue, 26 May 2026 16:37:28 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-49056b9f04aso45367355e9.0 for ; Tue, 26 May 2026 13:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1779827845; x=1780432645; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=exQJQiRJgHjeY8sH5JvI6CVNRRjB24243o2eBjSMOhc=; b=amXMUQr8m/ydSJPLTG5Bhx8QyrT7xlbzn28hFzZXJlGYb6aqnL65i1UymyIvhrM5gK x4LSSP/ZDMLMeUlhHvSZQvGebd5ap+7tXAeO3vY2sIBI+NAoMz5rL+hr43HnsQqFmRbj XQOsHP46RvVWZ/OYhoznEpAem0sxDrHcUepaxnrnCMBTuukEyKjpczAP8Uw5OnaBvfEg 3Q7fs1Vt2EJWoRsaQLO34SV9BbJFIzwsY1bUGUUfBuhTvcBvvMRKd2+EM0wuADdnFSe4 gpCrX+BE0m6+ggb3DV2j47b1K39IWJEo+W8zI8t1QFXxEHJNLn68D9PYPUrwv7FRPL5i vjfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779827845; x=1780432645; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=exQJQiRJgHjeY8sH5JvI6CVNRRjB24243o2eBjSMOhc=; b=FPMzZOQGARJXfN8wOGuKzYNRwTH9+KBrPI3YfvgYlluok6gc3paLQEWYaKsJKTcYi0 SB9Au9JiSTkgobeeb/Gl+CQVmfb/8XcNJ9J4hWb/b4WvmL1ewdZEFUPzacBZ/ObplylF rbyzqXxrteh6Co4VzC4oowik0KUgDVXtY7guqQaVs3YokiAS+9LIuNL9pLi4NA3diwjS aEl5uoBEzKDQVRsTz2C9kstD91jzZeS9qyyNK2SDMAPeWWxZ35W9WbWYJrk6+/38zWw0 TrdQWL6DAGscnCjf3xaW91C3pv5wo1fckol2G3IoSsynpQ1kN2fm4OMZkfZNtwJeeAf0 3dUw== X-Gm-Message-State: AOJu0Ywx7y/7UhBvKdxgIWyG+UrXezf3L8T/Vz6++JruTFty9PC2ZRbk 0sKk1hFMRIB5pXufaprzhSIggmBCBTE7B1ge6OdMe6nic2OB/C1xaXwhbiRgJn4q+qs= X-Gm-Gg: Acq92OFjW5SbtivS/mbb5MDCx+xqusR8KFPaOf92GUkCqcmlVXZ28jLUX20HPyLkgLK 9hhm9ebox2g2RQHJiFvlQ4mCemIkoBSFhdT2aOw3wuUntzhJ2VKsmtwAODU+36UbXx6dCrvH60Q Xc1Qz1Bm31laUBNdCCTPkJ8lwv2BdbfBPn6WDDKymSdNjWD5SRg9oPcsd0cza8VoYimWvVXE2bP YRozx3HfwrjEC3Z2wteVju2KY2BfkxJ/lZ657ybRz9B6aw9YRtyw+kaqMXDNZUH+dl7o7EJtD/o nKR1eT2Yn9nMTEWRO08RsbVo0Q0TTerpg++J80Apukzl6Sgde95iwpUjtZEqYVG+aEav544dqiB +4dMHuZwUyzebcdlx/CN5IkEWyslh1dX9zCkaoBFiTHAJNJkzj/1F+je/pwnrcO9vspxJd5muBD +DlR0qNAzU3dFQbQeXZN4atqsZf2v3mq6sIjs6chol0gzItiQFtmxOCHwgirVnMr1Cvg== X-Received: by 2002:a05:600d:844f:20b0:48f:e230:d5ab with SMTP id 5b1f17b1804b1-49042adef3bmr247079085e9.31.1779827844408; Tue, 26 May 2026 13:37:24 -0700 (PDT) Received: from m17.home (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45edb557545sm884277f8f.12.2026.05.26.13.37.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 May 2026 13:37:23 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v9 00/17] single-binary: Make hw/arm/ common Date: Tue, 26 May 2026 22:37:05 +0200 Message-ID: <20260526203722.79463-1-philmd@linaro.org> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Series fully reviewed. Since v8: - Rebased on top of e28b83116af ("Merge tag 'pull-aspeed-20260526') Since v7: - Rebased on top of 8d3e31c0d57 (IDAU interface) Since v6: - Do not initialize Aspeed CPU in SoC realize (cdrx) Since v5: - Unify 'max' CPU type (rth, pm215) Since v4: - Add DEFINE_MACHINE_WITH_INTERFACES (Zoltan) - Use GPtrArray for get_valid_cpu_type (Richard) - Define InterfaceInfo[] arrays (Richard) - Collect R-b tags Since v3: - QAPI structure renamed as QemuTargetInfo - MachineClass::get_valid_cpu_types() runtime - target_aarch64() checking SysEmuTarget value - Remove CONFIG_TCG #ifdef'ry in hw/arm/ Since v2: - More comments from Pierrick addressed - Use GList to register valid CPUs list - Remove all TARGET_AARCH64 uses in hw/arm/ Since v1: - Dropped unrelated / irrelevant patches - Addressed Pierrick comments - Added R-b tag - Only considering machines, not CPUs. Philippe Mathieu-Daudé (17): hw/arm/raspi: Initialize 64-bit CPU types during DeviceRealize() hw/arm/raspi: Build objects once hw/arm/aspeed: Do not realize 64-bit CPU types under QTest hw/arm/aspeed: Build objects once hw/arm/meson: Remove now unused arm_ss[] source set target/arm: Introduce common system/user meson source set target/arm: Build gdbstub64.o as common object target/arm: Build cpu64.o as common object target/arm: Extract common code related to 'max' CPU target/arm: Use make_ccsidr(LEGACY) in 32 bit 'max' CPU type target/arm: Implement DBGDEVID* registers in max AArch32 CPU target/arm: Only set %kvm_target when KVM is enabled target/arm: Factor aarch64_aa32_a57_init() out target/arm: Re-use common aarch64_aa32_a57_init() helper target/arm: Define 'max' CPU type in cpu-max.c target/arm: Build cpu32-system.o as common object target/arm: Build cpu-max.c once target/arm/internals.h | 2 + hw/arm/aspeed_ast27x0.c | 14 ++ hw/arm/bcm2836.c | 14 +- hw/arm/raspi.c | 4 - target/arm/cpu-max.c | 241 +++++++++++++++++++++ target/arm/cpu64.c | 80 +------ target/arm/tcg/{cpu32.c => cpu32-system.c} | 174 +-------------- target/arm/tcg/stubs32.c | 10 + hw/arm/meson.build | 15 +- target/arm/meson.build | 26 ++- target/arm/tcg/meson.build | 57 ++--- 11 files changed, 318 insertions(+), 319 deletions(-) create mode 100644 target/arm/cpu-max.c rename target/arm/tcg/{cpu32.c => cpu32-system.c} (81%) -- 2.53.0