Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6D66CD343F for ; Tue, 12 May 2026 20:35:03 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMtoR-0002TW-D3; Tue, 12 May 2026 16:34:43 -0400 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 1wMtoE-0002Nt-1E for qemu-arm@nongnu.org; Tue, 12 May 2026 16:34:35 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wMtoA-0002Qf-QX for qemu-arm@nongnu.org; Tue, 12 May 2026 16:34:29 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-48e82c23840so24438055e9.3 for ; Tue, 12 May 2026 13:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1778618064; x=1779222864; darn=nongnu.org; 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=KPoAYypSDNORF0pUxIKtlzts64GOfXtKmSc+PiEhbG8=; b=DEuUG7o2M4zgljy7owxpms3bCI71lTupK6twm+2GqgcZedmGRvqS4McPzKtyvMnvws LQpJCbiXhW1fFZVMnaWsKF4+Yd8HZrStjs1hVFF8fJBqb9sZ7epugnGPp7BQgIBxmho9 ZkJUKKR2RSGLfPm3CwQII7n6tyXOohgZ22f8JFM5F4ZJGDYLWIw1gT5q2LUAEfTS33Fo AwhfRBWMgdKpUtvfaar/cRJutCMbJ2CkLk/Jk+XKeCioGKPmFO2LAygZosRlwy5miba/ qhxhtkJ0nIM9YCWWv9mcQwjpIfR+vq5usbo2vK6huqerowMqool76ke24Z13OMr13Xwp orwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778618064; x=1779222864; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=KPoAYypSDNORF0pUxIKtlzts64GOfXtKmSc+PiEhbG8=; b=mGUsHcDCtijdSfDGm8nXhkWi2DhahSJXBq46c0z/nj4LsTWHCAZqddWb5ACUL7XsQJ zKzVvh3MNqNEa89rrj2vKJyxGk6X9GRItM7I2ayXtZfBeMWvPP/CD/vmOoMhpC6zRBMg MmhD62eLaVpXAVCJb+g7PaanZhlUM/VL7erS0lI1hZ7hnzVppSE8V/8Dh0CivTl5MRZT Z59pq4uHzsrGcUhlN1p/RQ39bqwqivBSaNK+JSjJ9e6RwktLW8ANIsUPQ1be1fN6yjz+ 6qu71Kpo08Fi03tH3gzYYK/BLlWsc/zv/Axul72HqEhBpqhcHTDpClCvJW6Ra2aEC2Uz 2gjw== X-Gm-Message-State: AOJu0Yx6iaztqrg2zHmwt38ouMVJLNX8fiN1NjSZQHjAYupWQFzkzhHK kpM9iZqBIPiwzueykruRXt4YnIUWHpm+Wmusu/XpAQZ6kxUonGgeDguzFIVUSgqogxGQr0pwwt9 UlTyG X-Gm-Gg: Acq92OFWnC0nT5xjTMvU0tzSFtxMqDw9+qEKSR558RxD0umHF4qRxa3Ol2ooicj1EZ+ LzCgxcmu+QTyes7H0YqYEiQwKLiU9h4DXaEQRQB3nyXR3g8hNY9KbmbVKr49H+GnTNVv9a1ohLE ua6y+T3I3NJfUWS0MaUKVDEjbBR3TUog37wkMX1B4ByRFK6p6x5BXNr6PGAEjcfvXOJufVHIjYn 7pAvzIM06d/BzhXc7TuGWeW2F7D/+RMDGXdO/PKihuWDtyUdFr8J7s8xRq1aDdbXViFAWvQ1kMi BGhzfb6R3nBaqxm8LJZENyqPdaxL7czMsNRmY2j9UDvh7uUb5+xcolbRqJdISzD1mrmLSlMP9HY vPhuB9VzwJcFwCqJaSIgzSO3P9dF+HxpurKP5uN3VPJkeSJy9ZVY5WNyHcznExIBzDWYLwsiebJ LWfUotANoFCTGzWJgIQPh20EiTm4OE9x2/+Fokss6acNMIANIRa2roCqy2tuXRkmFEgojZas39G itl5YLXJzHB6VwRtuKiFZ3+3HPlsRzThlE8odEz+A== X-Received: by 2002:a05:600c:6291:b0:48e:6f39:f7be with SMTP id 5b1f17b1804b1-48fc9a09fc3mr5897735e9.10.1778618063518; Tue, 12 May 2026 13:34:23 -0700 (PDT) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fc8d69d0bsm16350635e9.13.2026.05.12.13.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 13:34:22 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 06/12] hw/arm/omap: Remove unused wakeup irq Date: Tue, 12 May 2026 21:34:08 +0100 Message-ID: <20260512203414.3633237-7-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260512203414.3633237-1-peter.maydell@linaro.org> References: <20260512203414.3633237-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org The OMAP code creates a qemu_irq whose set function is omap_mpu_wakeup(), and passes that irq into omap_mpuio_init(), which saves it in its omap_mpuio_s::wakeup field. However nothing ever touches that qemu_irq again, so omap_mpu_wakeup() is never called. Remove all this as dead code. This lets us remove a direct call to cpu_interrupt(cpu, CPU_INTERRUPT_EXITTB) from within board/SoC code, which is pretty ugly and might not even do the right thing these days. Signed-off-by: Peter Maydell --- hw/arm/omap1.c | 18 ++---------------- include/hw/arm/omap.h | 2 -- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/hw/arm/omap1.c b/hw/arm/omap1.c index 40ca8c9890..80168644ce 100644 --- a/hw/arm/omap1.c +++ b/hw/arm/omap1.c @@ -1846,7 +1846,6 @@ struct omap_mpuio_s { qemu_irq kbd_irq; qemu_irq *in; qemu_irq handler[16]; - qemu_irq wakeup; MemoryRegion iomem; uint16_t inputs; @@ -2074,14 +2073,13 @@ static void omap_mpuio_onoff(void *opaque, int line, int on) static struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *memory, hwaddr base, - qemu_irq kbd_int, qemu_irq gpio_int, qemu_irq wakeup, + qemu_irq kbd_int, qemu_irq gpio_int, omap_clk clk) { struct omap_mpuio_s *s = g_new0(struct omap_mpuio_s, 1); s->irq = gpio_int; s->kbd_irq = kbd_int; - s->wakeup = wakeup; s->in = qemu_allocate_irqs(omap_mpuio_set, s, 16); omap_mpuio_reset(s); @@ -3693,16 +3691,6 @@ static void omap_setup_dsp_mapping(MemoryRegion *system_memory, } } -void omap_mpu_wakeup(void *opaque, int irq, int req) -{ - struct omap_mpu_state_s *mpu = opaque; - CPUState *cpu = CPU(mpu->cpu); - - if (cpu->halted) { - cpu_interrupt(cpu, CPU_INTERRUPT_EXITTB); - } -} - static const struct dma_irq_map omap1_dma_irq_map[] = { { 0, OMAP_INT_DMA_CH0_6 }, { 0, OMAP_INT_DMA_CH1_7 }, @@ -3765,8 +3753,6 @@ struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *dram, s->sdram_size = memory_region_size(dram); s->sram_size = OMAP15XX_SRAM_SIZE; - s->wakeup = qemu_allocate_irq(omap_mpu_wakeup, s, 0); - /* Clocks */ omap_clk_init(s); @@ -3912,7 +3898,7 @@ struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *dram, s->mpuio = omap_mpuio_init(system_memory, 0xfffb5000, qdev_get_gpio_in(s->ih[1], OMAP_INT_KEYBOARD), qdev_get_gpio_in(s->ih[1], OMAP_INT_MPUIO), - s->wakeup, omap_findclk(s, "clk32-kHz")); + omap_findclk(s, "clk32-kHz")); s->gpio = qdev_new("omap-gpio"); omap_gpio_set_clk(OMAP1_GPIO(s->gpio), omap_findclk(s, "arm_gpio_ck")); diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h index 14d6e9d214..ea5c0eff8b 100644 --- a/include/hw/arm/omap.h +++ b/include/hw/arm/omap.h @@ -463,8 +463,6 @@ struct omap_mpu_state_s { struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *sdram, const char *core); -void omap_mpu_wakeup(void *opaque, int irq, int req); - #define OMAP_BAD_REG(paddr) \ qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad register %#08"HWADDR_PRIx"\n", \ __func__, paddr) -- 2.43.0