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: 635436 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2847585pvb; Tue, 20 Dec 2022 03:06:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ukVnAjQ1rlg8HT1mM1UsRbNEDKYdYg/tO26SGIYU0FPS8Hwq3qFQR4sTUqKPH5Sq6/1Fy X-Received: by 2002:ac8:5495:0:b0:3a7:eb36:5cb2 with SMTP id h21-20020ac85495000000b003a7eb365cb2mr64014305qtq.29.1671534410875; Tue, 20 Dec 2022 03:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671534410; cv=none; d=google.com; s=arc-20160816; b=tPNpzlEmIJr1dtmB40M+scsFcmL/OrCFRC+Pod6OkuYsDDVCQLpv5IvhXf6zEnPZty FdiWproU9pBIpru/Ry/Rdgx/O3dp2SWy8hUuuRjZKVhNBQ8sIuxFwg5Cja1l2wLofWvZ oIWrWJno0FeH08cYLPTXqpNBM4EtE2oIkj8G7TWigAcero3w+JJmsfp81tTBquyD3Gu5 lhhXe2hfEFTyTZAviDGpWpcRCfcU8TR+UJhzPusvDOWeR6dreh+Hln3QrM4cFy6vD3Cf 5aeF/uUvno2Uk3sR7w5kW2w8CnLE64k/4rvDUZyc31ia3v7p9KyYe4gxcma/TPKmP3mU npcg== 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=fPmO79giYZzgVoPI/GK7FFkiLhjSBTX80hRxj5reGpE=; b=i0+AaD0azBzQUVCluyVMz94po1b2vc8qwKQNR+4bAERaKrZSPsHdImSx9Cd1nscmlc Rbp6elOrt+NbE/imm1U3WgTkZQ787xwbkgE4CEt2tzCjIubADMmyD/zCYdVlJ8DRUt9B xPRVhDNh587UmOjr3ZPrqQyTA+Dyj7/B9BasPazS4XLqDgP4ycdcfU66MT23kGxBt5ZP 441154QbXCfONNdB6hyh7f/Fc7yPuxNhcbXHXN0/AhFOu6ui/JNq3oREOfSOw97pB2WK 1C2nBdvLVus3uBzI/koTtx/nGwa5vOllpmDT4GFRqq/hHe+M2HPc+dldsexslhZzU0Jk VZzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JtQt8o0U; 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 e20-20020ac845d4000000b003a6a7728c2fsi622864qto.753.2022.12.20.03.06.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 03:06:50 -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=JtQt8o0U; 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 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-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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.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