From nobody Thu May 2 05:23:43 2024 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1582302098; cv=none; d=zohomail.com; s=zohoarc; b=M4Eh1GSY2pkFdBnjCjsfnTU0kTvFpa1asnx6jlmXy33wyt/TVv8UF3yoQgiKjH8R4DTQRy0zclImyiVDv5i2DM6fRxx3PO8ukNQ7gh/poBUjGW7KHUAr9JxL72fuZyl4vsjazdHqtd6Gbj8HiahcmwBkXNLR0LU6NFzqWjAspzo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582302098; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=RlS28yLXsqsfr1rK9KjCIUl+K4ng7LhTJEdDyW+5qGY=; b=YxPhKLnohIsuWLQMYISOLllErEXWO9rsrxLX4OrksZxcaZZj4qBXhHE9AIwqfX53Ac2uaoXuxFLsa6HDeZuuBIRPURbL2L00PwmVhGt0fOf89hrcf2yprnqs6OSfvkj9J+MmbDykfyfh/VJ3XgHdeJx/t3NBB43d7SA25YdGT8w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582302098340354.22958199040875; Fri, 21 Feb 2020 08:21:38 -0800 (PST) Received: from localhost ([::1]:60736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5B3Z-0002dw-D3 for importer@patchew.org; Fri, 21 Feb 2020 11:21:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45999) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5B2K-0001dh-4J for qemu-devel@nongnu.org; Fri, 21 Feb 2020 11:20:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5B2J-0002hx-81 for qemu-devel@nongnu.org; Fri, 21 Feb 2020 11:20:20 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:25396 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5B2J-0002hq-3Q for qemu-devel@nongnu.org; Fri, 21 Feb 2020 11:20:19 -0500 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-229-qb0EgROyPp6ivTfMXwKQrw-1; Fri, 21 Feb 2020 11:20:17 -0500 Received: by mail-wm1-f70.google.com with SMTP id p2so781287wma.3 for ; Fri, 21 Feb 2020 08:20:17 -0800 (PST) Received: from x1w.redhat.com (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id m3sm4558996wrs.53.2020.02.21.08.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 08:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582302018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RlS28yLXsqsfr1rK9KjCIUl+K4ng7LhTJEdDyW+5qGY=; b=FJ1V1CP2s5ywI0RD7hXTAOJ0pbqhvSzMkKVqmPnKDltIRj8ODRNGf18gjMj8+Bv96MWJdx CLbvA70//MsxrskHnrGWEyP7dPl1OALkue0BSHeYztIe7bx7c1q+dPo9MgJo+FEGrxA7Et VZ8+iTy2/kxgODpVjpf2DNouk8hsRSU= X-MC-Unique: qb0EgROyPp6ivTfMXwKQrw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NucZwwxE2rLlPt85TcvEmJXYWjTSnxUvHMBjuRGVljM=; b=P+GOeTD9hNVfOXPntFi4lFJZ2vmYNrjSySTLeuBf1NAVSd9v59LP8R3kUvpcwdhb/3 +SbSMb5tCG4OH0HPbGr/pDPWr5f7n73fYKkpNGa6ONBMKkEtXQtPwFIF3yJY//J1hNcM Mpi6UIIX3Em25lke/ufx8QBeanwi0mRVA/tKNHrT5ynyNWKUvlZzwc3PemkBtZaHtAba 748BuTOKrSTZhLRAg23hZ58SfOeE33TgQCYWr3EfNW82Ay6lLEjalSNYs01sd+btYu3x 2LZ355KhGRkCIJG+k9ierZhQdFr1yvEFBE237A6mRKVNTlu4pipbyOWEYsLqUWjjCZwe 2W2Q== X-Gm-Message-State: APjAAAWRYYwjLWYN70HZkO+4d1TtVIfnw0CW7P8skXCj+pN56dk0oX3l G+W0tsIgLLmOwGdj6i0JVhKz3hpgTIi7mYggHBrrGvQZLkRDCbjRGSIegoo+qPGqSB3pRtKpDbG ieqLGsMdyeticx7w= X-Received: by 2002:a7b:cf08:: with SMTP id l8mr4525625wmg.169.1582302013788; Fri, 21 Feb 2020 08:20:13 -0800 (PST) X-Google-Smtp-Source: APXvYqx9z6EixTMiFYsow6hAX8LAVG6PSqH9NH4eeyEdDQu17lUUYHZUu3LrWmjllaTPPs2qq5d1KA== X-Received: by 2002:a7b:cf08:: with SMTP id l8mr4525601wmg.169.1582302013534; Fri, 21 Feb 2020 08:20:13 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH] hw/mips/mips_int: Simplify cpu_mips_irq_init_cpu() Date: Fri, 21 Feb 2020 17:20:11 +0100 Message-Id: <20200221162011.26383-1-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Richard Henderson , Aurelien Jarno , Aleksandar Markovic Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Since commit d8ed887bdc, the cpu_mips_irq_request handler takes a pointer to MIPSCPU in its opaque argument. Directly pass the cpu pointer. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Aleksandar Markovic --- hw/mips/mips_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c index 863ed45659..796730b11d 100644 --- a/hw/mips/mips_int.c +++ b/hw/mips/mips_int.c @@ -77,7 +77,7 @@ void cpu_mips_irq_init_cpu(MIPSCPU *cpu) qemu_irq *qi; int i; =20 - qi =3D qemu_allocate_irqs(cpu_mips_irq_request, env_archcpu(env), 8); + qi =3D qemu_allocate_irqs(cpu_mips_irq_request, cpu, 8); for (i =3D 0; i < 8; i++) { env->irq[i] =3D qi[i]; } --=20 2.21.1