From nobody Wed Apr 2 00:34:19 2025 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1649087409; cv=none; d=zohomail.com; s=zohoarc; b=QS1nyuiiPrl0YZzGb1DS5/TquqhFXxIYHA0Q9Vjahx+TehyRtx1efwYpYgSgtWtoWyHyGZIJMW/31A5CeVSJzUSEtgzl/HYfTKrqX3ZOQg0ZVleXjkcmekpRzUrJ/7qr6S8lBWg3YyCfb7X8jpk23HQfBU7u7DGZBQsgHCJWTJA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649087409; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8m9EfK0c68obkrRWOTj5E9nZ54Ec0fZc8cnW0/o32t0=; b=YATkKxBIl2Oecjqndnf2Wd/2M1IOgT0hwFT0Xd4x8ePVXohf2DK/Id1US36hIAiGEj0Znr3Zmqd7QUSk6a1KFmFkoxp6D0Any/J3UJlt0rhnRtu89DsMMjeHPqWzK46qGVIBsAIWvQ4donp1TiZKVr2c+Yf4NPgN8rC/VB9X23U= 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1649087409074602.1728315780011; Mon, 4 Apr 2022 08:50:09 -0700 (PDT) Received: from localhost ([::1]:45688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbOxz-0000C9-19 for importer@patchew.org; Mon, 04 Apr 2022 11:50:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbOv4-0004lt-9z for qemu-devel@nongnu.org; Mon, 04 Apr 2022 11:47:06 -0400 Received: from [2a00:1450:4864:20::32d] (port=50745 helo=mail-wm1-x32d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbOv1-0000S9-T8 for qemu-devel@nongnu.org; Mon, 04 Apr 2022 11:47:05 -0400 Received: by mail-wm1-x32d.google.com with SMTP id h16so6230553wmd.0 for ; Mon, 04 Apr 2022 08:47:03 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id c8-20020a056000184800b002040e925afasm11731347wri.59.2022.04.04.08.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 08:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8m9EfK0c68obkrRWOTj5E9nZ54Ec0fZc8cnW0/o32t0=; b=nwL08n9dmoyhwEB1vUP2XKeOtuA1ea+98GolqE0ztVfDsoPRi1OQ2aF4rfjrfDIYjX kLSKq2YQttdSlX3d4BxWWEu39ojdbcmF5kEU97V4wk3+Ch7hr3RMI2n9ldwQBkQHyeq9 MAlLbp3IuHx6/aRGjdfizOoR6egqN5467tLjxVCaQzuSY/n61Dv/Po3MOMzvITdBwjm+ lWgEYYDKYdj/y0qk0OgQGiqv+EpccoXOLI0i/0qm3e9vCZxLEBCP34c9HPRqq95rrJU7 JLup02NhV5L2u61o1KLxWWGGtopBtFQnO9gVaNfYRw28YP754+1M7ZvRylqbRsjeU/cv v3Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8m9EfK0c68obkrRWOTj5E9nZ54Ec0fZc8cnW0/o32t0=; b=xpy4XEYbskYZVJzOavLJOD4bAOgSqwNmAXBgY/7Xl+Yz8zVPxeReGm1PHC92GyB1TN 8ieV/u45BCQKbuyCylaNjXXflVA2V5kKmQ3sppJjjjCeHKlSW1Ctj1NM0PvPTTpe2tcW 3Zty0brvvXd/aqcQkb3uak1cMlACjHQGvZ5E6R/OeXp7renoTqMhUPrZNtZwG/0wMpHZ nNoI7JZKwngrAn3hQ+chmEJP89MaWd/D9MfZVk/gAUDVBMs4XarHEVduHXEccSjMw4kK x9WKuelt1S+GG7WV//jUUSK1PwKqrEhWbzu1U4QRkzrx5uvz+PJfBn2JmyohL1smwhFl XJjw== X-Gm-Message-State: AOAM5323QFt5shgzQJB+3uLOk+1oNP0VUOYoUPjT1e42hp1GenrhanUl DfkwKllalUOfgLq3UeH8KvBYvw== X-Google-Smtp-Source: ABdhPJwNtw7W4guUZg7Pr9AVLVmgi181TlWjFQhTYskiGIOfKc3AyhcntRyc5gAtDrDFv1jc6uJ/6A== X-Received: by 2002:a05:600c:4fce:b0:38d:a58:6d16 with SMTP id o14-20020a05600c4fce00b0038d0a586d16mr118052wmq.11.1649087222560; Mon, 04 Apr 2022 08:47:02 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH for-7.1 02/18] hw/intc/exynos4210_gic: Remove unused TYPE_EXYNOS4210_IRQ_GATE Date: Mon, 4 Apr 2022 16:46:42 +0100 Message-Id: <20220404154658.565020-3-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220404154658.565020-1-peter.maydell@linaro.org> References: <20220404154658.565020-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32d (failed) 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=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Igor Mitsyanko , Zongyuan Li Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1649087411535100001 Content-Type: text/plain; charset="utf-8" Now we have removed the only use of TYPE_EXYNOS4210_IRQ_GATE we can delete the device entirely. Signed-off-by: Peter Maydell Reviewed-by: Francisco Iglesias --- hw/intc/exynos4210_gic.c | 107 --------------------------------------- 1 file changed, 107 deletions(-) diff --git a/hw/intc/exynos4210_gic.c b/hw/intc/exynos4210_gic.c index bc73d1f1152..794f6b5ac72 100644 --- a/hw/intc/exynos4210_gic.c +++ b/hw/intc/exynos4210_gic.c @@ -373,110 +373,3 @@ static void exynos4210_gic_register_types(void) } =20 type_init(exynos4210_gic_register_types) - -/* IRQ OR Gate struct. - * - * This device models an OR gate. There are n_in input qdev gpio lines and= one - * output sysbus IRQ line. The output IRQ level is formed as OR between all - * gpio inputs. - */ - -#define TYPE_EXYNOS4210_IRQ_GATE "exynos4210.irq_gate" -OBJECT_DECLARE_SIMPLE_TYPE(Exynos4210IRQGateState, EXYNOS4210_IRQ_GATE) - -struct Exynos4210IRQGateState { - SysBusDevice parent_obj; - - uint32_t n_in; /* inputs amount */ - uint32_t *level; /* input levels */ - qemu_irq out; /* output IRQ */ -}; - -static Property exynos4210_irq_gate_properties[] =3D { - DEFINE_PROP_UINT32("n_in", Exynos4210IRQGateState, n_in, 1), - DEFINE_PROP_END_OF_LIST(), -}; - -static const VMStateDescription vmstate_exynos4210_irq_gate =3D { - .name =3D "exynos4210.irq_gate", - .version_id =3D 2, - .minimum_version_id =3D 2, - .fields =3D (VMStateField[]) { - VMSTATE_VBUFFER_UINT32(level, Exynos4210IRQGateState, 1, NULL, n_i= n), - VMSTATE_END_OF_LIST() - } -}; - -/* Process a change in IRQ input. */ -static void exynos4210_irq_gate_handler(void *opaque, int irq, int level) -{ - Exynos4210IRQGateState *s =3D (Exynos4210IRQGateState *)opaque; - uint32_t i; - - assert(irq < s->n_in); - - s->level[irq] =3D level; - - for (i =3D 0; i < s->n_in; i++) { - if (s->level[i] >=3D 1) { - qemu_irq_raise(s->out); - return; - } - } - - qemu_irq_lower(s->out); -} - -static void exynos4210_irq_gate_reset(DeviceState *d) -{ - Exynos4210IRQGateState *s =3D EXYNOS4210_IRQ_GATE(d); - - memset(s->level, 0, s->n_in * sizeof(*s->level)); -} - -/* - * IRQ Gate initialization. - */ -static void exynos4210_irq_gate_init(Object *obj) -{ - Exynos4210IRQGateState *s =3D EXYNOS4210_IRQ_GATE(obj); - SysBusDevice *sbd =3D SYS_BUS_DEVICE(obj); - - sysbus_init_irq(sbd, &s->out); -} - -static void exynos4210_irq_gate_realize(DeviceState *dev, Error **errp) -{ - Exynos4210IRQGateState *s =3D EXYNOS4210_IRQ_GATE(dev); - - /* Allocate general purpose input signals and connect a handler to eac= h of - * them */ - qdev_init_gpio_in(dev, exynos4210_irq_gate_handler, s->n_in); - - s->level =3D g_malloc0(s->n_in * sizeof(*s->level)); -} - -static void exynos4210_irq_gate_class_init(ObjectClass *klass, void *data) -{ - DeviceClass *dc =3D DEVICE_CLASS(klass); - - dc->reset =3D exynos4210_irq_gate_reset; - dc->vmsd =3D &vmstate_exynos4210_irq_gate; - device_class_set_props(dc, exynos4210_irq_gate_properties); - dc->realize =3D exynos4210_irq_gate_realize; -} - -static const TypeInfo exynos4210_irq_gate_info =3D { - .name =3D TYPE_EXYNOS4210_IRQ_GATE, - .parent =3D TYPE_SYS_BUS_DEVICE, - .instance_size =3D sizeof(Exynos4210IRQGateState), - .instance_init =3D exynos4210_irq_gate_init, - .class_init =3D exynos4210_irq_gate_class_init, -}; - -static void exynos4210_irq_gate_register_types(void) -{ - type_register_static(&exynos4210_irq_gate_info); -} - -type_init(exynos4210_irq_gate_register_types) --=20 2.25.1