From patchwork Tue Dec 20 11:11:17 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: 635440 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2855680pvb; Tue, 20 Dec 2022 03:26:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EDGyKRurFmjXGXXrNxjTKX2cL9iudDFRmprhxp/0gsnc4s8JrrpJHC4t5Hxcw+rm11KQ7 X-Received: by 2002:a05:6214:e6c:b0:4c7:7257:68a2 with SMTP id jz12-20020a0562140e6c00b004c7725768a2mr79365317qvb.15.1671535595073; Tue, 20 Dec 2022 03:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671535595; cv=none; d=google.com; s=arc-20160816; b=eJHlfm33s6Jr4oPs3UWLOe9SVxKek/dmjuy6t/b6+2Fb2NvH+v8kunjC34mNWOzMqy HRYOdmsuFnYiZAuEWKSMWvt0GaYlbpLt/rW5PBirjjQfcGJooLlftfhBch1ZDuP9XDGT RTOJoRHrKj7AfIKNJ3pRv/PdNzzZgr9b9vXLT3Bfv63itCf9jhMFY599d5qDUAdkbCPI Llf8rtfx40c4kzznlgGXWPOci9qplntNaW6bT+0vlIFnWUghhDvYkvs5mcOfQj8s0euh GoCYqsInmOrQcuZJFTjzw8LGFM+uUHAPnzGms43AAEOVoGc6afZLFTtgeB70lbGh3fx/ Ozjw== 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=fVJHGwvdSALlI3TSuKGt0wEEThjZylR1RqmQ6XBl8QI=; b=XwextofXQhEhhrU9RvF0LKAf9d3JpyZYpdkdC3javeziYs9vopc6VgysLwpys3smUa k+QunJJdHzlzv9MkEcXikdsLljtafttU7eqkoYmP5OZPUJPTFcghUTR+zgupGQyxJMjC EYTWcBu9YhZNk0EjzZFuWmiHCj43M4guE6uYoqGcPckVIiimDgfWvaJjdi7kS8SbEKEO LsvRac+iqGukiJq3+4X4H1O6oKUwL8TH8buK8n2WWGYxyvtbjQaGiQA37JIyBAWZq5MH Hj5qmiLovT8lN/F/d0PTDztxFLZzFIHXGTs27CisCgNM8hQF51bzQ2HwxKPj1Aq5WXbT j2hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QRd0bIQs; 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 pt6-20020a056214048600b004c778634ff4si5147132qvb.197.2022.12.20.03.26.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 03:26:35 -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=QRd0bIQs; 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 1p7aX5-0003zC-9k; Tue, 20 Dec 2022 06:11:40 -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 1p7aWx-0003tP-O5 for qemu-devel@nongnu.org; Tue, 20 Dec 2022 06:11:32 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7aWt-0003g8-Kr for qemu-devel@nongnu.org; Tue, 20 Dec 2022 06:11:30 -0500 Received: by mail-wr1-x430.google.com with SMTP id h16so11343594wrz.12 for ; Tue, 20 Dec 2022 03:11:27 -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=fVJHGwvdSALlI3TSuKGt0wEEThjZylR1RqmQ6XBl8QI=; b=QRd0bIQsshJiwdydBoAtg+xh3geYKkb91kF00NdB8y6P7Z2HneixJTSE6vl9fSsiFV AvAH/U+XB2ryKu/gWz3h0AdqkKudYJujis+25/6l9J8O4nREMwllfOlt3lCjE/Y8BPAS J7GXUF/TRo4q+IxMtPVYyntK9HRtuyUW/MDh5R8IW+OGeQBU2ai5s3G0zeSru1ZKuONi YSrHG4O4WpAAaYlR8gNcl1tl3ZZ33+tXZgHCZQTaMQJzU+jczC4Sns0n/Wltq/+aIkuZ vQLQ4aZhF1Pev3hO/d7XafSy7mNCu9/w3NRZS2bYReMS7qy4GN9hNN7hXjlETS7KlUOm qnWg== 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=fVJHGwvdSALlI3TSuKGt0wEEThjZylR1RqmQ6XBl8QI=; b=G4u44tObhICbSAGHvWKRmCv6arqbyzBN0FG6pwVoVMiW0JG8AzsGZ2pmLgUf+5Yvun QLBXha9/6fVm9axeWzCzzu8dASHMCtVDkxxm23fWgBqq4bLutFKH6XqCT7pvi07DNEn3 SLfdhpi++va4zUMcrPU2ADQcPgjp3J48hctHLd02me3udqHMLi3YReCJGp2O710af2BO njkE2neFsgFGI+nX2s2P0bv3sFIsOlNaWI3Q3UEuS8sQ1ydQ8qRnCzAYbaKjvjJ+zeUA /DkPQob2WzASipH/GmbM9UowoQMy/Y85GUhj3JgOfzKMhA+9m6SOXK1Dm2VEIvBvLhRr wJeA== X-Gm-Message-State: ANoB5pnWoANNEQgHsWQoUyNxQaNZuFVst2fu4y2icnQGfQlR/hmN/MWl 0aUow7OGhH5CTvylRU/JyRI2R1YPcO5N4bbshHc= X-Received: by 2002:a5d:4a8f:0:b0:242:4c11:c062 with SMTP id o15-20020a5d4a8f000000b002424c11c062mr36029826wrq.28.1671534685749; Tue, 20 Dec 2022 03:11:25 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id u1-20020a5d6ac1000000b00241cfe6e286sm12417498wrw.98.2022.12.20.03.11.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 03:11:25 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Greg Kurz , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= , Xiaojuan Yang , Aurelien Jarno , Huacai Chen , Aleksandar Rikalo , qemu-arm@nongnu.org, David Gibson , Jiaxun Yang , Markus Armbruster , Song Gao Subject: [PATCH RESEND v2 0/5] target: Restrict 'qapi-commands-machine.h' to system emulation Date: Tue, 20 Dec 2022 12:11:17 +0100 Message-Id: <20221220111122.8966-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::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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 [resend fixing my last name typography...] All series reviewed, can patches be picked by corresponding maintainers? The "qapi-commands-machine.h" header is not generated in user-only emulation. This series removes its use in user-emu code by moving the QMP code depending on this header into a separate sysemu unit. Since v1: - renamed cpu-monitor.c -> monitor.c on loongarch Philippe Mathieu-Daudé (5): target/arm: Restrict 'qapi-commands-machine.h' to system emulation target/i386: Restrict 'qapi-commands-machine.h' to system emulation target/loongarch: Restrict 'qapi-commands-machine.h' to system emulation target/mips: Restrict 'qapi-commands-machine.h' to system emulation target/ppc: Restrict 'qapi-commands-machine.h' to system emulation target/arm/helper.c | 29 ------------- target/arm/m_helper.c | 1 - target/arm/monitor.c | 28 +++++++++++++ target/i386/cpu.c | 74 ++++++++++++++++++---------------- target/loongarch/cpu.c | 27 ------------- target/loongarch/meson.build | 1 + target/loongarch/monitor.c | 37 +++++++++++++++++ target/mips/cpu.c | 29 ------------- target/mips/sysemu/meson.build | 1 + target/mips/sysemu/monitor.c | 39 ++++++++++++++++++ target/ppc/cpu-qom.h | 2 + target/ppc/cpu_init.c | 48 +--------------------- target/ppc/monitor.c | 50 ++++++++++++++++++++++- 13 files changed, 197 insertions(+), 169 deletions(-) create mode 100644 target/loongarch/monitor.c create mode 100644 target/mips/sysemu/monitor.c