Message ID | 69f650d91bda47393a3ff8b2d80973b6b9277344.1478291230.git.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 0714360585 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 4 Nov 2016 20:56:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE9832ABCA for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 4 Nov 2016 20:56:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E31672AD68; Fri, 4 Nov 2016 20:56:22 +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 DA2CC2ABCA for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 4 Nov 2016 20:56:21 +0000 (UTC) Received: from localhost ([::1]:40733 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 1c2lXB-0004W6-3p for patchwork-qemu-devel@patchwork.kernel.org; Fri, 04 Nov 2016 16:56:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <atar4qemu@gmail.com>) id 1c2lSL-0000bW-Re for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <atar4qemu@gmail.com>) id 1c2lSJ-0003oK-QT for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:21 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:35243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <atar4qemu@gmail.com>) id 1c2lSJ-0003nJ-JX for qemu-devel@nongnu.org; Fri, 04 Nov 2016 16:51:19 -0400 Received: by mail-wm0-x243.google.com with SMTP id 68so5626772wmz.2 for <qemu-devel@nongnu.org>; Fri, 04 Nov 2016 13:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Tu5HGlNurJ7dAFRu6kDNI640W+LLpjwvpEd3J9tG1v4=; b=aWeFGi7kHggUSs19zwTSOzpQiPzdZdlerYHybacL5B69EC+xgK1MryjTAmTrq/6Ado KIyzF791koHzxL7nJyCVNmyqFz8+l6S05enWQ7Eh6It2DqkbgQXjhcmIM9WPycH/sal/ 5c/tVwnAUHwJCpC4f5vA+bCZm6PJqpmzLOHM58LeqMrmztkXoy1wCoHFLx2n0VQcV9DP 8iMqLrQDvoIJVxNvaiuBbELULSsRp/0OvscuScVYWAT+dJ7E0soCfiU0dauG9TOc8QPl pf1PLUwK8qI4OHuA4UE2AYDZpPl7BZcI3QWN7ybyDCxv6sqEJr0v160hB3a9t8pLIYM2 B9Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=Tu5HGlNurJ7dAFRu6kDNI640W+LLpjwvpEd3J9tG1v4=; b=AOhGNmVnJ5mCvXzyS9mC0B+gPe4knkAG8Yj/xtF/UQwDvcf1svUXcG302NXNpf33pS qv6HKG9QdZswFTeMWLhbZCu1OtJ+h2H/6SShYvbvRl4ybbq/eJYhl4Luug0KNmspHvzx Cs+htO+g0OmvvQDwbbTrwpuVQwxUer46Ug/J0ZYtA1AtHlqlMX/uyqEHb82lyjaPTRem VVXhIIWkv2s07K3yOlcqdiygyZnwztn01mmey2VEYvdjvCHfc/SQ0WqL6zXqxPxAsOT5 svf3ib26WCbstLLOi32/wXtM+XvXzBhFwpoxW3syVoftCTs+p/JM8AN/MGi4odd1ppx4 LWuw== X-Gm-Message-State: ABUngvdX/idPRvP2vqLtEZeuz08EiCTFjJpYD0bU4INnlQOZXZnq0SFKwtGg4wTgu0kq0w== X-Received: by 10.195.18.201 with SMTP id go9mr13424463wjd.200.1478292678513; Fri, 04 Nov 2016 13:51:18 -0700 (PDT) Received: from localhost (x55b4b5cf.dyn.telefonica.de. [85.180.181.207]) by smtp.gmail.com with ESMTPSA id v10sm12870791wji.29.2016.11.04.13.51.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 13:51:17 -0700 (PDT) From: Artyom Tarasenko <atar4qemu@gmail.com> To: qemu-devel@nongnu.org Date: Fri, 4 Nov 2016 21:50:07 +0100 Message-Id: <69f650d91bda47393a3ff8b2d80973b6b9277344.1478291230.git.atar4qemu@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <cover.1478291230.git.atar4qemu@gmail.com> References: <cover.1478291230.git.atar4qemu@gmail.com> In-Reply-To: <cover.1478291230.git.atar4qemu@gmail.com> References: <cover.1478291230.git.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::243 Subject: [Qemu-devel] [PATCH v1 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 <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>, Richard Henderson <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 f2e923d..7233140 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -733,8 +733,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;