From patchwork Mon Dec 19 21:10:30 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: 635128 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2563124pvb; Mon, 19 Dec 2022 13:12:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXviCenWpF82Q9SpyEPJx9DAlyRVKMKvxSIUCkqRX7fc1Yd4/7Fpnta64lx7M3f4CUCEIi21 X-Received: by 2002:a05:6214:15c4:b0:4c7:44a:ef96 with SMTP id p4-20020a05621415c400b004c7044aef96mr12135015qvz.49.1671484332812; Mon, 19 Dec 2022 13:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671484332; cv=none; d=google.com; s=arc-20160816; b=jJ57SMtaiNrF/ds0PXgneb2lLlhKgI9ei+pY6zduC4hpLKFdhANngaigVHxlX+rjPy IH8oTiPuwtWP6ZMleLmdDyNnO4J/xcm/JJ+v+veA7s/dDwgAGqOz9EyF6AfbAsqV8umS XSk9B2WKzAfWUkKDmVVgbPiHKOAglpV4gJV9zT6kr/EIThAWaj4CoX1bR7E8Uxye0Wsz k+srlanFiikLmYFHxFi26U6FfA7HnMUSjP3elv5R9MHP0btY8PwA6FR1venFFvCxraEA RqVFWYCR0y1uzvGn8jnSWvHg00SaEio8qK19lx5QS3+h2xrqrNv0S49uDZ332yVkHsgB 2zsQ== 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=zh2BhjGyR+505UTOkbHhlLSYmk781PI1Kr+7wOMQdrY=; b=pxLtei5cZEPa+gXU4Xn+BT2rRIFedokNfF+ZZSCGA3LLOE4Wl+hwEr0UYC4r7k5E0G YJpgQLL7bdQmj3CTMNJBcLrYe5tA/aBF6dUPYR2o8/Q7mvYvgnIpy2lPrDVIowMyStyo u4BEbc8ehJVhjqLUf8qzxiCipsB8F5T7gIdMioBgseAwpcykQe2UDq4VPLVYWTZdofA3 GHczPRGMCi8mnfElF+8KXZrG6r2TtMVkGdQqs1FkhdtUNhXw2LULLbN2DqKhneYxIGve QnZPyi3VWthBPZNthejGom+j5dJx7OwzQAGXiWFuZzy1eCbChO2+G1o+6QA53fhPpkHL Zj3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h2QSNvj4; 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 u7-20020ad45aa7000000b004c6a59823fasi4588363qvg.361.2022.12.19.13.12.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Dec 2022 13:12:12 -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=h2QSNvj4; 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 1p7NPI-0002sU-0d; Mon, 19 Dec 2022 16:10:44 -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 1p7NPG-0002rV-31 for qemu-devel@nongnu.org; Mon, 19 Dec 2022 16:10:42 -0500 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7NPD-0003sa-EC for qemu-devel@nongnu.org; Mon, 19 Dec 2022 16:10:41 -0500 Received: by mail-ed1-x533.google.com with SMTP id i15so14801736edf.2 for ; Mon, 19 Dec 2022 13:10:39 -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=zh2BhjGyR+505UTOkbHhlLSYmk781PI1Kr+7wOMQdrY=; b=h2QSNvj4t9GE6VAVfl5inolgOCKTDTHJcUCqJvm54c8j0JFgzZG+GIBeIMPLYdhsdG j9jzPlHosAgwlFwAyqNSDsIKc/FDUfE7kUcWnvcYQD5lxQheHi6NgV/w5hIjbEShcrd3 +uQVIdCEkBMq95h4ctj6GoHS39ppeoYRi40ncl6bHXC0GMdXdD1h12LFdq6ADv8Awk67 WxW/1DOcN4yxrXTb12LjcuDt/3JF7VzbeTQ8Htd0LI2F5aCcU6Q3bsVTL2EH85nAnEsW nPiEX10O+9fc9uW0Acl+ZFfjAYo5IdWUCmqqRyqX/Jsxn+z//w9Ant6vc4GW8CgePFIs dRXA== 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=zh2BhjGyR+505UTOkbHhlLSYmk781PI1Kr+7wOMQdrY=; b=rnG8clfxpJ3LYNpn27+2gtOv/dxPBAAOS5dMP3Tp9/c83Z0oTy1W2JOpjn+XyZKEfU gG6DcCVWoS/PJbG+1kTY2awUpAWwwwJb+rQjsmF6kLK2NmUpuEHZAvwOVlKni6AfQoNH +KdFhRLSnUuHaErxsFHQu84XYhTsiydrytmUCPIxBi7Y9FQVOawhHNQLGn/lG4Md8zkf K0sLdvaXtBDL7j3X/FXUo3JO6hCRxJx4FZO6s0bOPZdoJfBchPBUhpj1SEbEYf66imgS 9fUFI0TTav8Y4drr3E8nhEjDDq5HSSLp5M2J94LMthcpKkTzvvFSIa0yHl+Q/BRweGhY VRVQ== X-Gm-Message-State: ANoB5pnp3iUNmTBPsuotAv81R0jEhAG4yLB2ozofCujnn21NzVje/ld2 9onOW2556cavPS84F58N7tWDChwFr0WVW88L19E= X-Received: by 2002:aa7:d403:0:b0:470:31fb:cdcc with SMTP id z3-20020aa7d403000000b0047031fbcdccmr24958380edq.6.1671484237462; Mon, 19 Dec 2022 13:10:37 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id eg53-20020a05640228b500b0044dbecdcd29sm4843803edb.12.2022.12.19.13.10.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Dec 2022 13:10:37 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Markus Armbruster , Huacai Chen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Xiaojuan Yang , Daniel Henrique Barboza , Aleksandar Rikalo , Aurelien Jarno , Peter Maydell , David Gibson , qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= , Jiaxun Yang , Greg Kurz , Song Gao Subject: [PATCH 0/4] target: Restrict 'qapi-commands-machine.h' to system emulation Date: Mon, 19 Dec 2022 22:10:30 +0100 Message-Id: <20221219211034.70491-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::533; envelope-from=philmd@linaro.org; helo=mail-ed1-x533.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 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. 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/loongarch/cpu-monitor.c | 37 +++++++++++++++++++++++++ target/loongarch/cpu.c | 27 ------------------ target/loongarch/meson.build | 1 + 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 +++++++++++++++++++++++++++++++++- 12 files changed, 158 insertions(+), 134 deletions(-) create mode 100644 target/loongarch/cpu-monitor.c create mode 100644 target/mips/sysemu/monitor.c