From nobody Wed Nov 19 04:32:53 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.41 as permitted sender) client-ip=209.85.221.41; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f41.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.41 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1614357194; cv=none; d=zohomail.com; s=zohoarc; b=DnasAuSmcx8r9zKkb0F/P3zwdTNE1Dvg3ITxvdtFYkyNrxl7QrRLvX45BaMMRmKcqUUGGkjWWAgaUmaYmgZiFguvlLZZQY3xADWtlnll8dGL1raHFGOD+cH9BMcIFySL4Gh5KS6nW5bKhX48uVxee6pvcXIVDMIfzdGMXj2p4Bk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614357194; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cqYmlwAyP4EwEP7vrTu/PZK1/0mxFb/0cmm6txRTavI=; b=ii+G2cX9QRQ40SUfRnsF+h9psV2MlfPK7vc6ulzCEMTQjC92pljIX+bxVYPiOALHB7PRXevi85P1AZS64l1IhsT8rIHsaHDTd1IF03zflTUO1IY0vFlxdM0QlrSoDEEHUKh64OYsZEjzFpxL0k1bjasCk9YPOGFUTd9UPUe8G5w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.41 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.zohomail.com with SMTPS id 16143571947001000.7819805402046; Fri, 26 Feb 2021 08:33:14 -0800 (PST) Received: by mail-wr1-f41.google.com with SMTP id d11so9156125wrj.7 for ; Fri, 26 Feb 2021 08:33:14 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id 6sm14814560wra.63.2021.02.26.08.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 08:33:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cqYmlwAyP4EwEP7vrTu/PZK1/0mxFb/0cmm6txRTavI=; b=Q/GVwYuNkGxJ/Q9ke2SuYtBSrUx9A0eBdyi9iyh/L1/r8tBvCHUEzBfvy/KNeNNiSn Cr9TNGEdwYFcSYMMdCyOeY1i/Ba4c8agsZ1NOCvMqIbZU4KXJ2kcFOqOJpuAsO31fGSc h0OJ0ZsXfoXThyE0Sa14wpmw+MsUuHlaWW5dGVBOSDCOaZHZigJnejCy28de26GfIfDu Zhcl+lJwEuDk4cM2C5NLpB+DAjfuBIMhXccHgVE/27sLDUUqxlUkIs8RvpNvdacpnubd rB9gusji7bHn0Ai3bFKvCZlU4J/GUpdCOtvKWGy9nA32xrkBfuQJAnM0Y4+CEOMDDs37 4jIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=cqYmlwAyP4EwEP7vrTu/PZK1/0mxFb/0cmm6txRTavI=; b=aQl+ynbfKgcMwZPzuotAAqrz8hjJnZ/7MAHh5QVEtel9sY32YJlb4gKBEoxKERJb5v 1oeJ1rG7KIbOjreqsysm1zAnGP/93wShkUfUYV+2FuNG808mjiFwI8KbqvGCg9CZVFz4 viAPkuxIpd6nMgnS5AuGYVC6+hscMYBatPOTMvo2loLteLows6nrVvtewjNv3vjnwE29 BGU1SjYm9YpfzyM3tBoJD1K+nEe70xAAPB1HwRjGGExkavWP/JDHiBYH9s2DQHYrG6Td RZigpz2pYVudz4l0QDoXXQGtCVVRzRAJa3chuKP0hRlyUll25FDGmHsz1BELkH+sJvsj VA/A== X-Gm-Message-State: AOAM531nzfsRK15WiYxCdR/5/P+gshFJDiBugozIAuipjOsOXPwKvxdr jTMk1UpDxmFvveK9Onhl/Fo= X-Google-Smtp-Source: ABdhPJyVKet7fLK7FFHIzc2XCusgC2/GSoYvxHG+n79W7ILnKLJBaG7CY5eh5N1nm9IzkHfSN4GVnQ== X-Received: by 2002:adf:f1c4:: with SMTP id z4mr4226490wro.404.1614357192932; Fri, 26 Feb 2021 08:33:12 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Sarah Harris , Paolo Bonzini , Max Filippov , Yoshinori Sato , qemu-s390x@nongnu.org, Michael Rolnik , qemu-ppc@nongnu.org, Marek Vasut , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis , Michael Walle , Guan Xuetao , Laurent Vivier , Anthony Green , Palmer Dabbelt , David Hildenbrand , qemu-riscv@nongnu.org, David Gibson , Peter Maydell , Cornelia Huck , Jiaxun Yang , Richard Henderson , Chris Wulff , "Michael S. Tsirkin" , Aurelien Jarno , Aleksandar Rikalo , Sagar Karandikar , Claudio Fontana , Thomas Huth , Artyom Tarasenko , Greg Kurz , Stafford Horne , Bastian Koppelmann , Mark Cave-Ayland , Marcel Apfelbaum , "Edgar E. Iglesias" Subject: [PATCH 07/16] cpu: Introduce CPUSystemOperations structure Date: Fri, 26 Feb 2021 17:32:18 +0100 Message-Id: <20210226163227.4097950-8-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210226163227.4097950-1-f4bug@amsat.org> References: <20210226163227.4097950-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Introduce a structure to hold handler specific to sysemu. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/core/cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index b12028c3c03..ab89235cb45 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -80,6 +80,12 @@ struct TCGCPUOps; /* see accel-cpu.h */ struct AccelCPUClass; =20 +/* + * struct CPUSystemOperations: System operations specific to a CPU class + */ +typedef struct CPUSystemOperations { +} CPUSystemOperations; + /** * CPUClass: * @class_by_name: Callback to map -cpu command line model name to an @@ -190,6 +196,9 @@ struct CPUClass { bool gdb_stop_before_watchpoint; struct AccelCPUClass *accel_cpu; =20 + /* when system emulation is not available, this pointer is NULL */ + struct CPUSystemOperations system_ops; + /* when TCG is not available, this pointer is NULL */ struct TCGCPUOps *tcg_ops; }; --=20 2.26.2