From patchwork Wed Jan 17 14:24:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Chauhan X-Patchwork-Id: 1887466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=M6M9dfFW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TFSpJ6khJz23dx for ; Thu, 18 Jan 2024 01:25:28 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQ6q7-0005wb-FJ; Wed, 17 Jan 2024 09:24:23 -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 1rQ6q6-0005vz-7t for qemu-devel@nongnu.org; Wed, 17 Jan 2024 09:24:22 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQ6q4-0004mQ-I4 for qemu-devel@nongnu.org; Wed, 17 Jan 2024 09:24:21 -0500 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1d48a8ed85bso26672855ad.0 for ; Wed, 17 Jan 2024 06:24:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1705501459; x=1706106259; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qTZUuaX1W6st72AeIA8AhRC3XRQhFWCuRiAHHvQLoWg=; b=M6M9dfFWWRK/rTY5uj0kGKu269YppR0SqZW6D0myzVo1RUi4z6Rzh6BHdbskVQ2osq 5Eys5cJ8EPxeK2IzxUnVnyEBERAM0j69yDvK4WkV0PySYM88u1iMJKVjKUjmMRoSP8bG CXaQqAVx8pQw0rPc6RSnN4ZmqbtmaI1FJy5wiqKUyiGmcFraSTvCCNHb7UY+HSfvqjSw 31/b8TMsYHDPr1WORF7V3kjsiBGxI/i8coI1df0gRZ1yVhQklnvKCAUmdNhCyOd/VT+k Fx06vTeltboZ7JIsaoJ+f7erbx7BB6GN57fm5DrZQo47BZg0ufUIe9bAkw20m2RfF08c F/5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705501459; x=1706106259; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qTZUuaX1W6st72AeIA8AhRC3XRQhFWCuRiAHHvQLoWg=; b=fFrYOkEu/q071wkJFYqAfXXrzFtEzY+kid169XqPdpwMCnjFR1ucFY6dNQLyLIMPmg O2T1pdS3ivc9WcTijNgbMr0nTFq3QEJAYJ6E4C0jd68g9ETARz4bM6bhLVK5SEIkIfS+ PZTGaek0kfj+bj9+RUHu/1otkw5zXVsHf8mnfDQw9c49Y7Ch12qsOwrCB6K6V2t69ifb 5sUX2UDuTnMNfOVXHN8z+cS5C2EI0dVm0u3aRagP1SOWvvDrn47KZ0MxJl0EBZn5aKOA fVLd8XdvHpeQR9cztwJMfY6ujcfnzneNCm80sPHsvcGBGXDdPDrXr90W63DVkynE1caF TiAQ== X-Gm-Message-State: AOJu0YzZC8MaCij8CgrPZDgkkHaoU/K6ZA2JtbSO7xWbqnzCHEozs+Lw 1WPdjUoYbf/rYiOSbTFQPltGzo60xHIGiQ== X-Google-Smtp-Source: AGHT+IG5h5F8jVSJoE8RG0hyEtLiJPfVjbKeO66WcUA0HL/muoF7kMXyZISKjWFXMoQL4pFzbDa8Ng== X-Received: by 2002:a17:90b:1e0a:b0:28e:3dcc:7381 with SMTP id pg10-20020a17090b1e0a00b0028e3dcc7381mr10381711pjb.0.1705501458649; Wed, 17 Jan 2024 06:24:18 -0800 (PST) Received: from brahaspati.localdomain ([49.37.250.249]) by smtp.gmail.com with ESMTPSA id mf15-20020a17090b184f00b0028cef2025ddsm14277657pjb.15.2024.01.17.06.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 06:24:18 -0800 (PST) From: Himanshu Chauhan To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org Cc: Himanshu Chauhan Subject: [PATCH v2 0/2] Export debug triggers as an extension Date: Wed, 17 Jan 2024 19:54:10 +0530 Message-Id: <20240117142412.1615505-1-hchauhan@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=hchauhan@ventanamicro.com; helo=mail-pl1-x633.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=ham 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org All the CPUs may or may not implement the debug trigger (sdtrig) extension. The presence of it should be dynamically detectable. This patch exports the debug triggers as an extension which can be turned on or off by x-sdtrig= option. It is turned on by default. "x-sdtrig" is concatenated to ISA string when it is enabled. Like so: rv64imafdch_zicbom_*_x-sdtrig_*_sstc_svadu Changes from v1: - Replaced the debug property with ext_sdtrig - Marked it experimenatal by naming it x-sdtrig - x-sdtrig is added to ISA string - Reversed the patch order Himanshu Chauhan (2): target/riscv: Convert sdtrig functionality from property to an extension target/riscv: Export sdtrig in ISA string target/riscv/cpu.c | 8 ++++---- target/riscv/cpu_cfg.h | 2 +- target/riscv/cpu_helper.c | 2 +- target/riscv/csr.c | 2 +- target/riscv/machine.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)