From patchwork Sat May 20 05:45:05 2023 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: 684293 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp232369wrt; Fri, 19 May 2023 22:47:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4w78fri4hDVWwZEeI3N5B9KZytsPHhPu8VTgI1IxTMHDg8HaUdB3rvuc2sMGQkMdcdiEkQ X-Received: by 2002:a05:6214:27ce:b0:61f:1a72:6c89 with SMTP id ge14-20020a05621427ce00b0061f1a726c89mr7729941qvb.34.1684561623623; Fri, 19 May 2023 22:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684561623; cv=none; d=google.com; s=arc-20160816; b=ahbqWnjwcVh7zRNhiXCgrPpB5cXP2/JtMxGhiW+u31Z6zYEPhIDMmspnbyuqxPw21w Eh+SJwNctaFeksj2VOj/BBC3I2WmhI8afQs1/LDZgfA/k0V6+XKlHMvK10w5Q5Ad6Zu5 XNOX2oZE5p4ngLmtPr43k5EOH0tEGMBACpilnm4RV5+uuzdphi/ury7ZdlG372pU5GrQ YbgC6ZHyebHd9RcBZ9017Zw+bAQRUE3gGaUKRsMPrNPoZQKzjb34t/J01k2Gm5JV6lOL kXGwKIFbYWuCkvQj0sGXpkt2j5tFeKvMO41ffK9CzXf3BZdpDfNHQ2/Y3L4PYGsdpvnj BW+w== 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=KPXfjzpgnUnJ+Ee8FGyGU5PT2PYy9bLcVqwty/Mu0pM=; b=oD/JniZqa5vZNuia/RJYBge3Q5oOj+gh3/PADNX4fDY4Oob8fheekDKeqWfrSIK+Iv MXH8K/Lc0Jol9GLCyxWl6shHRV9nGkSFB4ca9X1IUjT1+ev5iRHocxVd9rbSCyXDMV++ 3lEEN36C4shnigyojBLjvBpYAmr0wEJjjq8UgArG3T20xvJZJ2MbtncWXGKjyRqxU3ND o6YyOWO9u1nZo/LJHDaoRpPSsmTaHVmm+iUPXy1ossBLRRQeJofTvaFdQ60soYTuTGQ5 /EpJKeuye8KJEzblCrGEiI9TnbJ1bMeJ/NzPcqbY/6g2dlr8fS+clElTiLk5HOR4TVlu WvEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dnz2plYF; 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 o1-20020ad45c81000000b0056bfa655111si670736qvh.27.2023.05.19.22.47.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 May 2023 22:47:03 -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=Dnz2plYF; 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 1q0FPN-0007Kl-Oj; Sat, 20 May 2023 01:45:38 -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 1q0FP5-0007DP-BX for qemu-devel@nongnu.org; Sat, 20 May 2023 01:45:22 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0FP1-0007bZ-Ez for qemu-devel@nongnu.org; Sat, 20 May 2023 01:45:18 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3078a3f3b5fso3931347f8f.0 for ; Fri, 19 May 2023 22:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684561513; x=1687153513; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KPXfjzpgnUnJ+Ee8FGyGU5PT2PYy9bLcVqwty/Mu0pM=; b=Dnz2plYFZml0O3yiwpZx1EGdqBt8yOEnk2d7diFjU5vaTepF36k1HmsJtaz/qqvZrN jtm/ZFDLMOnUHh+rQLFayybsshVlvYCnJGgqps0ZqvJ6foTIHnJwxiX1dJdX5eLfuEqd njcBQM9AcatDe+Pmfjf3fD8kmOiJcn+S82bPeNeZh0n9ElwgEhKJAGAD2EADNj/yAfu+ 5THTUe3Raa1+qIFH6gi3cvhacIIj/T6SSkXnwd5gtc/biS2B3jQ6/eDRDnkngWeRfEMf qBRTHir6v7LYIHzEkFF5SNtWnFdXfSBHqxj5kGZ9hU0Vh4lNe6hDdLSAcovR0uxFV2/L qKHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684561513; x=1687153513; 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=KPXfjzpgnUnJ+Ee8FGyGU5PT2PYy9bLcVqwty/Mu0pM=; b=cytNoNVGH+FjMOrI66deTKCt5lrn+kKU0DWX6ETPytC67fYqIOU5q2yCVKWmjDwjFq 3xFwWyac6SigPug5UmT87Z2kohTltIm+P+pCofOHnxcJULBjFVyEBZhzX6EiVDvaEaqK iCMGThDA3zvmASkeB+Xm3uH4RdNbcNiTUbesh2wJr9ULXILWnHMgnzSBWFosMjK3ZtDD lZFwumxbSTcWtaG+XMpYTa/CQjTxYNOqIegRCLIm9oE63jQvAeWm8lYpea6xTi/Uj1A+ yuVMQJ+uwZhlP+jnEjNg0Q5f+8mY3DTNW2Ci3HhlNuANeSAAB6ZPSUlMQW1tJuElzPgD zSZA== X-Gm-Message-State: AC+VfDwv+326zGY61U6OhJ1arim7p9F3aRdlWpDfIEO5EaEyBrObmBTM yibR0wbPiWZcmEGlEm995/MLM5BcoHnwHQ52VjQ= X-Received: by 2002:a05:6000:1109:b0:304:79c1:725d with SMTP id z9-20020a056000110900b0030479c1725dmr2953422wrw.45.1684561513260; Fri, 19 May 2023 22:45:13 -0700 (PDT) Received: from localhost.localdomain (mau49-h01-176-184-41-228.dsl.sta.abo.bbox.fr. [176.184.41.228]) by smtp.gmail.com with ESMTPSA id d16-20020a5d5390000000b00301a351a8d6sm879335wrv.84.2023.05.19.22.45.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 May 2023 22:45:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Liu Zhiwei , Palmer Dabbelt , Weiwei Li , Bin Meng , Alistair Francis , qemu-riscv@nongnu.org, Daniel Henrique Barboza , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 0/5] hw/riscv/opentitan: Correct QOM type/size of OpenTitanState Date: Sat, 20 May 2023 07:45:05 +0200 Message-Id: <20230520054510.68822-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::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Hi, This series fix a QOM issue with the OpenTitanState structure, noticed while auditing QOM relations globally. All patches are trivial to review. Regards, Phil. Philippe Mathieu-Daudé (5): hw/riscv/opentitan: Rename machine_[class]_init() functions hw/riscv/opentitan: Declare QOM types using DEFINE_TYPES() macro hw/riscv/opentitan: Add TYPE_OPENTITAN_MACHINE definition hw/riscv/opentitan: Explicit machine type definition hw/riscv/opentitan: Correct OpenTitanState parent type/size include/hw/riscv/opentitan.h | 6 +++++- hw/riscv/opentitan.c | 38 +++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 19 deletions(-)