From patchwork Tue Jan 22 21:25:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10776317 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 50B3D91E for ; Tue, 22 Jan 2019 21:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41E4728358 for ; Tue, 22 Jan 2019 21:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35ED72B741; Tue, 22 Jan 2019 21:27:21 +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 DD52228358 for ; Tue, 22 Jan 2019 21:27:20 +0000 (UTC) Received: from localhost ([127.0.0.1]:50336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm3Zo-0005au-8L for patchwork-qemu-devel@patchwork.kernel.org; Tue, 22 Jan 2019 16:27:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm3Xs-0004G8-5R for qemu-devel@nongnu.org; Tue, 22 Jan 2019 16:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm3Xr-0001Kk-EE for qemu-devel@nongnu.org; Tue, 22 Jan 2019 16:25:20 -0500 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]:40338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gm3Xr-0001Ik-2n for qemu-devel@nongnu.org; Tue, 22 Jan 2019 16:25:19 -0500 Received: by mail-lf1-x144.google.com with SMTP id v5so181lfe.7 for ; Tue, 22 Jan 2019 13:25:18 -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=PVr4DkryPCv5aJ2a5+cXms1BqR7xotgKcX8iC5sx93M=; b=jNblnris0//TLUxdf2BTUwkAeiPbKG/EuUlGvT5uo4HEDE5SiKkGBd8hblTswB3hWy /ruGtRTwtB/y23XRI+RvJrUyssyElYk9+wMsK05OdO7xcfPIrTLQjZUR88VUhajx0qk2 yTlWd3TLxSNNaAKP3HvGiXhQeI00zZ9FleD2vY0uiS/O5M/fcUeMGg2NX2N9J2bsq9p8 br+3HW3WtYO5OIAQGWId4qf+BWftqJESxyy/69beqBwItH7E6k9dnOs3XdEwsdLLVcHS 5lg0voOnOFYLn7vIhqWpp2tXtNH0k/bNscscBNi8fb27hy9utYEPAR9kLi1JGBAO/aif cVqg== 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=PVr4DkryPCv5aJ2a5+cXms1BqR7xotgKcX8iC5sx93M=; b=Q6GzuuqjPNy6yrvRWOmw0k1/WJMe/+FajtDla22MSgxCDoD97oa0z8Azj+QGczru7G idJSp8xZdx+VpbzreRcQMFc7rPAtVymk+nBIrpuMcTskR5yRYaRaRHb5xUrLnHCTQjnU 722vNnDuWBfSvc1+eRNhbNdoOtxudRZEizQvoS1n6CdUwQsvg+Mx1VLdOQT6F9AXWu2j GwMbAnsw9o3pzk2ziMwaFkIMBt905VOUc64jKhhwPSTuiEBkqV9XM5aDcQezd6uwAgGe 6uhN2Jt2fyZWiZWxtoIVHJigWjKvViuocaOJZSM2pM+FQZFCC4kudCmnILxkuPRXpAOt Z0qA== X-Gm-Message-State: AJcUukdFY0UTT8XiRKQDy3Cfci6f8shaxJFR3u3G0i9OilTQiwedmooc NpNkXFpPWRDU3DvrpwtJTiIz0Llp7R0= X-Google-Smtp-Source: ALg8bN5DGTj4O0YSGKbDZgXws4g0urInSxzNksO+j7026ndnD6CQnyUyG4zLBW/+sNTDbDrUqLbZ1A== X-Received: by 2002:a19:f510:: with SMTP id j16mr21143985lfb.35.1548192316496; Tue, 22 Jan 2019 13:25:16 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id b20sm169017lfj.61.2019.01.22.13.25.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 13:25:15 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Tue, 22 Jan 2019 13:25:04 -0800 Message-Id: <20190122212504.6137-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::144 Subject: [Qemu-devel] [PATCH] target/xtensa: add qemu_cpu_kick to xtensa_runstall 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 When xtensa_runstall is called to unstall a core it needs to kick it after clearing runstall flag, otherwise the core doesn't start immediately. There's also no point in clearing CPU_INTERRUPT_HALT, drop it. Signed-off-by: Max Filippov --- target/xtensa/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c index 323c47a7fb54..bcf2f20d4858 100644 --- a/target/xtensa/helper.c +++ b/target/xtensa/helper.c @@ -252,7 +252,7 @@ void xtensa_runstall(CPUXtensaState *env, bool runstall) if (runstall) { cpu_interrupt(cpu, CPU_INTERRUPT_HALT); } else { - cpu_reset_interrupt(cpu, CPU_INTERRUPT_HALT); + qemu_cpu_kick(cpu); } } #endif