From nobody Sun Dec 6 20:46:09 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1796274493; cv=none; d=zohomail.com; s=zohoarc; b=gZ9HI38dqw5eIqLR06SvaYUWm7xKG5mSKJHjimJOF09RHOYb1OlGqCnl6Q8GX97i7nM8WkTJnnw+SMPDNcpKad5F3R6lDyJYCMKljy5KyPYhGUchhO+8pYzI+RkDAzJrBqxe4AAXieCpeyajD7ghCIDDEAYHJQkXLst3thGwUII= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796274493; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yqjGifhtvGZ4CtKZjvGU0wpSBdohrtcLk/UD+6WW3Qo=; b=GPIEp9ZlKBXGEuDotdTQyDRfqjpMhwdygKC3yqGSpqJQ41kkt+b7tFaeM7gAU9k7e6oF9TnYsjsX1Ro9D0vIVUEQF/J3DPQJ3m0807A+cNep1BjDFgquvFOPVD8zHeLYH3MgEEfh871ZBwWdlat7KbQHVTBlU8PrHgWhs244Z6M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1796274493361855.1688637502913; Wed, 2 Dec 2026 21:08:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYz1y-0005Gv-Jh; Thu, 03 Dec 2026 00:06:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYz1v-0005Eu-Vo for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:52 -0500 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xYz1t-0007tY-Rq for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:51 -0500 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-8a594d313a3so8923279b3a.1 for ; Wed, 02 Dec 2026 21:06:49 -0800 (PST) Received: from cfarm136.osuosl.org (cfarm136.osuosl.org. [2605:bc80:3010:104:21e:67ff:fefd:7034]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e457d1sm22550837b3a.30.2026.12.02.21.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 21:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796274408; x=1796879208; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=yqjGifhtvGZ4CtKZjvGU0wpSBdohrtcLk/UD+6WW3Qo=; b=bIaNUiElvZAanpjvFT3Dn1pW5myjVaGHUj5EfCUZFIWtJ/EfbnZJWb8FprjaL8CLr2 T8N4Lrbjw3YMeH7/Fpl+R/HWcTAx+y45agEr0IqQSDtSJRWYEH9Hmq5P/y6BX2CR+koa WHsQD8KqbYohpBeRh0obRp/VHOB0mAzJMJx7Lq5pn4JkTKZS2trxPNRP5049U8+UHaH6 kW/SDDudyMKIU6enpbfbUPG/PTrKd+SCeWjiekvslULfdudZ9se6+AanC1Xb3ajMb47N RNJE1CPW3ujeNBfe9YWyvzc4Y8bY+xcIrWQAYfkb8TIT5/mtlf7a9Z+lC5Oj2VfTU3XX 3uZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796274408; x=1796879208; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yqjGifhtvGZ4CtKZjvGU0wpSBdohrtcLk/UD+6WW3Qo=; b=LZKYUQqWUTl+gSQf/9f9fNJvR4hV681Gs57t6yMgvhn7FT1aRhYz3Jw4J1skLk3Hwr KqYN80o179wJWJmGhd3SxA7DjQ0y61YRtLA6APPFM91oCGTmqG7T+qWHTRGHq/rYMtOG EdZMDDjZS2YzirsMLb+p5IhTVo+YJcfhJvP7jwXSXQVHjE4nQtaktNxqV5sNjk3VU5Bj kDFM6tZuG8e8vgpNc9MtC8lRnzn4DFXehZRfOVxW+fpuhvEofhN2QEfu7IAYWn515tvX /S99GMmGb/cFIdZ8WrS63sfM80j8dEz6NQL5igpSyxarZoBLod4wxkhsXJJ9NmKZFPbo BjSw== X-Gm-Message-State: APuU4Z8HK6bq352nhhlu08KgYHT7JPTaal/7Js2AitqX7kwamyDnF/+9 q/0m+7HDkLzP+EjW2QoJy1P/Ak2M5iDF+ToyHtonftMpy6PxLPREisKixok60Q== X-Gm-Gg: AZFdTZdkpgCGly9BRi6u2otFJOQ1o98KdI9HLa/RC0PRRuPjNNBWJfPDC8KHUIp8f+N DiUWXGb9RV5GnNVcwYobZN94NxSLFOsHNZbCfN0+avCKaLJZzdC1H/qcmBTpZF4BE6QE7/RDEoY acbumSHPszb/ibKAyWDy458aca1zIRBLj+Kf8Qa4Y9GKPg37Yr8Fd5Bswrc6TLEQxQXT9PmLHhf KkonkLU6hKOTchSvafznNHDxgtA8XGGUIoyAU8sk477d0Zv8MDLmBJSIEYpoP3aWSydVHRyhH4h wYaXwDAZFv+R3XrrP0Yhog0EG9wxGJBorL5LYDGhJqOH4WT00SfwB+rrUGnJRVUs7PYLp4wzHrc ypdGYk4u1LET+oDB/jsk1vj3SaoWx+sowP1gl5Gu9po5qhDAx2uaGOjm2ATXDdyGK1POQbZdhy/ qU1ZKRnJ2WICLkOnrxFrqEIOSZXBpZ6Q5yhtykB6TEqN2U6c/3KDGdiFJptIvqX34yAzSTZ3tW2 GmwgZa52Y0uBXqjLgwmgwRplG4aXlnMStnZv/qfuCZ+wIB+ERcE/EYm31wwQbLOA0CFmN9JjGUa xKYXvIlVjIHB+6OezDrHBILUiPn/QM1BkV1MuPrZnUzAM0mc2oZTiV23AYhzjW9HfB6xj6H9jza 0vxhE7uzHAu/6WK+Oua/hU2Wk5kmc9CY= X-Received: by 2002:a05:6a21:32a1:b0:3e2:1823:2b46 with SMTP id adf61e73a8af0-40148dca8f7mr56027075637.6.1796274408188; Wed, 02 Dec 2026 21:06:48 -0800 (PST) From: =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= Date: Thu, 03 Dec 2026 05:06:41 +0000 Subject: [PATCH 1/4] hw/intc/heathrow_pic: Migrate from legacy_reset to Resettable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261203-reset-intc-ppc-v1-1-7d74a81b7e9c@gmail.com> References: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> In-Reply-To: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , qemu-ppc@nongnu.org, Bernhard Beschow , =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= X-Mailer: b4 0.16.0 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=aleszlucero@gmail.com; helo=mail-pf1-x433.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, FREEMAIL_FROM=0.001, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1796274494157158500 Convert heathrow_pic from the deprecated device_class_set_legacy_reset() interface to the three-phase Resettable interface, implementing the hold ph= ase. Signed-off-by: Oscar Alejandro S=C3=A1nchez Lucero --- hw/intc/heathrow_pic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/intc/heathrow_pic.c b/hw/intc/heathrow_pic.c index b65ec04e47..9e2d616139 100644 --- a/hw/intc/heathrow_pic.c +++ b/hw/intc/heathrow_pic.c @@ -161,9 +161,9 @@ static const VMStateDescription vmstate_heathrow =3D { } }; =20 -static void heathrow_reset(DeviceState *d) +static void heathrow_hold_reset(Object *obj, ResetType type) { - HeathrowState *s =3D HEATHROW(d); + HeathrowState *s =3D HEATHROW(obj); =20 s->pics[0].level_triggered =3D 0; s->pics[1].level_triggered =3D 0x1ff00000; @@ -187,8 +187,9 @@ static void heathrow_init(Object *obj) static void heathrow_class_init(ObjectClass *oc, const void *data) { DeviceClass *dc =3D DEVICE_CLASS(oc); + ResettableClass *rc =3D RESETTABLE_CLASS(oc); =20 - device_class_set_legacy_reset(dc, heathrow_reset); + rc->phases.hold =3D heathrow_hold_reset; dc->vmsd =3D &vmstate_heathrow; set_bit(DEVICE_CATEGORY_MISC, dc->categories); } --=20 2.53.0 From nobody Sun Dec 6 20:46:09 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1796274491; cv=none; d=zohomail.com; s=zohoarc; b=FqF30f6t2WPJFdT96v9P6gJztoCj7MAnmcqjyn0Bk7rWWAwwLZvRT1J0chXasv+E0DpCC8aDk+RsSMyTDjw3vtJjL6nhP10KdQdpMAYIiiz6iCxtetKpzE9PSF68n8ZRsP1hopa+M99wSiiHkWDumJ5qVFs5UbX4ENCNfX0cBQ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796274491; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ukNaj72hwAHZJUUIHGBasp8khJGUolcFm1BCY1TY1K0=; b=PUVTyw8mnZcU6up/rhXUKdRE/Cpomm9KOgFh6jfQfe0eui7kEgiZ3jg+ZXo2MnaZI0d5kKPmkLqRsHeMRWwe3mlHD/FRRkaVOAglM7fSEEx1DFDU4lL7SZpQzwLDWofootg9M3Sx95zEuzcgqgGgyZd0BIZJfYNdzbrEl7C/P2I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179627449122218.211916374304224; Wed, 2 Dec 2026 21:08:11 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYz1y-0005Gu-II; Thu, 03 Dec 2026 00:06:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYz1w-0005F2-7m for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:52 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0: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 1xYz1u-0007xO-Dq for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:51 -0500 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-8b66d1a08ccso9636386b3a.1 for ; Wed, 02 Dec 2026 21:06:49 -0800 (PST) Received: from cfarm136.osuosl.org (cfarm136.osuosl.org. [2605:bc80:3010:104:21e:67ff:fefd:7034]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e457d1sm22550837b3a.30.2026.12.02.21.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 21:06:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796274409; x=1796879209; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ukNaj72hwAHZJUUIHGBasp8khJGUolcFm1BCY1TY1K0=; b=VTw/Eg+HxY7WpO25XzzVk/bBn6/w45JZkt9RKEg5GggZOy/cbofwnR6URL752JhFn2 C2gZ0gJQqxFRzVQjOg9hkg0iEo3OkT20lB8FIdNhx0X4mq0ew2HtJeNYPVEepznfFc+B h1NfCllrexV/kIOsd9okyp1vjhQyVIV51/FGXwBxag488J1k9lBPXxOgXRJQQKT/fLJZ A6rzMH3cTq2hQgiUiHOeq6ozGtQCJjzd05l5HyTQV9J2pgqGWK0w7CxMqinn4tgEcnDl B6ffkyQWgZnkxBpiHS/YDsv5kYzpPh710TglxnZIgzlWFPeNYGF1OIHLW7Us4UjnZ5pi jcGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796274409; x=1796879209; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ukNaj72hwAHZJUUIHGBasp8khJGUolcFm1BCY1TY1K0=; b=xLi3JqraoC92kpg7exzP+lHjYNxoRh8P3EZtO+XxK9o5l1UhI0MjR7WPK27/4fkj0o YNjgXSkNge/A++jODN3GBNqHygE3QbLi8IgclttMZAf2FEt6OzB7mTvusAu6U4L7IMsx UyI027UXfl3AinswgaJfzhhmEjjdk7WEaLgJhYtd5mu6VIFN8hW+fQU9UEQ8OAedItM0 9jGdvWMMoCxTf6t76kcTi5gUD78Zoj0blmCr6UWqgtgZQJhP+i8XGOogVcMjD1/GsMW0 aRs8R/iPvqKxJsIuXPhrDoeVfaPHbmSquX4LgknjAca0U7QyPJDoX9/mRX4Y4tgdqQ1T /UcA== X-Gm-Message-State: APuU4Z/Zw1qDm4lQExFb0WhWVF/aIYgBfqpTI/BBDKRCa+Q6N80KQUFB lXkww+hTcCdfp9mU3MOB5k+LSVWTt2aV8QtW5MTCVBAe/w6np/NN4Bwl X-Gm-Gg: AZFdTZf8BRbUDgv60KdIAlZFtIF+T8iqrg0elRKoc4SsU9uRHqbkcTFkRhXBmsHG6O1 B80zUCGHSOROwMK86xKq3cpu4xjBnuRRMl7HTMDEpzhRdKSHdkk4iD67wm0rOXLojTxdnYDtOjR QMvUufrJJCWjDrGCSp7JREkr4frtiVM96m4N91ANlx9CnMAhLgduVkEW0HDDt2WrHSoBwcCkN7D PMXO6QFEnTK/NroKAFPdqrbJodySwQDZxWdaOMeNO05i4y5LVxCyg938W9aFpd8UTutv3UKod7n ESm18qKKlO8zkSIjIUqEOcHw9xcchc0yyXihuBmOApTcM81h010da6LXQrVeWeDIpEoAxwSucYX +zW9q24KxD7oVcCEDufAsullBz4atbGn78cHJOvBTzLDu/sNMj6iedBChUpQZZumbKe05LOgGUl FLFtyZmp7Z4ZlAz2ptNouGxjeMJaqWtxYjYWyoHxt5KuFM1fracfijEx+oGSITwaYklrV7PefA7 fTDwW58bArxcSeim2hJyG1urvKhhpTRBuOA5z55fJF7Pa5KlF0EXIZWs8e2O1iZs8WTYrN/H5B5 ng0Lzm2jpHCpwDLRj668PBL6yyZmNkxYOL2OJ6H8qjIpRyQzDD9HYC2evh4YcTUx9l7VUqMA+MN 0e/f1cd6kR3F5gTMrN9h4CU7LGJeMlAw= X-Received: by 2002:a05:6a00:414e:b0:8bd:281a:5cb0 with SMTP id d2e1a72fcca58-8c8796a7bb0mr40524731b3a.6.1796274408978; Wed, 02 Dec 2026 21:06:48 -0800 (PST) From: =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= Date: Thu, 03 Dec 2026 05:06:42 +0000 Subject: [PATCH 2/4] hw/intc/openpic: Migrate from legacy_reset to Resettable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261203-reset-intc-ppc-v1-2-7d74a81b7e9c@gmail.com> References: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> In-Reply-To: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , qemu-ppc@nongnu.org, Bernhard Beschow , =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= X-Mailer: b4 0.16.0 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=aleszlucero@gmail.com; helo=mail-pf1-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, FREEMAIL_FROM=0.001, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1796274492191158500 Convert openpic from the deprecated device_class_set_legacy_reset() interface to the three-phase Resettable interface, implementing the hold ph= ase, and replace the internal reset call with device_cold_reset(). Signed-off-by: Oscar Alejandro S=C3=A1nchez Lucero --- hw/intc/openpic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 6f9a562163..74c2e6e966 100644 --- a/hw/intc/openpic.c +++ b/hw/intc/openpic.c @@ -174,7 +174,6 @@ static uint32_t openpic_cpu_read_internal(void *opaque,= hwaddr addr, int idx); static void openpic_cpu_write_internal(void *opaque, hwaddr addr, uint32_t val, int idx); -static void openpic_reset(DeviceState *d); =20 /* * Convert between openpic clock ticks and nanosecs. In the hardware the = clock @@ -544,7 +543,7 @@ static void openpic_gcr_write(OpenPICState *opp, uint64= _t val) bool mpic_proxy =3D false; =20 if (val & GCR_RESET) { - openpic_reset(DEVICE(opp)); + device_cold_reset(DEVICE(opp)); return; } =20 @@ -1253,9 +1252,9 @@ static const MemoryRegionOps openpic_summary_ops_be = =3D { }, }; =20 -static void openpic_reset(DeviceState *d) +static void openpic_hold_reset(Object *obj, ResetType type) { - OpenPICState *opp =3D OPENPIC(d); + OpenPICState *opp =3D OPENPIC(obj); int i; =20 opp->gcr =3D GCR_RESET; @@ -1616,10 +1615,11 @@ static const Property openpic_properties[] =3D { static void openpic_class_init(ObjectClass *oc, const void *data) { DeviceClass *dc =3D DEVICE_CLASS(oc); + ResettableClass *rc =3D RESETTABLE_CLASS(oc); =20 dc->realize =3D openpic_realize; device_class_set_props(dc, openpic_properties); - device_class_set_legacy_reset(dc, openpic_reset); + rc->phases.hold =3D openpic_hold_reset; dc->vmsd =3D &vmstate_openpic; set_bit(DEVICE_CATEGORY_MISC, dc->categories); } --=20 2.53.0 From nobody Sun Dec 6 20:46:09 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1796274471; cv=none; d=zohomail.com; s=zohoarc; b=CizcoqIDnUh1mXqX2jujpOqAzJwy+BVIar3+xx619PfgtD7cZhZhVOwCewjL5fcQPbkh4C08EEjz66Qs0gkZiiq/0R1yzFgMgTvhY7xO2KpN+/ONQS5psoFYo+EZTtLKKRTNKGfwZov9nu26BlVmfvh7YHDK34re/MTc+rYcaTc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796274471; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=34Sdm4RDfcL2KIe5pBXBDVLTvRKdpRwftkRFn2eGZRo=; b=EXzTME+tdzNgVPVqSC3jVANmKFHwzF89wp4OfVZtoQJ7zFyFI8yGZxDmxNun+y3iHLAiejQQW7vcgJo4GteMWuwKfkehBXe0oUvK4ecLa9rH1K0oe/qzQ0XTmh9ABN6x7PSQFPJLo0rF+c1Ax0DzfnlhL/6KRIHQOPdICk2k5gA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1796274471442938.3831459895727; Wed, 2 Dec 2026 21:07:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYz20-0005HM-Ca; Thu, 03 Dec 2026 00:06:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYz1x-0005Fm-60 for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:53 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0: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 1xYz1v-00081Y-6m for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:52 -0500 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-8b2382bf051so7292116b3a.3 for ; Wed, 02 Dec 2026 21:06:50 -0800 (PST) Received: from cfarm136.osuosl.org (cfarm136.osuosl.org. [2605:bc80:3010:104:21e:67ff:fefd:7034]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e457d1sm22550837b3a.30.2026.12.02.21.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 21:06:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796274410; x=1796879210; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=34Sdm4RDfcL2KIe5pBXBDVLTvRKdpRwftkRFn2eGZRo=; b=D65q+XyZVwTAMnVOgC9G8n9A9nm7GJz4xJqujAdrdgfx8b5kJykyxV4e6fChRRNYVU MAtGxqOSeI3B0I+P6fAL28/WvDZsZBvCiHlRsuTjuDweJ3XzDPrrfsIjctj3VzUmiFRf WPTjPRCZdZHKPizSNZLMs2M4zIIDkeVb4BUstjes5mDr0owJGBB0RJZ1+bQHQYRDuUXp GSd0H7+jFH6LU9gkE6qYlCGMCjDHMvTLCls5aotA6v0C83d5I3YRLN88O99MJ/2MXTCa Epia13XbMUemqUHinWJ8EMflSRymGEBN+Y2hJ5UQm4b0n3nlzX+8VJ4VgTX9y9sZ7e+q dcZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796274410; x=1796879210; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=34Sdm4RDfcL2KIe5pBXBDVLTvRKdpRwftkRFn2eGZRo=; b=qaB4Dd+JXEG5DbUhaktnEfW/ywxo8s0uxz44nhgoHc53Fz0TPFeuoCgWjBXuFkidEL Y2PLNG0faj9NtVN9k7iQ9g2j0OMn14tzdVH5YxllV7ZyEXcz6qPTDM22FtT4Hnze5sqi /wr2k8EXm5yQGAmUZEOmAFuyPuE+FST45b+KiGhch4e5Ku1B6Vj2/FsWoS6G28A/AQch FqxCNnTPqjobVyrxCr3uMS1/6hebzoK5ENkBVZG4S6+aHGJiVbobaodY8Cqmvk7RY2EA 4zsIqKcJL/wnOHnc5ajapK+vrctavGQht7Iip5IbGRt/Zzk/mzqPmsG0ofoAdS3fzmen dyVg== X-Gm-Message-State: APuU4Z/s2eWYZRnxjzq1QjzmG+ME2W/EFatdOZDM5uvSZ6fnNUR7Pi/Q fYc/EUgvb+nugLiqwgoVFLH/1o23CsOzMaCpAg1bx8vXhXSntLKNjyo9 X-Gm-Gg: AZFdTZeitl0WbTv8ZvSL3xPz/TMGmLqRKceBlevVtxa8dmBDq8M73mZ58R2yaxEhm64 76AzhGqb84ESumrGeIPGmyzFNAZdjTdCEEPykinKj0ZnUXKj9vO9Q7sFWadSgIEunTnpCMQwvUf rPXaUVSLxCIuEBs3HFOm9L6Yd/LrSAFpnUj759C7xINgju9ghQ5yLbGYjTYGm5X3o/ttI8GxovQ 3hYMCy1WouQhV3SvyMZuOjPLnJuc6VaXTbNMtFKQKiaTP7Tzu0YaqeBcx9vmjpV7AxXYAUaHGxm 6FEJBDYzS/ieMyT5mui4hcaUfX8PsUf8hZKgWGEdly5IDxkNoYiHqHXMoyeg3aPZhZ06wa9atLa rckk0qEyO62QEolQxiJRgdjgWHFYHr5gGrXne6FI0hflg2wI9x9EFlgE9Exh+StXky3rq4m3CGF CKTF1Uburtz4z44nJcMSl6Y55RW33wS6lWsT0HnwHAOtCWiaureyfQMBmyiZzFEOIirKOn8DJWV 2XPaDXrucGQJ7ham/IfwLwSNgQRHAMD3TZ5smSRWg8ycj1tJXcTrJ0+dHlyBq2vCRhWgkmG9a8G hIEaMCQFuk2u1TaLyyBJtCpbojO1gYBQ000FFu1aXHWhzA7Ec3nVp1KFwhFhJZp9DtFEXQBEydf CXp4caS1GdhZnZGlZpupbmyRt02AyWRhk X-Received: by 2002:a05:6a00:438b:b0:878:3538:8f7a with SMTP id d2e1a72fcca58-8c87ca5055dmr39802674b3a.40.1796274409799; Wed, 02 Dec 2026 21:06:49 -0800 (PST) From: =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= Date: Thu, 03 Dec 2026 05:06:43 +0000 Subject: [PATCH 3/4] hw/intc/openpic_kvm: Migrate from legacy_reset to Resettable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261203-reset-intc-ppc-v1-3-7d74a81b7e9c@gmail.com> References: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> In-Reply-To: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , qemu-ppc@nongnu.org, Bernhard Beschow , =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= X-Mailer: b4 0.16.0 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=aleszlucero@gmail.com; helo=mail-pf1-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, FREEMAIL_FROM=0.001, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1796274472019158500 Convert openpic_kvm from the deprecated device_class_set_legacy_reset() interface to the three-phase Resettable interface, implementing the hold ph= ase. Signed-off-by: Oscar Alejandro S=C3=A1nchez Lucero --- hw/intc/openpic_kvm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/intc/openpic_kvm.c b/hw/intc/openpic_kvm.c index b099da20eb..05301509a5 100644 --- a/hw/intc/openpic_kvm.c +++ b/hw/intc/openpic_kvm.c @@ -76,9 +76,9 @@ static void kvm_openpic_write(void *opaque, hwaddr addr, = uint64_t val, } } =20 -static void kvm_openpic_reset(DeviceState *d) +static void kvm_openpic_hold_reset(Object *obj, ResetType type) { - KVMOpenPICState *opp =3D KVM_OPENPIC(d); + KVMOpenPICState *opp =3D KVM_OPENPIC(obj); =20 /* Trigger the GCR.RESET bit to reset the PIC */ kvm_openpic_write(opp, 0x1020, GCR_RESET, sizeof(uint32_t)); @@ -333,10 +333,11 @@ static const Property kvm_openpic_properties[] =3D { static void kvm_openpic_class_init(ObjectClass *oc, const void *data) { DeviceClass *dc =3D DEVICE_CLASS(oc); + ResettableClass *rc =3D RESETTABLE_CLASS(oc); =20 dc->realize =3D kvm_openpic_realize; device_class_set_props(dc, kvm_openpic_properties); - device_class_set_legacy_reset(dc, kvm_openpic_reset); + rc->phases.hold =3D kvm_openpic_hold_reset; set_bit(DEVICE_CATEGORY_MISC, dc->categories); } =20 --=20 2.53.0 From nobody Sun Dec 6 20:46:09 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1796274455; cv=none; d=zohomail.com; s=zohoarc; b=WG/gFhwhpLmW3uGvjV/qxz5M0fnArVs8wXFPOeuZ4g815qVldxx6nT6lLswYfECkhpQ1JFPaHc25eAzXsoeB0wjisCEGYUW3DZY7eUm2s4on3KqJIINt2ppUdVI+/7FSrKJc6cuc3Gqxm7oYNYWsdb9Rj5raIZEM0AleYRQWcE4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796274455; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=h2jOtihNwqOdZavEuctS0sh+4pmtyIWrDlR/NGj1pAk=; b=RpSUVTptBYl5JhO4iNK2Uoc3HkAp55HtpLpV1ZN7Jd/zKfkbVyg0RAHaK9952vY7g2jwKoopUbppLg1YetKS5b/qCawqiaCTWSxp7ZuQYal0j7eZMogiMRA8YFDctc8JS6rcy+EmtFFdoU7MhbJW7WAxLoflTKSFW8O6JlhRLRs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1796274455598698.5282749943401; Wed, 2 Dec 2026 21:07:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYz1z-0005H0-JZ; Thu, 03 Dec 2026 00:06:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYz1x-0005Fp-Iv for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:53 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xYz1w-000866-41 for qemu-devel@nongnu.org; Thu, 03 Dec 2026 00:06:53 -0500 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-8b67f25e6e1so6930352b3a.0 for ; Wed, 02 Dec 2026 21:06:51 -0800 (PST) Received: from cfarm136.osuosl.org (cfarm136.osuosl.org. [2605:bc80:3010:104:21e:67ff:fefd:7034]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e457d1sm22550837b3a.30.2026.12.02.21.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 21:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796274411; x=1796879211; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=h2jOtihNwqOdZavEuctS0sh+4pmtyIWrDlR/NGj1pAk=; b=Ch6YflcSRmZ8QeSOix3AJyRnl48yae9P3bmkI3YWOcXoiWe/ve88zTG2zGzI7DMtr2 1Xt/zsL+oPr57+arKWZBU7YWElhs7UEMq3nu77KBfwnhnG7u1No0XQ5VK/PFED6TR0me wGxRaGWe3ZNNSWRy+u5+789Wc1cRxW/teueKljk0Gz681fS9IgNkCeSvJY/hJX8LOUS+ XrCV9Mh19ULQGeXlY5QJfIAzeGwJDOrOofv6+mEXiJBk49ZeUiLsyN4MyExIuhiV6jdO J7F6x+G9EqgpCMgIfpgghvqVBVXbypCc4LXRxLDg3wd40ffN53eUYvuB/980c7y/997Y 1W9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796274411; x=1796879211; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=h2jOtihNwqOdZavEuctS0sh+4pmtyIWrDlR/NGj1pAk=; b=iWyRMRnd3aI77ozXzGvPp9CaAKfiY3BSao1s9OMPksIB/dRceHjDbJITNBYS1RduTD VxQAoaD353AOHppK9KEqkTCl9Dh4UyAZ0RwAzPlHp8uAt218e8VY4E9pIiFaIiEuyIUh SoqjtPilfm5MZWsYwR5RhlDKSJKrAq4M1Chn++zbEwRnq8MfuxtK0mKg5VGGBlfM6rOy A7bJndlcInGYS3g9OPGHG9eCeLY8/iw/9fu69GdT5N4iKmE+kVhvfTAUb1GgevNJoWTV Jz4BrRSUpUZepGtVnwyISBfv6qGX4B/RXJPUX8DIn/wlJRPGKqUZQfbuFEEl4JgYey35 KNyg== X-Gm-Message-State: APuU4Z9BVjOayja9PFhxC/8OuLRNHQ6lQ1wQfZsA29Oi0NkU+YWS3gnd 6CUg/qESwRIvwsfS0XdpOpi0R9apK/9twNGbeSNlS0g+aJelYmHs3dji X-Gm-Gg: AZFdTZctrVPPM18vIqhr7+XrQwLF3xRG0hcsItqZq1odMfafGMhswr63N7qPirj6rtg CkahShrx6I59YETJtKouTF1weKdTGMhl2sbOIoeTv3hUt0erMBqWEsKD6Ty7t4EdmixzmMlc6hr 9gX+7sJZo35KfRIyxLM5xtaMjlSaXDc12w8e/bW/aOi0xIX7KS7GwTIwGJRhK7POa5dW+0OeCJr Uu3nBwMKPiqlTZ+Wh9zSyB5Ik4I5nxII021XLC3u+/FzgvBD7abazeXK9PNVAArFtRbFvUT1leq YKYqkOJyUR6nO0PFXhmUoqVrvc0cxMGmlnMfpuzMnLKz+qIea47uQejWShu//AmDx1EctoaOIzn 3orAUBPoo1PWRDhfE4IB+OliEemdhIJaXyIn6TNEbXYyuqeOeEm/3WPNQ2c4cHX8YqB7sJZTHMP 9Lors7MxGDawmnygyGaIhUcKJSPlv6Du3LyQTi61EtdUz8JU41DXowwk+/0B6xvJPrGTiT0xdJ8 ZuxIJRx42s3v/vEiCtTi1NTzrXIBliMfGIRu/tp/f3KQONaxS7nMGPOGFPKbxf0n43JjxdT8jnX BWxHBiRln4I59+lmUNBlflhAks1DZebHyv7djJef+txDYhpr7GTiZV0+7i8fwRcixWWbwbVBdR2 gNQEHCB4N9zxfJyC7nhh2BlG7quyAG4w= X-Received: by 2002:a05:6a00:f07:b0:881:4b47:f31a with SMTP id d2e1a72fcca58-8c87baca5c4mr38234590b3a.11.1796274410596; Wed, 02 Dec 2026 21:06:50 -0800 (PST) From: =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= Date: Thu, 03 Dec 2026 05:06:44 +0000 Subject: [PATCH 4/4] hw/intc/ppc-uic: Migrate from legacy_reset to Resettable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261203-reset-intc-ppc-v1-4-7d74a81b7e9c@gmail.com> References: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> In-Reply-To: <20261203-reset-intc-ppc-v1-0-7d74a81b7e9c@gmail.com> To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , qemu-ppc@nongnu.org, Bernhard Beschow , =?utf-8?q?Oscar_Alejandro_S=C3=A1nchez_Lucero?= X-Mailer: b4 0.16.0 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=aleszlucero@gmail.com; helo=mail-pf1-x435.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, FREEMAIL_FROM=0.001, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1796274455882158500 Convert ppc-uic from the deprecated device_class_set_legacy_reset() interface to the three-phase Resettable interface, implementing the hold ph= ase. Signed-off-by: Oscar Alejandro S=C3=A1nchez Lucero --- hw/intc/ppc-uic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/intc/ppc-uic.c b/hw/intc/ppc-uic.c index 5090101f07..4823c82c9d 100644 --- a/hw/intc/ppc-uic.c +++ b/hw/intc/ppc-uic.c @@ -227,9 +227,9 @@ static void dcr_write_uic(void *opaque, int dcrn, uint3= 2_t val) } } =20 -static void ppc_uic_reset(DeviceState *dev) +static void ppc_uic_hold_reset(Object *obj, ResetType type) { - PPCUIC *uic =3D PPC_UIC(dev); + PPCUIC *uic =3D PPC_UIC(obj); =20 uic->uiccr =3D 0x00000000; uic->uicer =3D 0x00000000; @@ -284,8 +284,9 @@ static const VMStateDescription ppc_uic_vmstate =3D { static void ppc_uic_class_init(ObjectClass *klass, const void *data) { DeviceClass *dc =3D DEVICE_CLASS(klass); + ResettableClass *rc =3D RESETTABLE_CLASS(klass); =20 - device_class_set_legacy_reset(dc, ppc_uic_reset); + rc->phases.hold =3D ppc_uic_hold_reset; dc->realize =3D ppc_uic_realize; dc->vmsd =3D &ppc_uic_vmstate; device_class_set_props(dc, ppc_uic_properties); --=20 2.53.0