Author: markj
Date: Tue Jun  4 17:37:20 2019
New Revision: 348647
URL: https://svnweb.freebsd.org/changeset/base/348647

Log:
  MFC r340027 (by jhb):
  Don't allow debuggers to modify SSTATUS, only to read it.

Modified:
  stable/12/sys/riscv/riscv/machdep.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/riscv/riscv/machdep.c
==============================================================================
--- stable/12/sys/riscv/riscv/machdep.c Tue Jun  4 17:31:59 2019        
(r348646)
+++ stable/12/sys/riscv/riscv/machdep.c Tue Jun  4 17:37:20 2019        
(r348647)
@@ -178,7 +178,6 @@ set_regs(struct thread *td, struct reg *regs)
 
        frame = td->td_frame;
        frame->tf_sepc = regs->sepc;
-       frame->tf_sstatus = regs->sstatus;
        frame->tf_ra = regs->ra;
        frame->tf_sp = regs->sp;
        frame->tf_gp = regs->gp;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to