From patchwork Fri Jan 19 11:34:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 763913 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a08:0:b0:337:62d3:c6d5 with SMTP id m8csp398703wrq; Fri, 19 Jan 2024 03:40:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5NVTXMyoJaRH1cd8Pd6XUeFWJ04emb7Z8ZzGKZfVLNCkS5TlDcl1OGrFOx6g6c/UA5ZA1 X-Received: by 2002:a05:6214:2387:b0:681:88b2:6e41 with SMTP id fw7-20020a056214238700b0068188b26e41mr2155602qvb.104.1705664456791; Fri, 19 Jan 2024 03:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705664456; cv=none; d=google.com; s=arc-20160816; b=T0q5iMty9ZYfhOI6Jgw9iBfb4/hwU1/q8LyFFvwL18+0IVU2ZwzsMD+HsT+/1sIM4C vUfrydJJpUcVVzc0UJnE6zpInkh5RQ8BFBbb1w14JryE1LrQ0/RoJuZBCVB4q8kD0Kzi PAqmYF6XjaxvPtb6BVCdyKLCzDVkWq265lDLPC5deu41yJBeY8ri/a5JAdz41vHdkup2 Szq3/9o+8o5Q9KaxTG5w5XBux9GmWefxCKj+OVbRLzuFffYCPBFOhVdvIeLiIIQKQQ+I 4duTXNUZ0VIAXfoe4kTe6uDtXIZj99NeJZBGNrgLDrkzN1nxo1DAaXxqCza88JLuN1y3 7zxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fJxZlcfmNn+4e6fRmCJ3mMuWcpZHQmskZZgo6KbTC98=; fh=PGD+nRug3lbQLQRmqJdfXASo9DDbKKfOK2qGXbkwX/w=; b=WKU2RztngyHGkq1p6yrcgzqXaaaBlMxhDtMgrqZD5VgvVOKBuFpZ66sFEov4eASnnC AAZ/PdPo/3KM+ILpvjbrLPYXgjyCHM0YgFx1pCX2AF0XNtfkvNospTXik1ZzME3LVHDb cCfk4Qj3pctuYsyX47HHzENulXDMiPgL9pHa04hp2aLbAEnfofNF0RmGGeiF15dh+aEV WtKdvUm6faWe2334g8h5PzLD7uLqBmU+QAXTZ4iYH+8pyLCo2xdus1K7IcEkvaxYvQWW OpS0W9sr8oCn/EMGIcBMFJf+ICEQ3gcFfzSOhJSwHNcPkU6wTaCE6HsHec8E2pUwKux8 OFNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uc81YsZD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j2-20020a0cab82000000b0067a961161bbsi9612295qvb.531.2024.01.19.03.40.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 03:40:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uc81YsZD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathie?= =?utf-8?q?u-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- 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 -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 test icount