From patchwork Mon Sep 30 22:18:58 2024 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: 831591 Delivered-To: patch@linaro.org Received: by 2002:a5d:43d2:0:b0:367:895a:4699 with SMTP id v18csp16304wrr; Mon, 30 Sep 2024 15:20:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXR41L4chxlmOJUYsASOnzj8hePEKXU02V+5bbS57w+5tylqeeWKSi7I32L+KIBOPV3ICzyKg==@linaro.org X-Google-Smtp-Source: AGHT+IGf9qmKHxwMsnz/Ymbq+bjRSDkawLwCoRtgd2Th88Y3rymYHI8WIRTJnwPtVRgv9jPrvr1Q X-Received: by 2002:a05:620a:2446:b0:7a7:f809:9f3f with SMTP id af79cd13be357-7ae3782e3bemr2117029185a.16.1727734800119; Mon, 30 Sep 2024 15:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727734800; cv=none; d=google.com; s=arc-20240605; b=eaW2sbvv5DvdCEIv2MLYzuFBXNUCFXKq1Tyc1rnU8RbI2xIEA6R1Wxwl/xoaZHSgjz rDw8AeQbEMi9yWvW269bgoUxC5ineWJftTkOy/8QBkNUFw+7KbtvuyWcT8zKyHproXBG dtlcdoiLeKpwQBBvx2YDQ/Rxj5pkRAybjmhK03XXCrXZI8J8sqxu7tyrQGP57PiaoT9n gmX9sDkOv0eRdKAv6IguKyCePRC8qaQxt0wSnSNf33jdpCEkm0+fZa5EySAhvxjkbRRK HHwi0wu2gfAXNV+to0hSAJgCIwqv+wZ7vmD9JZQdQTZVR1ACm2g3Ne+KcW0blle6M/Rq w+kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=dBVisv6CnK8BsPMNbVwRBZnc5TuKgu+hW3tSFwMb0qs=; fh=FbfHshCjH7K67GXC3yaL57c2LOlx4mr4Ip/DOXHV6mA=; b=Nc1lEgnxCIHtY9gXp96Wp0JpHxm8Qjf3cwf24J72g6I/HIqgHa5C3UGW43YsY2BBRS EbRQ0IymyWn/+LhLWieUJdBgvTRujilE6AfbIP1wUuFMqpja2E6WpMQEUUEyeFWxUhAk bgXwLmfUk96DJtAamw0iRuhKFH1KkSQujwRmisFClD1saqdgggABBWTOkuG6XrrksCT4 fVrtHJvPAZv+CAW+PA4eQEmXrN25d6UBYWyQhv03FPTdHrThwD23iVtcZL+7nwbewW47 i6yqGP/St4GOMFp0Ypd9yfi+JHt4cOS5Acg5+tfbUnkVP0Us+oDH2vbchczwo47ku0Jk 11fQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b2BUzSpx; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7ae378a2bf3si940115185a.756.2024.09.30.15.19.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Sep 2024 15:20:00 -0700 (PDT) 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=b2BUzSpx; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svOjk-0005D3-Un; Mon, 30 Sep 2024 18:19:24 -0400 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 1svOjd-000534-EH for qemu-devel@nongnu.org; Mon, 30 Sep 2024 18:19:17 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1svOjb-0003Nj-RR for qemu-devel@nongnu.org; Mon, 30 Sep 2024 18:19:17 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5c42f406fa5so3618138a12.0 for ; Mon, 30 Sep 2024 15:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727734745; x=1728339545; 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=dBVisv6CnK8BsPMNbVwRBZnc5TuKgu+hW3tSFwMb0qs=; b=b2BUzSpxX3QxSnKFmiiSFoEcP0motgSrvEurekYYcWQXWhivIXE/vTRRxd8ieQUEXV 476dmWNp/ZfHOQAJ+AMfdnQWg1xCaOi+v13XU/aIzj+NflYA83308yjFCFWdvz3SJN6i avRyxj7c15cD64LhRtVAoCaFdI+t5WSS9mypNT2mMWcnm4EWzL+i1rWLWiezAi6G4WOa lCQ4MxsLFD9j3Hwm9MOOaFJzT+o0ZS7rOfOVawRuLCIZY/Zf1jxZXJZK4YilIPprhLRS 5COsKRUSbbdEmkBPO8GRWxdQxfo7bxWknqyV28DweahBkOfZ+OEPNfn3eitzn1DaQXml pfzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727734745; x=1728339545; 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=dBVisv6CnK8BsPMNbVwRBZnc5TuKgu+hW3tSFwMb0qs=; b=YtGe9Y6yZUmxUWpzKvby4R9/D1MjtR7qVG0GS2zDZB4iO/giMQZ9ckWsgFLTUyuKAF wBSieozmKJ6LdxEZLZRFvzEQoh6RrPL0fkRGPguE7atUS3B7QJYROvC/Yq1oR6xdUk6a 4UaGvPiJb7jFLjmTBA8vIbot58cTA/7zbSlwE4+DTJDvNYerOCZB7hlwSH9Vft+fQe/7 d/85Z8/Ok191iNOgd744LIdiMd2O2wAD2Dv8uIzJgphs7K/SMcxBfEXnqhHbgekDJWzY UgR6RtfJyWeYAZjr8g33Y2iZKYkcyDKpbTY/pSA0uhdopqTw3R0/nhbNtgjWjt/MvZkO 85pg== X-Gm-Message-State: AOJu0YxreLgg8OhztzG/GTi9KVeIUDvBJKKcg4HPbL8YPvkeOJtH7nFo VvwN4by6QFMicGBaMPrwNWaW4ebXsZDBx2O5mQXbVmnRmb6TESeKPP6M+ON2mog/2cJPjqf3zXG AQ0I= X-Received: by 2002:a05:6402:4347:b0:5c4:2fca:b11 with SMTP id 4fb4d7f45d1cf-5c88260f022mr20417119a12.35.1727734745548; Mon, 30 Sep 2024 15:19:05 -0700 (PDT) Received: from localhost.localdomain (46.170.88.92.rev.sfr.net. [92.88.170.46]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c8824051c2sm5002308a12.19.2024.09.30.15.19.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Sep 2024 15:19:04 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Zhao Liu , Thomas Huth , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Yanan Wang , Eduardo Habkost Subject: [PATCH 0/2] hw/core/machine: Extract compat properties to machine-compat.c Date: Tue, 1 Oct 2024 00:18:58 +0200 Message-ID: <20240930221900.59525-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=philmd@linaro.org; helo=mail-ed1-x52b.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-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 Extract machine compat properties to machine-compat.c, make the unit target specific to be able to compile with target specific compat properties. Philippe Mathieu-Daudé (2): hw/core/machine: Add missing 'units.h' and 'error-report.h' headers hw/core/machine: Extract compat properties to machine-compat.c MAINTAINERS | 1 + hw/core/machine-compat.c | 287 +++++++++++++++++++++++++++++++++++++++ hw/core/machine.c | 279 +------------------------------------ hw/core/meson.build | 3 + 4 files changed, 293 insertions(+), 277 deletions(-) create mode 100644 hw/core/machine-compat.c