From nobody Wed Nov 27 04:42:41 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1701364839; cv=none; d=zohomail.com; s=zohoarc; b=aRl8nxkT56aygG7Gb8C1NYth1+3yCMk52gS4/6/8LlKJcxoI3XFhqEWz/AURjSG97F0WSPDkpebqKItAPbhjuFbuSvSrHhsj2kOpSLS0eUt3e5onOXMKsx30Ry6ThFqapJKljm1w+fWviLM14o9VQeVNw3KvXs4uJljwKZOKOZM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701364839; h=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=NGaFxDd9DEgIY946KKxNCCYQHrryKrWh5AcjMejeCmY=; b=eMKpqZNeRLZ2zR6EjnpWJdO+iixH97Omqv7eLqgP07JqSRkyS5+/xWfjAsDTCe+Q+XrLDVAgNO9HY+OuLvgURe8AwWd/SN31pVe9LsSUeNPM5MCphUVB6ffv9rbaEUc65mRXwoByK1IRUVLkfDukYb3KsbzVWGCtA8JyF+8AV34= 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 1701364839165686.8292288560219; Thu, 30 Nov 2023 09:20:39 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8khP-00055y-HA; Thu, 30 Nov 2023 12:19:39 -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 1r8khN-00055E-Ba for qemu-devel@nongnu.org; Thu, 30 Nov 2023 12:19:37 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8khL-0006db-TN for qemu-devel@nongnu.org; Thu, 30 Nov 2023 12:19:37 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1cfa5840db3so11252015ad.2 for ; Thu, 30 Nov 2023 09:19:35 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net ([2601:646:a201:19d0:7eb0:c76b:d82c:8f94]) by smtp.gmail.com with ESMTPSA id bc3-20020a170902930300b001cc29ffcd96sm1645926plb.192.2023.11.30.09.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701364774; x=1701969574; 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=NGaFxDd9DEgIY946KKxNCCYQHrryKrWh5AcjMejeCmY=; b=GWv+dUDnBRa8ngDezM0lLSRt7ieJHmjJzmYp+ujFbqGm5dOxynPizD+JBfD/QWTmw2 jW8MVq8W2OjxWfKz2nCE+OUD9jZ7FCLQsN02JK++70zpleHTvxhAdiLRA39Qg1tHOxoa NhIlnz98jjsTtNyPUpR2jXq1sdAnC1J88cdO4wuCpKXD2klXqIGxsJd0O3hNtqfp6FpR jd5z+inS/SuTtgpfwj3R3F2yjetddazQ9hwbUgJiDsy2Y6GZfnVa+wr6yZIiVQdqQIT+ d+AIS7Q8KPU3bmXsbHfGvNJSsjVZ4LissIdYXs3+1NweP6jrUnlrFZ/b3fAlvkugua7F a//g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701364774; x=1701969574; 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=NGaFxDd9DEgIY946KKxNCCYQHrryKrWh5AcjMejeCmY=; b=OMfFxrbQP1WjkzQtGZvtcXTG3Gi+PelW/uHnuGwAz9XHTXTviEvXtY92rZgDunqcTF +LgciCVdSg0vcAUgfsgSwc4LRBDfw0v6TyiAo0GH2WrZBJAFHxhBFEU4JjFfh9JETBMG Gg5fnS/sztgv7BGUrsRw7SvpfNlZjjPijd+TS/8qXuglrladLg0geD8FufFG6990NJ8u ZMuQz1H6Y3UbTYYZe3q/QPNSPhYwgMQ8RVowa7d2/YGZPMjVrM8XYwO6BwmaZc30EJeQ v5KcNZojU1XGmd3HwRgKuyxsUDFfMSBwoTKd4I2wETGZvVTPsiPhamTar3+TiM88+UDJ uAEQ== X-Gm-Message-State: AOJu0Yx2F0PRyPQ/qX0vHUUQIkXb0p+dakSEtkHjfWnwdDjrr8oiw+MW AiYzJSATnCA0la5g2CjazeKxx+TCvr8= X-Google-Smtp-Source: AGHT+IFUVoe11eoZ2T5TJ0ADewQphfA2qPSEp0EHce/eCPspGNjqMobYxN5Lpo2USuY4H6VRwRTwKQ== X-Received: by 2002:a17:902:724a:b0:1cf:d2c3:2865 with SMTP id c10-20020a170902724a00b001cfd2c32865mr13135930pll.40.1701364774296; Thu, 30 Nov 2023 09:19:34 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Cc: Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Max Filippov Subject: [PATCH 2/2] tests/tcg/xtensa: add icount/ibreak priority test Date: Thu, 30 Nov 2023 09:19:20 -0800 Message-Id: <20231130171920.3798954-3-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231130171920.3798954-1-jcmvbkbc@gmail.com> References: <20231130171920.3798954-1-jcmvbkbc@gmail.com> MIME-Version: 1.0 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=2607:f8b0:4864:20::62c; envelope-from=jcmvbkbc@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.999, HK_RANDOM_FROM=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 @gmail.com) X-ZM-MESSAGEID: 1701364840558000001 Content-Type: text/plain; charset="utf-8" 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 --- 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 3aa18b5cec3f..4c618feb5b10 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.39.2