From nobody Tue Oct 28 12:16:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515380227789269.56030853893844; Sun, 7 Jan 2018 18:57:07 -0800 (PST) Received: from localhost ([::1]:59420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYNcY-0007XB-Sj for importer@patchew.org; Sun, 07 Jan 2018 21:57:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYNSs-0007DY-FV for qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:47:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYNSq-0002lA-0J for qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:47:06 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:43134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYNSp-0002l0-SC for qemu-devel@nongnu.org; Sun, 07 Jan 2018 21:47:03 -0500 Received: by mail-qt0-x243.google.com with SMTP id w10so12061767qtb.10 for ; Sun, 07 Jan 2018 18:47:03 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id d10sm7156245qkg.16.2018.01.07.18.47.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jan 2018 18:47:02 -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=/RvJqlN2+piT0QB6kj4RaqGrBYycjmBaOoE+74QduwI=; b=aAGwFlq9FJcfHPtXzCaFvl239lmDESb5p3Qn+15Y2iZfiO0fEBe3dQET/G7IkqWVIu 9++PTvPOqsQNp0jy1KdAOlqe45rKOuHSR/4u/KOLX3jmJx20Bj7g7wZ5ccvz2EkwSWoQ YWSjysgDB2+6LOtMnZzAteG2Jtpmoa+++38p3ucOCH4JzwIESpbRwszJq3a1BTc6A19X 7aJHDZmSlJmEDmEWg0gHJNxBSl6UMs+s+sJRDa+0H082UVctfs3sedFdhQ7HV8SNzDZz qRUzj4XUbfavSdNWnlht4RizVEE5acFrvmwW/tiQIENwdR8tgERDirin2TEf4hLo2ke6 Urhg== 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=/RvJqlN2+piT0QB6kj4RaqGrBYycjmBaOoE+74QduwI=; b=UN1Q0KO3VDowlsm99UjgblERl3wPbKyWcxt0RpKf3VBjc+LgSBKL0jw4LYKwQnbc+J P1LdY5ZqWH0HiYxQ6EjgKSfYeJaE+hoSGKh10DCwmvEBF+49o7CPrHR/d3FsE4dOokCM ORWTq+EE5h3M/754kgCWo9X9PGkfSsEkAxtQ6DilfV8E/q/dU/xZd3oQo/q3UESF2wVI x+x0URkteeBc2tItwyUorI6KcsslIxbpmC9irN/fe/jehEUSWEE+U7ruWbwl+hfnVoLe JW16NV11fMojiKB3vEhEezO1rX/5fzSpOsuZElG2dmNmZTfsO2l59mPWjblewqiHTwtp Kuqw== X-Gm-Message-State: AKwxytd79McnFoBQz1jncWTTj36uhvOfLQJEKHyAjd86GFihlo49aPr0 dETKFkV3kZxL1Em6XCxJWBk0AWRL X-Google-Smtp-Source: ACJfBos1uXjBHSKSZ+Gses5qpTUhB37CB7pPMsYRvSIpmyUF9GRuULpr+FsP2KpXa+w+gbMHh3/EJQ== X-Received: by 10.200.35.6 with SMTP id a6mr14720101qta.311.1515379623380; Sun, 07 Jan 2018 18:47:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Paolo Bonzini , "Michael S. Tsirkin" , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Aurelien Jarno , Eduardo Habkost , Marcel Apfelbaum , Peter Maydell Date: Sun, 7 Jan 2018 23:45:45 -0300 Message-Id: <20180108024558.17983-17-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108024558.17983-1-f4bug@amsat.org> References: <20180108024558.17983-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [RFC PATCH 16/29] Revert "irq: introduce qemu_irq_proxy()" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Mammedov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 This function isn't used anymore. This reverts commit 22ec3283efba9ba0792790da786d6776d83f2a92. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- I think circular IRQ dependencies should be avoided with today's QOM device= s. include/hw/irq.h | 5 ----- hw/core/irq.c | 14 -------------- 2 files changed, 19 deletions(-) diff --git a/include/hw/irq.h b/include/hw/irq.h index 4c4c2eaf9a..ee823177e6 100644 --- a/include/hw/irq.h +++ b/include/hw/irq.h @@ -53,11 +53,6 @@ qemu_irq qemu_irq_invert(qemu_irq irq); /* Returns a new IRQ which feeds into both the passed IRQs */ qemu_irq qemu_irq_split(qemu_irq irq1, qemu_irq irq2); =20 -/* Returns a new IRQ set which connects 1:1 to another IRQ set, which - * may be set later. - */ -qemu_irq *qemu_irq_proxy(qemu_irq **target, int n); - /* For internal use in qtest. Similar to qemu_irq_split, but operating on an existing vector of qemu_irq. */ void qemu_irq_intercept_in(qemu_irq *gpio_in, qemu_irq_handler handler, in= t n); diff --git a/hw/core/irq.c b/hw/core/irq.c index b98d1d69f5..c8e96f122a 100644 --- a/hw/core/irq.c +++ b/hw/core/irq.c @@ -121,20 +121,6 @@ qemu_irq qemu_irq_split(qemu_irq irq1, qemu_irq irq2) return qemu_allocate_irq(qemu_splitirq, s, 0); } =20 -static void proxy_irq_handler(void *opaque, int n, int level) -{ - qemu_irq **target =3D opaque; - - if (*target) { - qemu_set_irq((*target)[n], level); - } -} - -qemu_irq *qemu_irq_proxy(qemu_irq **target, int n) -{ - return qemu_allocate_irqs(proxy_irq_handler, target, n); -} - void qemu_irq_intercept_in(qemu_irq *gpio_in, qemu_irq_handler handler, in= t n) { int i; --=20 2.15.1