From patchwork Sat Sep 1 02:13:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10584599 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 8021B17DE for ; Sat, 1 Sep 2018 02:15:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 705222C578 for ; Sat, 1 Sep 2018 02:15:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63BF82C580; Sat, 1 Sep 2018 02:15:18 +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=-7.3 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI, 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 159152C579 for ; Sat, 1 Sep 2018 02:15:18 +0000 (UTC) Received: from localhost ([::1]:59203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvvRV-0007Xy-9R for patchwork-qemu-devel@patchwork.kernel.org; Fri, 31 Aug 2018 22:15:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvvQH-0006az-23 for qemu-devel@nongnu.org; Fri, 31 Aug 2018 22:14:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvvQF-0002ie-V4 for qemu-devel@nongnu.org; Fri, 31 Aug 2018 22:14:00 -0400 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]:36972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvvQF-0002gu-9l for qemu-devel@nongnu.org; Fri, 31 Aug 2018 22:13:59 -0400 Received: by mail-lf1-x143.google.com with SMTP id j8-v6so11350634lfb.4 for ; Fri, 31 Aug 2018 19:13:58 -0700 (PDT) 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=FlVS4Vr7pNxL8Uu/bXPDDhx1KT5vpfnBdH561kzvM58=; b=Rw1mKgnfTuHcpu3iUNUeMwI+OrFVNcdcjTBFR0QVu/Sa+u+1QKZBGFM6/otEbsafna wayUHCbEXt5GwGIG2mhp3bLSZ/wV0H326AyZ6GrSa2JcC07ZnRHFBX6NspM0mgN5X/rC uxI9lLRYfpLW58wYwDOg2S0+09rUAwU2ospVqwUETLiAOQn5PGMWWWnecQjsb6PGyqSi uHWnVBowCRGQYXzP7MzayrcbYBTMr69sPvYF+coQn0BryUBwrmWNup8e7XXbhfWiw45C MCA+ptz5vMbBnAxP7SEhEzpQvz1v9Jz3sXKAqrgBioKN/ekHCMfjB3Vch8AIoZYuMFIm kS1g== 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=FlVS4Vr7pNxL8Uu/bXPDDhx1KT5vpfnBdH561kzvM58=; b=Q8VYWNTk10YL14FOq4ftz3jaiVbie+qAWFqdds8p/cmKept8ZMY4id7IpqoIVpq9Qg GAjhtyebv4cV97949BylF2IUYdS3O6rmdE/+/EGFJNzW/mH8pDLb5iv/hskNHHmaSxb8 GC5wL42c52i3346SwOqCNHyefntm1x60GZhn0W6GQD/O4AfmsChIBPQjMF/YmtYhj2px Ba5h81+mgOC8ygRUWEQkF/9niVACAwrRPtlWtEZ0hjd9jqHhjcOUfI50+Y+FDrwa1SEd qvrVMYfgw7vqTv5GHRDXtYnl4hi8r6yrHy01xqygCyqmKijFk6VcJ91vSccVG2wRYzws VvSg== X-Gm-Message-State: APzg51BAN26dProe5NQ65llylopezJl5NiO36HF1hR5QbrRfd7iWm9mG QFSKqgwbgBlaijFYZH+Z//sGqv9wbxQ= X-Google-Smtp-Source: ANB0VdYjTq2EKi0m8TE+X4Y+jbx+p4UuQjdyH4PC1inuDFkJyB1vblsTCxp3rYUo+RrknxhnMHU6cw== X-Received: by 2002:a19:7d84:: with SMTP id y126-v6mr12448871lfc.94.1535768037356; Fri, 31 Aug 2018 19:13:57 -0700 (PDT) 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 g16-v6sm2115984lfb.5.2018.08.31.19.13.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 19:13:56 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Fri, 31 Aug 2018 19:13:41 -0700 Message-Id: <20180901021341.18066-3-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180901021341.18066-1-jcmvbkbc@gmail.com> References: <20180901021341.18066-1-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::143 Subject: [Qemu-devel] [PATCH 2/2] tests/tcg/xtensa: only generate defined exception handlers 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 Don't generate handlers for IRQ levels that are not defined for the CPU or for window overflow/underflow exceptions for configs w/o windowed registers. Signed-off-by: Max Filippov --- tests/tcg/xtensa/vectors.S | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/tcg/xtensa/vectors.S b/tests/tcg/xtensa/vectors.S index 265a1812399b..6a9cb3cde466 100644 --- a/tests/tcg/xtensa/vectors.S +++ b/tests/tcg/xtensa/vectors.S @@ -1,3 +1,5 @@ +#include "core-isa.h" + .macro vector name .section .vector.\name @@ -20,19 +22,33 @@ handler_\name\(): .word 0 .endm +#if XCHAL_HAVE_WINDOWED vector window_overflow_4 vector window_overflow_8 vector window_overflow_12 vector window_underflow_4 vector window_underflow_8 vector window_underflow_12 +#endif +#if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 2 vector level2 +#endif +#if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 3 vector level3 +#endif +#if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 4 vector level4 +#endif +#if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 5 vector level5 +#endif +#if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 6 vector level6 +#endif +#if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 7 vector level7 +#endif vector kernel vector user