From patchwork Tue Dec 20 11:03:05 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: 1717804 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=JtQt8o0U; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Nbv0X2qDCz1ydd for ; Tue, 20 Dec 2022 22:06:52 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7aPE-0000fU-HR; Tue, 20 Dec 2022 06:03:32 -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 1p7aP0-0000aM-Ok for qemu-devel@nongnu.org; Tue, 20 Dec 2022 06:03:20 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7aOx-0002Ff-Ox for qemu-devel@nongnu.org; Tue, 20 Dec 2022 06:03:18 -0500 Received: by mail-wr1-x42d.google.com with SMTP id bx10so11418847wrb.0 for ; Tue, 20 Dec 2022 03:03:14 -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=fPmO79giYZzgVoPI/GK7FFkiLhjSBTX80hRxj5reGpE=; b=JtQt8o0Uvfl+5a8lKDZ0G5urocXjf7pdOmapsI+uQjX20JwkQQNDHpTQKbBUVvSBVL y+0g2aA61s98h3zN2o4k+iE5QlxSWSDTTcgJlwu9z8DymYWYT6goGlMVTGxCu7QFCahp SQ2ci0Ml0Snldje5/ePa7bwaJuLajKE8LsNkIgbbqSh5pXGwjFhUjQZYjvPZ3CgN/whl 7iPuQlpvz2dWZOOBJFsGQEGGAzhs9oqCBtMmF9rkBulnsbPA7TB+ZxSTR9vICVdF1eJT VoOMDpK5fsV4RHIR9TiD2760UIGY8Ef6lYHGTZpflXZaKIaBHtOHjHVo8FQFBbSVXusF YRDQ== 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=fPmO79giYZzgVoPI/GK7FFkiLhjSBTX80hRxj5reGpE=; b=lggb2St1GJedXyMt9PlgRiZDbt+mNX54SBFMOziELjLgRIctFl68dso1O5vbjLfAuX JpdhJC9q31vwbf10ZHmwkDkz1fbq8faHrYZrORwgKXrhTH6o7nSsSSCdAY55t4s4QfOK u9iqhhVnx73ODuChOxFJENkQj+jfV1OGGF/CdJ7nNfC+PY+WtUMSYYD0l0/oJ+VS31dT +NtQ15cbG5PzsKA3EurY9Q80Kms8J6AWN30xO8WJmVyePOiEwLxHbvwLrhTLcgrLsyH8 VINY57E3OI5VTSyOmc97K2kO8FffbFuPl3EgvZWCIWA6gH8/GoRv/2uVA95Dl+Lco+ux be2Q== X-Gm-Message-State: ANoB5pkmQXqR7xYw3DxGfTUHQIfIH+FLrqZ4bTTv2a/U5vjCsMnObPth qaLcOIGccTZfFuy45KR8G7+QWnjqm7dtUCF3ltc= X-Google-Smtp-Source: AA0mqf5hYynypRuAOpVeWo6KOI62UTJYkXWMBCeV56KaHqYgN3St/P01yvvHYyY/JJtKlVmJ9f4mPw== X-Received: by 2002:a05:6000:15cb:b0:242:fa3:3825 with SMTP id y11-20020a05600015cb00b002420fa33825mr35987048wry.37.1671534193513; Tue, 20 Dec 2022 03:03:13 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id f2-20020a5d50c2000000b002362f6fcaf5sm12315814wrt.48.2022.12.20.03.03.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 03:03:12 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Xiaojuan Yang , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= , Greg Kurz , =?utf-8?q?C=C3=A9dric_Le_Goater?= , qemu-ppc@nongnu.org, Peter Maydell , Aurelien Jarno , Song Gao , Jiaxun Yang , David Gibson , Huacai Chen , Aleksandar Rikalo , qemu-arm@nongnu.org, Markus Armbruster Subject: [PATCH v2 0/5] target: Restrict 'qapi-commands-machine.h' to system emulation Date: Tue, 20 Dec 2022 12:03:05 +0100 Message-Id: <20221220110310.8656-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::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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-Daude (1): target/i386: Restrict 'qapi-commands-machine.h' to system emulation Philippe Mathieu-Daudé (4): target/arm: 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