From fe4118a6918b7829f96f42944522da79564a1393 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 29 Mar 2021 16:49:29 -0700 Subject: pk: remove vestigial trapframe_t::insn field This assumes that stval is populated with the opcode on illegal instruction exceptions. But since we're only using the opcode for error reporting, it's OK if this assumption is violated. --- pk/entry.S | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pk/entry.S') diff --git a/pk/entry.S b/pk/entry.S index 39be286..5bbf697 100644 --- a/pk/entry.S +++ b/pk/entry.S @@ -47,10 +47,6 @@ STORE t1,33*REGBYTES(x2) STORE t2,34*REGBYTES(x2) STORE t3,35*REGBYTES(x2) - - # get faulting insn, if it wasn't a fetch-related trap - li x5,-1 - STORE x5,36*REGBYTES(x2) 1: .endm -- cgit v1.1