From nobody Tue Nov 26 18:21:47 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1705664457; cv=none; d=zohomail.com; s=zohoarc; b=E7vZlXgNH3oMOYbDCB6vqj8MTmgPqyIdrWzLOwiZn9PCUp3+EzNpiNspv4eGcGbk3fR+BeLuKbjvHuHdyaHwQbwGFFzjkkSB7H/DkUIVwSTFDDAc7plIxHvLMEL0w+QuQhg5KA43B3uAccM9Tnw8mkgZ+hAYTV1/TFeqPpyHJTU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705664457; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=fJxZlcfmNn+4e6fRmCJ3mMuWcpZHQmskZZgo6KbTC98=; b=T+33C912MQL3OkLU8krq07ph34ze2uUEZ5nLkalH7bKRUOB+7FnhvorulyDdeS1iFHbvHtM2VPc/2mw0LFW+Lj4G1sHMVP5ncPsslfVk7pj/IhcbVwb8P5gZEcp9hucIA2xXt96JI4vHJ9llnivv9Rul81Vqgawr4jXqO74BFrk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170566445711260.25092611204673; Fri, 19 Jan 2024 03:40:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQn9y-0001pP-Fn; Fri, 19 Jan 2024 06:35:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQn9w-0001l5-Dc for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:35:40 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQn9t-00087z-MU for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:35:40 -0500 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-336c5b5c163so410000f8f.1 for ; Fri, 19 Jan 2024 03:35:37 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id v9-20020a5d4b09000000b00337bfaa944bsm6284306wrq.54.2024.01.19.03.35.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 03:35:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705664136; x=1706268936; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fJxZlcfmNn+4e6fRmCJ3mMuWcpZHQmskZZgo6KbTC98=; b=uc81YsZDaSV6xPI+QOb2Yl2GiVFLxUe25a1VDl5q3lxPNpLQtxRWGJxxE0SL+fkS9c y5ICy/oHW05DIy3Y/VbXaJ+ES/EMElvDtyCuBqR7FFBCk0AJLF2u+jFrPYUG3Bev9hfm BlvKYA/6rU7VMlpWtixoRK6fsAwmBhWhvyI+1NfojzXyvtmPkcGOIK1VsaRxDuXicmYP U2/qkCxfFbeDADr7XzAyoDkj0FZfO2UnyYCVEq4NbYvepwh4zBsSGF2PvuWPTqnzwlrZ uYMbTLOZkY2R+y8YvSum7DTXsFa8F2hUaxnLC9s0UBQkCyLZ13OfmH+9l4MlRnwOs4kU Y2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705664136; x=1706268936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fJxZlcfmNn+4e6fRmCJ3mMuWcpZHQmskZZgo6KbTC98=; b=dBT1CEz2+os1kdmh62SX+xGugAzmVaZ6Api/1x3dqsH8PNXJuPtv5FQsFZygKFRy9Y 3WvkcdKddgY/61yUaWbM9Oc8EBAwi/DbA7IQgK/qWaKfHu/R9c6rl0+XuS1W0mLzIzlw erXE4J0hyIkxcgfPa5r6kFA0QgiIVsCcsPLdCxCLrvZNuQy5cGCy6qXdtVkVjyJ6ecnz WNBoTintLkXlZdYcDc3PClO0QodizhQ6sj2t7VsFczD4NUPFsMEOns5hkQCCNYCihpmI EvObW8TXBtABb+hK5mVbGWPozz1xLnIEgnG5FGYcOSkEmHEnsW3t69OXTDXjvoG0hiB6 XDMA== X-Gm-Message-State: AOJu0YzRPBlGPTPxiKjea9Zj5yb1idcOe1FvqhANIZ5TORk+7dMQTKbd eXysHl+/QOzW04n7Y2ASGT3piFjjF1ugpmqjz6n1L4/NU61SVutlN3lW7si9q3NJOC59VTmAOp2 I9/kPmA== X-Google-Smtp-Source: AGHT+IE15xVnAXRnmREdh56jH/JKIC2h6HfF65gUmnvCcnNp+wYreVQWy4tG/anjmUHtzvNlJtTS8A== X-Received: by 2002:adf:e5c7:0:b0:337:c134:61d6 with SMTP id a7-20020adfe5c7000000b00337c13461d6mr492360wrn.39.1705664136006; Fri, 19 Jan 2024 03:35:36 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, Max Filippov , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 06/36] tests/tcg/xtensa: add icount/ibreak priority test Date: Fri, 19 Jan 2024 12:34:35 +0100 Message-ID: <20240119113507.31951-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119113507.31951-1-philmd@linaro.org> References: <20240119113507.31951-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=philmd@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1705664457825100001 From: Max Filippov When icount and ibreak exceptions are due to happen on the same address icount has higher precedence. Signed-off-by: Max Filippov Acked-by: Richard Henderson Message-ID: <20231130171920.3798954-3-jcmvbkbc@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/tcg/xtensa/test_break.S | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/tests/tcg/xtensa/test_break.S b/tests/tcg/xtensa/test_break.S index 3aa18b5cec..4c618feb5b 100644 --- a/tests/tcg/xtensa/test_break.S +++ b/tests/tcg/xtensa/test_break.S @@ -129,7 +129,7 @@ test ibreak_remove 4: test_end =20 -test ibreak_priority +test ibreak_break_priority set_vector debug_vector, 2f rsil a2, debug_level - 1 movi a2, 1f @@ -145,6 +145,29 @@ test ibreak_priority movi a3, 0x2 assert eq, a2, a3 test_end + +test ibreak_icount_priority + set_vector debug_vector, 2f + rsil a2, debug_level - 1 + movi a2, 1f + wsr a2, ibreaka0 + movi a2, 1 + wsr a2, ibreakenable + movi a2, -2 + wsr a2, icount + movi a2, 1 + wsr a2, icountlevel + isync + rsil a2, 0 + nop +1: + break 0, 0 + test_fail +2: + rsr a2, debugcause + movi a3, 0x1 + assert eq, a2, a3 +test_end #endif =20 test icount --=20 2.41.0