From patchwork Wed Dec 18 11:40:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Henrique Barboza X-Patchwork-Id: 13913532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A82F9E7718A for ; Wed, 18 Dec 2024 11:42:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNsQi-0007l4-Vu; Wed, 18 Dec 2024 06:41:29 -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 1tNsQL-0007a6-Hb for qemu-devel@nongnu.org; Wed, 18 Dec 2024 06:41:06 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNsQF-0007vo-Gg for qemu-devel@nongnu.org; Wed, 18 Dec 2024 06:41:05 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2162c0f6a39so5849875ad.0 for ; Wed, 18 Dec 2024 03:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1734522057; x=1735126857; 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=O//YerG7ZIihFW2lGVZjhXBesNDkTOryi2FknShtqrA=; b=DVBel1beqOULjwMV3hPzRB/hug7byTyN1j1I6U4I4Yfgp5MVxjh/TS5jOUOIfQEMmo 10Pkmw+ypvyKQy3xyOawFDh0giqXeKbCWV663x8S6+Ur6iwTqjaCZqN3JtHN668wUKBu 91E4QZU40YPWJ9Pwk7wyer9MG9yfy0GJ+AS0oxua5Xx6qnZ90jyrYHNV6kgAwDuvlx9m kZMxi2RCVcnzMwzKZyfyU+UGRe+btudcavHt0A1rUsdFxZ2b4KtIW6G/ML5Q+Fzk3Zue G93dC7h9ZBVaj99S2xxcWHy5i23QN180dWIcvjcTPw1cJK7rG46rWT0T01/fONCaq0Sz ri5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734522057; x=1735126857; 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=O//YerG7ZIihFW2lGVZjhXBesNDkTOryi2FknShtqrA=; b=BSpVjz6StsDoiB29nn4hfv7ZjdNhFDOsju3IGLnNdDGDRKKl8XoCvSOAsoHi6ky/QB M2yAhMtwR02nVYt5O0R2Kkoh9LgYSeB2lgEZXCG0sOMFLbMdSQ/xrajEWZU2MGXNrfDn PxJwmrTmkZFVmTMsuS0Su9cpVBbqXdz28wlUnKnKphx/jjp2eKf1r2N+OpMYK1ymPlmH NwgbWu+PPiYerGfbENH9phksCDXSRJesbKcRs1JgKBloPNjOg1MhZXACMqgaF2aQaYT1 DZ4G5TY/mOe8QUTn8rEjBx63pPXOcdUbb/smiiiTZU27lY30rG6JdeF7sBGmKdZDpBtB k+Yw== X-Gm-Message-State: AOJu0YxXjMh0PtYckY7Rk8VcYaFfJtGKWZC/mCh7MI2Wh8iSX6FBOQlH DBgRCVtihMxYjtTzDBpU9p5pOt8UDy/ELSrL3qjB+96IbmHVdUTJWssCI56Du3+L7a5pgxaQ8J9 Xwnk= X-Gm-Gg: ASbGncsV9g+NFT3lIa4DSll50QwX6vZPfc5WPE4QJEkR+n1gEDYZ2ndrXHrT8ftJDer yRHMfvcY5XzvMFjWr826FMieX46eCtJ7NI+zC3K7+KhObCyZFOOYRCu2qy/nLjqbs9DSbXZby+n 0MVWxk8VIx2ffxFDcuDeYjAIGTS1eYVqMBasUfb4cM0D7Qud0I4nlZ9DxjN0QrjBO84hBarKCp9 V1mn74casiM2I+OeXSaqRgP5aQ2k2AXMwlKOatdKd35iAlL683k2pF5vbwarLHDtqxwqnNqxLcZ XQ== X-Google-Smtp-Source: AGHT+IFgI3wCgzOcWsy3RuqYgCXKX/lvGEoPoZrR8SIP96nwYfoTdmgSstBeLPzZGf1Hnp4H+koF5g== X-Received: by 2002:a17:902:c402:b0:215:7e49:8202 with SMTP id d9443c01a7336-218d73b30f7mr37655845ad.13.1734522057522; Wed, 18 Dec 2024 03:40:57 -0800 (PST) Received: from localhost.localdomain ([2804:7f0:bcc0:51cf:9cf:d2f2:d49e:7bd9]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1dcb447sm74462285ad.68.2024.12.18.03.40.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 03:40:57 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, bmeng@tinylab.org, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com, Daniel Henrique Barboza Subject: [PATCH v2 5/9] target/riscv: add shtvala Date: Wed, 18 Dec 2024 08:40:22 -0300 Message-ID: <20241218114026.1652352-6-dbarboza@ventanamicro.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241218114026.1652352-1-dbarboza@ventanamicro.com> References: <20241218114026.1652352-1-dbarboza@ventanamicro.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=dbarboza@ventanamicro.com; helo=mail-pl1-x632.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 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org shtvala is described in RVA22 as: "htval must be written with the faulting guest physical address in all circumstances permitted by the ISA." This is the case since commit 3067553993, so claim support for shtvala. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 1 + tests/data/acpi/riscv64/virt/RHCT | Bin 356 -> 364 bytes 2 files changed, 1 insertion(+) diff --git a/tests/data/acpi/riscv64/virt/RHCT b/tests/data/acpi/riscv64/virt/RHCT index 15b82b5bb1cf24cf501e74cb82682742e0041ea6..065f894010272e7f27834b2c8d5d5fb0c21066a1 100644 GIT binary patch delta 46 zcmaFD^oEHm$iq1#hmnDSF=ir{0UH-1BLgGjM2GFHC1r^@i4(tMa5ynCF!(SsFaQ7$ CAPVCE delta 40 wcmaFE^n{5k$iq1#g^_`Q@%ltA12!f`MuwjZ6CJis{GZBU#mK