From patchwork Sun Jan 27 01:44:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10782669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E227813B4 for ; Sun, 27 Jan 2019 01:58:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE5462C7F1 for ; Sun, 27 Jan 2019 01:58:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD2E42C99E; Sun, 27 Jan 2019 01:58:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5FC472C7F1 for ; Sun, 27 Jan 2019 01:58:11 +0000 (UTC) Received: from localhost ([127.0.0.1]:38182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnZi6-00056P-Mi for patchwork-qemu-devel@patchwork.kernel.org; Sat, 26 Jan 2019 20:58:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnZft-0003W1-CH for qemu-devel@nongnu.org; Sat, 26 Jan 2019 20:55:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnZVG-00086m-V5 for qemu-devel@nongnu.org; Sat, 26 Jan 2019 20:44:55 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:35962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnZVG-00086N-O2 for qemu-devel@nongnu.org; Sat, 26 Jan 2019 20:44:54 -0500 Received: by mail-lj1-x241.google.com with SMTP id g11-v6so11381522ljk.3 for ; Sat, 26 Jan 2019 17:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o7CiZG8aORoJ07AnlYiw+qu7MkobdAYAvwUv9sWlpP0=; b=bR8UaFzgQjq2UqT6g5jAUqhVvctTOpQow5MqgxI9EcpOMTzSxNsSh9TKcIlPbOknxB csvQNptfuFTHSMnExrikMebSQgdvIWhpPfmtQC/+odKCKaQIWt9z+uYaikFoRC25xwHh DSX3tPY9kRHP40YATobTB6EGXVI2qvfjAQ7EBn/fuHHjpk7AexpHbL8hBwh7qftjOBLX jdVIsCx7yK5EtKiyF6ZOgxxEAHA3E1NA9Sv7D9dNgscyMqMoqwokgOKrCX8+8RMoJRC6 mGpFxeHU42e9ViiGG1xOf1zi/SbOcclyDw8h4lhu/qFODL5qEkjhsudxCZn66GPrFCEd j6Kw== 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; bh=o7CiZG8aORoJ07AnlYiw+qu7MkobdAYAvwUv9sWlpP0=; b=O52JMqKSDsE16dZcmkFyRWy6fhwNKvWC/3UcRfRc/pgCphZYFxV+cVEuESPpbiiQRi yqMvMN3CBszwOXOugH8drWsHcu1KSHfzIiaMgS5ZFU7GMPkTk4KkU8O3gq5VBnE7bdBR 3JAeEYk6AXXjdaPMU0rIs08iENNugcMaADE81JzHttUR2jC28deb39NURmArlFkR9dAw itTGV8o7FW6egGnTeQ4FAcqVMnX4p15cpFFHPGLZEa7IrNqZx3VAoBG8UgYciFgpHVAE 3pLm7VTvNuuJlfZIQD2vEDmHFqI79Bys829U006zmDR+lZdepmnkJkhsMIkHygL0pgUZ 8Xxw== X-Gm-Message-State: AJcUukeer4jJWQGAf+kxlfQ/uQAJ3O1aHmGRCUpfIp6wINHTS5cKeQki HVOPG+Jy/d/Ozu6zGKTrDv369tKN X-Google-Smtp-Source: ALg8bN5m2kxFNmMggj33Epf9t5gJuO6BVQDVGOqBeqKai0TPfI6hN3FOzK8P4UdYA24ST+p37A2V6Q== X-Received: by 2002:a2e:750a:: with SMTP id q10-v6mr12016945ljc.39.1548553492490; Sat, 26 Jan 2019 17:44:52 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net. (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id y81-v6sm2369774lje.30.2019.01.26.17.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Jan 2019 17:44:51 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Sat, 26 Jan 2019 17:44:40 -0800 Message-Id: <20190127014440.21789-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::241 Subject: [Qemu-devel] [PATCH] target/xtensa: drop function xtensa_timer_irq 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: Max Filippov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP It's a one-liner used in a single place, move its implementation there and remove its declaration. Signed-off-by: Max Filippov Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- hw/xtensa/pic_cpu.c | 7 +------ target/xtensa/cpu.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/hw/xtensa/pic_cpu.c b/hw/xtensa/pic_cpu.c index 7e4c65e5ec30..f70684902628 100644 --- a/hw/xtensa/pic_cpu.c +++ b/hw/xtensa/pic_cpu.c @@ -77,18 +77,13 @@ static void xtensa_set_irq(void *opaque, int irq, int active) } } -void xtensa_timer_irq(CPUXtensaState *env, uint32_t id, uint32_t active) -{ - qemu_set_irq(env->irq_inputs[env->config->timerint[id]], active); -} - static void xtensa_ccompare_cb(void *opaque) { XtensaCcompareTimer *ccompare = opaque; CPUXtensaState *env = ccompare->env; unsigned i = ccompare - env->ccompare; - xtensa_timer_irq(env, i, 1); + qemu_set_irq(env->irq_inputs[env->config->timerint[i]], 1); } void xtensa_irq_init(CPUXtensaState *env) diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index bf6f9a09b62c..f579294822c3 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -570,7 +570,6 @@ void xtensa_sim_open_console(Chardev *chr); void check_interrupts(CPUXtensaState *s); void xtensa_irq_init(CPUXtensaState *env); void *xtensa_get_extint(CPUXtensaState *env, unsigned extint); -void xtensa_timer_irq(CPUXtensaState *env, uint32_t id, uint32_t active); int cpu_xtensa_signal_handler(int host_signum, void *pinfo, void *puc); void xtensa_cpu_list(FILE *f, fprintf_function cpu_fprintf); void xtensa_sync_window_from_phys(CPUXtensaState *env);