Message ID | 1484779123-18968-7-git-send-email-atar4qemu@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2330C601B7 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 18 Jan 2017 22:55:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14BE82863D for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 18 Jan 2017 22:55:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061CF2863F; Wed, 18 Jan 2017 22:55:24 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8045D2863D for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 18 Jan 2017 22:55:23 +0000 (UTC) Received: from localhost ([::1]:44852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1cTz8T-0002ZT-UV for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Jan 2017 17:55:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <atar4qemu@gmail.com>) id 1cTyt0-0006PX-1a for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <atar4qemu@gmail.com>) id 1cTysw-0002bP-1M for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:22 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:33190) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <atar4qemu@gmail.com>) id 1cTysv-0002ad-RD for qemu-devel@nongnu.org; Wed, 18 Jan 2017 17:39:17 -0500 Received: by mail-wm0-x242.google.com with SMTP id r144so7566565wme.0 for <qemu-devel@nongnu.org>; Wed, 18 Jan 2017 14:39:17 -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:in-reply-to:references; bh=6uIKOBAdE5IjrCA9HFnYP8qBUlZ9bMElzL5z0Qd6cxY=; b=U9ptVXIBJAIR4LWbSM2WAJD8rW2gX2yv1uboeF5h3CeVHM1SB9E5Xz9tc9lFSDdRO6 zI3DZhrmwXHVJm1B25rjvMd6T9zd/5LHQ8/UueIDg9jam3BeRSTg0OtGmIDXQnVt0P7E vDyoAMQkMFlytm64KrEYTcCtBQRosj27wmqUqnKIEAUL49GPs9WeeEML99YxF8U6Cuvt Iuh2DN8blHDPTAcK5VZ7xHFT1OJdkUoPMMLRvi/JfKTHy2AQCRfygXf396h6GyFmeYHv Jn19FSQcMhIzh1PJA//XmC7HNeZucj5Lg4ITQWfhTPFDJiiSiEdPV0PmBTSFyeSGljWP f2FQ== 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:in-reply-to :references; bh=6uIKOBAdE5IjrCA9HFnYP8qBUlZ9bMElzL5z0Qd6cxY=; b=jilY8DPZacl74PePiN3UDliDXzBCf5weEZPxxVb3JVFhdMHcLF8rONAqaZBex5T6Jy spyuxpKP6k6cw/sd/noBNmzEytYbMJo0ndf/a83m2cP2xFJCNS1+7LvVHLqlkugt+vzt +zkfnpghgG4qtAlSSs5bvNYoAQ/F83gCjE2X3WiSXqlo6RKeUv5+tGd9t3pt5LBBrkja lQZkB8IzqJBH2jDffSesQYqdwhJpEDFE1dzTYWLWEgnltEANf2oHw9q15Q2QRRURrixN BHEMiEGKNoHszhlLeGkDx27CsF7Y/891faljeLEzannTTrd5Lr4Lf+R76tmcFDIdTKW6 JjFw== X-Gm-Message-State: AIkVDXJdA1sKEWnd3dVlXy5medr/H16J6GM7AJs0qQ0xcGl76ubxGJiYHiL0h1LepWQ4ZQ== X-Received: by 10.223.143.48 with SMTP id p45mr4678348wrb.33.1484779156866; Wed, 18 Jan 2017 14:39:16 -0800 (PST) Received: from localhost (x4e33e2b8.dyn.telefonica.de. [78.51.226.184]) by smtp.gmail.com with ESMTPSA id r6sm7962810wmd.4.2017.01.18.14.39.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 14:39:16 -0800 (PST) From: Artyom Tarasenko <atar4qemu@gmail.com> To: peter.maydell@linaro.org Date: Wed, 18 Jan 2017 23:38:19 +0100 Message-Id: <1484779123-18968-7-git-send-email-atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1484779123-18968-1-git-send-email-atar4qemu@gmail.com> References: <1484779123-18968-1-git-send-email-atar4qemu@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PULL 06/30] target-sparc: on UA2005 don't deliver Interrupt_level_n IRQs in hypervisor mode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: mark.cave-ayland@ilande.co.uk, qemu-devel@nongnu.org, Artyom Tarasenko <atar4qemu@gmail.com>, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index f65d8b5..21fe0d1 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -736,8 +736,9 @@ static inline int cpu_interrupts_enabled(CPUSPARCState *env1) if (env1->psret != 0) return 1; #else - if (env1->pstate & PS_IE) + if ((env1->pstate & PS_IE) && !cpu_hypervisor_mode(env1)) { return 1; + } #endif return 0;