From patchwork Mon Feb 27 14:01:01 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: 657067 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2380393wrb; Mon, 27 Feb 2023 06:26:49 -0800 (PST) X-Google-Smtp-Source: AK7set9TtzJ1zne55y4kidnb+i8ucxSfkTN6B/4G8yG1FChWVuBtAS6F3odXahVSlX+yqyfQVtwv X-Received: by 2002:a05:622a:14d:b0:3af:4d45:b73 with SMTP id v13-20020a05622a014d00b003af4d450b73mr41954917qtw.33.1677508009416; Mon, 27 Feb 2023 06:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677508009; cv=none; d=google.com; s=arc-20160816; b=uTekEyXWkGW6WO+zvKBrs4Spy19LKwKvkj1QSUsRc1BGnAnrcNdKDf1BzxuursTBY1 gZKqw+Jc2uL47D4FzahMZ4VHDu7RuV2iNK8RZZ2uNlRqbIiFmh58s5yOROb3knLhBNFx g58nZo0FRzAIYybEAu8YUAZ/VnwcoNp9lg7utMnnFOOEwoOvCcIWVQbIadFme3sJo2iW Re6v+onTQNj+cG4iWt1LxFrFfWWBiQIU16iMoIBKrr0oO6bJNXzHCcnXIxXVfHj0IjFJ y5sdoNdvvCsYvxSRZdgCudlGvxVFLnZsNJgYNqQVlbFmEA0LmpyjyM9J3+Ikpn4/0GSi canQ== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=LhfXfTTiOAw8Tas+LE/Xmhs92F8Sdpjj0w+PGmwionY=; b=GXw7/fmwAtg9wPln/qt5fDah1BNIOYPzS2FjMFEMTkJkVNhzdcfml+75xyv2kDR1rn KMwO4EqY+abUFcMur63Dc25JHF++Yjiwajg+xuNPQFnWwNf/wbqyQ9eVn4HKjOvVtsKq 9CjW/YXv+n5fpuDgur9KFxniJy0jP3t/uL8e9XxVwKdV7FUIfgLdiThUkU0Nze24wArM igdXttW3dlaXV8mvSc6H72sM87Yn9aHkxAbXQBHaw9lEeiPWuc4gu1Fz0Xol9GhkUA/3 YN770QLBodYwiPYr350FEDiHyRwRTgzDTgCQmy35oI96yUHvDjS8eHBvOFupK1K3C1xb uGnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IqWigxu1; 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 x28-20020a05620a0b5c00b0073bb1f6269dsi5725622qkg.94.2023.02.27.06.26.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:26:49 -0800 (PST) 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=IqWigxu1; 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 1pWe90-0005kf-P7; Mon, 27 Feb 2023 09:06:22 -0500 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 1pWe8z-0005fN-8n for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:06:21 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWe8x-00006d-Mq for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:06:21 -0500 Received: by mail-wr1-x42b.google.com with SMTP id v16so3549925wrn.0 for ; Mon, 27 Feb 2023 06:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LhfXfTTiOAw8Tas+LE/Xmhs92F8Sdpjj0w+PGmwionY=; b=IqWigxu1kIdvtmMEWcZ9cfn/O2o2sfFJWBMQ8vtjXdUW3ssXADR/rq1Na4opfju1hA 5nBk42uvmmdbnv/5AizkqXmrVJiqIVTLwqDTwox37ZZUzI1iTYDl+hnky1KNkekaE2sB gv/U5U0p4/+umeRNmoKk3AJhJwrSbERxBAK8e0CpqsT3oFkWiHpnLPLQRK3vHU/XQp/f IKfRWe6ikn4MF+Ioek1M4vpNV2BevJHchPpWfLxb0sQtTGXFV9I3fP1p2oLOoYECoyPz GD2zhRleXu7+gwDK7TQZQiqb4pxjrtUF0pzxTO05pZGrg9fDI0rrlMLnwmYQPGY3rjH3 DeRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LhfXfTTiOAw8Tas+LE/Xmhs92F8Sdpjj0w+PGmwionY=; b=zZBn2BZcK+Bs+s0+ETL7e6hWV0ap4utQNTEnyUcUK7LbTHWIwVcskIMcTIPlLNKQ+u eUuaBGOLFo1aXvX9srGPH/8zf8KXUPyBrc1ZyWnBTc+DiPkzW26ngqUo5tADzF20OHXl hFF28o9oZw9m3QoI8yoQbetTnYTrGv5RqmH9x2iG96NrDQTjfE0iEE4EtntkCOs1dxgZ k17VCRPgbhkJCHZ7pM3YkX+cWIrDqfjg8ldEy/0We7k4gv0bNlgBf2+W2NP2L3Ce9VUD NpcddwFOr66n2xQl2+NhmA9vlNp+k0zeD0Pi9kP2X05FaPWneQAHWD7hJbXf87t0GCjN ad+w== X-Gm-Message-State: AO0yUKWcTJYtah6iYFMp8vrV1EqutsRtlsqPRM82fdcOlCODcXfBdKkZ okItVCya+l1LL40pzHXyP359xClH11uS0amE X-Received: by 2002:adf:f80c:0:b0:2c8:f78:2772 with SMTP id s12-20020adff80c000000b002c80f782772mr10067972wrp.19.1677506778202; Mon, 27 Feb 2023 06:06:18 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id c10-20020a5d4f0a000000b002c54911f50bsm7210770wru.84.2023.02.27.06.06.17 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:06:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 054/126] hw/isa/i82378: Rename output IRQ as 'cpu_intr' Date: Mon, 27 Feb 2023 15:01:01 +0100 Message-Id: <20230227140213.35084-45-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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 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: 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 Commit a04ff94097 ("prep: Add i82378 PCI-to-ISA bridge emulation") aimed to model the 2 output IRQs: CPU intr and NMI. Commit 5039d6e235 ("i8257: remove cpu_request_exit irq") removed the NMI IRQ. Since this model only use the CPU interrupt, replace the 'out[2]' array by a single 'cpu_intr'. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230210163744.32182-3-philmd@linaro.org> --- hw/isa/i82378.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c index e3322e03bf..84ce761f5f 100644 --- a/hw/isa/i82378.c +++ b/hw/isa/i82378.c @@ -32,7 +32,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(I82378State, I82378) struct I82378State { PCIDevice parent_obj; - qemu_irq out[2]; + qemu_irq cpu_intr; qemu_irq *i8259; MemoryRegion io; }; @@ -50,7 +50,7 @@ static const VMStateDescription vmstate_i82378 = { static void i82378_request_out0_irq(void *opaque, int irq, int level) { I82378State *s = opaque; - qemu_set_irq(s->out[0], level); + qemu_set_irq(s->cpu_intr, level); } static void i82378_request_pic_irq(void *opaque, int irq, int level) @@ -113,7 +113,7 @@ static void i82378_init(Object *obj) DeviceState *dev = DEVICE(obj); I82378State *s = I82378(obj); - qdev_init_gpio_out(dev, s->out, 1); + qdev_init_gpio_out(dev, &s->cpu_intr, 1); qdev_init_gpio_in(dev, i82378_request_pic_irq, 16); }