From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8D8DEC55ABF for ; Thu, 6 Aug 2026 08:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kaJ4EfgD3fh+twIZUoRMkP0aOeavXxJruutPN+YROjA=; b=graemWwdDZvaUg oxrbjx1FPFAsXXBZ4bTswP0f2Xzssatxd9KsdIj8iHnJiVceDQ3ZS41+mwwsr4YaMe5EMjaH4ssbY Q0ePLWsCZI1VaGJueQ5hazYc4oc8oh5OjVxWTpM8Av59oXdIbKvffgYHcDrbR9vWkPz50p460n9vl x7rGVdtg9wHakJLIBVEIq57oPO6oH/Vjnrb1UM8vkSKcpHjF8/geBu11lcbpgBlNEnn9helt7VuTS kn6kFv0IgQeMPjCdpQCLZaobaZDlqWrdAPDCwnw9sq0zCgLkMeS70PaVwb2aFR1j1j2nW1wakuDrP v3ZSn+VYFV/lFnDPpk3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtcu-00000005GFp-1rPt; Thu, 06 Aug 2026 08:38:56 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtcs-00000005GFO-1Jbp; Thu, 06 Aug 2026 08:38:55 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786005532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9nIA4g8t7lcsSLy8SKolUFQCcXI9D58a3Po16VlQMr8=; b=FHTUUJudzFS9p3kUWAKr1SALxyX8dITqDTYMVXAx1huMmCgpVLP16nMVY4hcklrJVWcPqR w7xImKjr/LQ01tnIrxqVA3UoQHb5TfPHrNmNcr3eIZeGHvSLPuf82pFFMpcMWyY10ggoMy 6M8g3cUMahaQwRseVEhEYmG1lOJoXFKPwkOVGeUp7vlqmw1KZIqDuCmYf7BySxV4CtRqbn x0cePGBoIA0fRtAPfgYtQhpjZh0okiLhwau7Yp6CYyhdXK8F3j98Gh1gIGB9q4/54UFNG6 MO9amqq1MPvisx9UdAuDyFTvTnWiUYEHsIlwEykL7w0mVNt9CkDznC0ZIY1VFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786005532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9nIA4g8t7lcsSLy8SKolUFQCcXI9D58a3Po16VlQMr8=; b=ZTgQaNPBgxMk/DdAp7Z2FCXvOe+jMg5wVDgIbdDAwvGdPZW+a8kUN6/Kjq+YrXGTVD/0FE PyrDu/wCuK5cK8BQ== To: Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Anup Patel , Atish Patra , Conor Dooley , Paolo Bonzini , Andrew Morton , Shuah Khan , Radim =?utf-8?B?S3LEjW3DocWZ?= , Jesse Taube Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, Charlie Jenkins , Damien Le Moal Subject: Re: [PATCH v3 07/17] riscv: Maintain epc on misaligned emulation error In-Reply-To: <20260707-riscv_insn_table-v3-7-3f8e5f75ba97@gmail.com> References: <20260707-riscv_insn_table-v3-0-3f8e5f75ba97@gmail.com> <20260707-riscv_insn_table-v3-7-3f8e5f75ba97@gmail.com> Date: Thu, 06 Aug 2026 10:38:51 +0200 Message-ID: <87cxvvd4o4.fsf@yellow.woof> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260806_013854_495890_2E49FAF8 X-CRM114-Status: UNSURE ( 6.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Charlie Jenkins writes: > Currently the epc is set to zero when there is a misaligned emulation > error. This will print a misleading error message with the current epc > value of zero instead of the epc value that triggered the emulation. > Avoid setting epc to zero to maintain the state of epc. > > Signed-off-by: Charlie Jenkins I see no reason why epc must be set to zero, so: Reviewed-by: Nam Cao But to be sure, I add to CC: Damien Le Moal Damien, any reason that epc must be cleared? Nam _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv