Don't allow debuggers to modify SSTATUS, only to read it.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D17771
This commit is contained in:
John Baldwin 2018-11-01 22:13:22 +00:00
parent 3c3779dc20
commit 344adeab18

View File

@ -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;