From nobody Fri Sep 08 23:37:14 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RjCFQ4xdYz4scwS; Fri, 8 Sep 2023 23:37:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RjCFQ3wkpz4YF7; Fri, 8 Sep 2023 23:37:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694216234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mKnKWwrIs3Y4mqmOk5KnNBlDf72W4udsHKXOq2fPlR4=; b=L1apmLjo+YWxRipLPVItw4g4eTPMozuns1o/KnXIRQYcQI0DRWSG4mV4Su1Msh9y+CEeD0 K99kbOFRMfVlA2QGcvLEpL/tj7THA6efB1831nGZcs0i6k/vmryGYEIpbBJRPbIQZ15/Jl Ha2x/vO43AetXKvSq+1FsN1h0S28hmI2QGyHeWHazwabyGWGdSCWz7z3mVT0vkXc79+1Jt oVKBZJAV8tqTZcij10bqELEL1ViEAV1hQJ348QZF9wY8ZR4D8s3H/NFQTzV4fh4G4bTHyU nbPXjUqXXAgoYMbXHqeiuGx4bapXgKI1plwga39TBnpqvHcvgxhACCHZBl2J5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694216234; a=rsa-sha256; cv=none; b=PTyZyRH7qg5Jq6uGKl0H8GpvaYzbrOcqPoKYBUJGN9heepC/uWiRpm93Rkb5cra95ygOiZ FTLqPE5S53x4ye1F3aiKrqKIJdD8VQD8DbXHqE+INPOzxoPvXmSo76w5pugSBCfsSIt+Pg kgUaM7jwdd/dPEF6HLirNh28dwj75hg9W7ZPqN6dp5YeKENIr0VgBTuPiylc9uf/TmPdw9 QLI3CV/dqD11o/Hm/Z4LQ40bR1NH1g/7+Mssk+eVQwZlMoYFcTle4t1OhLsyQosjsVYl42 2e1SPN/vPnxm/S7VWZlWoz2qZVlw1qnQHl+6B7QQfkjMpI+m0LQuH3KNaQEXvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694216234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mKnKWwrIs3Y4mqmOk5KnNBlDf72W4udsHKXOq2fPlR4=; b=xBqjRxeUIeJAvqW92R5FtJACFRXaQk9pvagUMGNEb0lMw+4szsaXZiLNND1Y8q2LKBD6eP l3a0MzuSDjYOKSXOJAOZRnP8XhIz13xXVoSd8a1G8fGVEtq6A7ol8lOPwxTB/hKrEkBDfB TxoPY7eMyHoMObepgszHDVYFc3LDEuRahtobZxRajlQfvXdVfskcA3gP0WBc9ldRroBAG8 OIsentG8L+y/XSzqKZ24vBQtJytjVMEDQcwdfxs1h/TVkGuFlt2J44LTJDv2VEqxernb7o UVdHL6I9ZjH0ndudcwNJI4QrMVytLYK1gkaaeO5TZGlXuikSmRmiqf8d0zCGfA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RjCFQ2hCjz1250; Fri, 8 Sep 2023 23:37:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 388NbE1D073149; Fri, 8 Sep 2023 23:37:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 388NbEcO073146; Fri, 8 Sep 2023 23:37:14 GMT (envelope-from git) Date: Fri, 8 Sep 2023 23:37:14 GMT Message-Id: <202309082337.388NbEcO073146@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3b5fc5eead84 - main - riscv: Print stval in dump_regs for fatal exceptions List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3b5fc5eead84bd75dedead71a7f3771882942fa7 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3b5fc5eead84bd75dedead71a7f3771882942fa7 commit 3b5fc5eead84bd75dedead71a7f3771882942fa7 Author: John Baldwin AuthorDate: 2023-09-08 23:35:59 +0000 Commit: John Baldwin CommitDate: 2023-09-08 23:35:59 +0000 riscv: Print stval in dump_regs for fatal exceptions Reviewed by: mhorne, markj Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D41700 --- sys/riscv/riscv/trap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/riscv/riscv/trap.c b/sys/riscv/riscv/trap.c index bde402c1cc16..b855fcc4163a 100644 --- a/sys/riscv/riscv/trap.c +++ b/sys/riscv/riscv/trap.c @@ -186,6 +186,7 @@ dump_regs(struct trapframe *frame) print_with_symbol("tp", frame->tf_tp); print_with_symbol("sepc", frame->tf_sepc); printf("sstatus: 0x%016lx\n", frame->tf_sstatus); + printf("stval : 0x%016lx\n", frame->tf_stval); } static void