From patchwork Sun Jan 15 21:10:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 9517727 Return-Path: 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 D266060209 for ; Sun, 15 Jan 2017 21:11:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9627E2074F for ; Sun, 15 Jan 2017 21:11:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8ACF426538; Sun, 15 Jan 2017 21:11:33 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, 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 087892074F for ; Sun, 15 Jan 2017 21:11:32 +0000 (UTC) Received: from localhost ([::1]:52947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSs5L-0006BV-BV for patchwork-qemu-devel@patchwork.kernel.org; Sun, 15 Jan 2017 16:11:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSs4m-00069x-Qd for qemu-devel@nongnu.org; Sun, 15 Jan 2017 16:10:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSs4l-0002qt-S4 for qemu-devel@nongnu.org; Sun, 15 Jan 2017 16:10:56 -0500 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:33042) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cSs4l-0002qg-LW for qemu-devel@nongnu.org; Sun, 15 Jan 2017 16:10:55 -0500 Received: by mail-pg0-x241.google.com with SMTP id 194so3586045pgd.0 for ; Sun, 15 Jan 2017 13:10:55 -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=zCTJU1Yl8oceJYdnu3NkdcTFnLhMJ8BmBfWqrKHjqs4=; b=Wp3rdjdlGWUkjm6ygUGkgyDgFADdrwcpU3bGlqbSsOqMfsd0TQmbgQRIuNKrurtIR4 7y9fDXnC+Sl+SHIrwP82wqh9kk3U+0fxuPksq0dauoL+e8ylXhEBCpo1WuA57X4g1LIC dJ94sFaAbS3dBOiY4/TjJ0yrsL/xHznSFbHoAXgu7kxj6QTo9S3pS61ZMuCkYdy8Ggl0 qJK3AKmllOiYKWgVcKw5bog8baZjdqZaXU4mupzRRMHrOpbwbzSutjIynaxn39vQRmXz RDPFhT4ymJexEHRkIyXL4nis9iSI6/8msl5E/xf82rkszWqWOLXHwh32yYNXnz0qykXx asZQ== 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=zCTJU1Yl8oceJYdnu3NkdcTFnLhMJ8BmBfWqrKHjqs4=; b=KvjGa7blPB05nU5SGCt8R9H2WTvjNjqYM8C3L2YitcEIHBGlH2jUR2Ela4OBDRYy5l 9fgPbOEsyE5RxsXNXOkKQLXG8BrqrRNp430/1lP2jtYfrq8maWSxJrgeUSMNBb7hqX+8 5+QJ0lt31kyFMJztdu9SXSeBxZQ9AqG9InQyQmBxXTexKXqzkFmH9vBi25KnbRabo/vz pWp5WcGV4f5flZVLudWNhzwlvIndxhZvwyQ+SbMzkDPJPjm9NGhHr24dWWNwZHys3sW/ aK6zTt9/9vuOUgNJOiqn1hupBlt7w/dFNUHtRL0W16fWEFozSI4hyIayTvfU87g5NY8h Jd2Q== X-Gm-Message-State: AIkVDXIrVEC1LnjKFtYGOi8gySP3E/fWB1xVf9MuFMzB2j121hLSqkUu0XdWvoXcCpU5+g== X-Received: by 10.98.0.143 with SMTP id 137mr34202821pfa.183.1484514654743; Sun, 15 Jan 2017 13:10:54 -0800 (PST) Received: from octofox.net (c-73-202-152-109.hsd1.ca.comcast.net. [73.202.152.109]) by smtp.gmail.com with ESMTPSA id y15sm42626323pgc.43.2017.01.15.13.10.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Jan 2017 13:10:54 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Sun, 15 Jan 2017 13:10:16 -0800 Message-Id: <1484514617-11726-7-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484514617-11726-1-git-send-email-jcmvbkbc@gmail.com> References: <1484514617-11726-1-git-send-email-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH 6/7] target/xtensa: tests: replace hardcoded interrupt masks 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 Signed-off-by: Max Filippov --- tests/tcg/xtensa/test_timer.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/tcg/xtensa/test_timer.S b/tests/tcg/xtensa/test_timer.S index 9e6012d..844c032 100644 --- a/tests/tcg/xtensa/test_timer.S +++ b/tests/tcg/xtensa/test_timer.S @@ -59,7 +59,7 @@ test ccompare0_interrupt rsr a2, interrupt assert eqi, a2, 0 - movi a2, 0x40 + movi a2, 1 << XCHAL_TIMER0_INTERRUPT wsr a2, intenable rsil a2, 0 loop a3, 1f @@ -87,7 +87,7 @@ test ccompare1_interrupt rsync rsr a2, interrupt assert eqi, a2, 0 - movi a2, 0x400 + movi a2, 1 << XCHAL_TIMER1_INTERRUPT wsr a2, intenable rsil a2, 2 loop a3, 1f @@ -113,7 +113,7 @@ test ccompare2_interrupt rsync rsr a2, interrupt assert eqi, a2, 0 - movi a2, 0x2000 + movi a2, 1 << XCHAL_TIMER2_INTERRUPT wsr a2, intenable rsil a2, 4 loop a3, 1f @@ -141,7 +141,7 @@ test ccompare_interrupt_masked rsr a2, interrupt assert eqi, a2, 0 - movi a2, 0x40 + movi a2, 1 << XCHAL_TIMER0_INTERRUPT wsr a2, intenable rsil a2, 0 loop a3, 1f @@ -171,7 +171,7 @@ test ccompare_interrupt_masked_waiti rsr a2, interrupt assert eqi, a2, 0 - movi a2, 0x40 + movi a2, 1 << XCHAL_TIMER0_INTERRUPT wsr a2, intenable waiti 0 test_fail