Stop obliterating actual exception type for emulated traps from vm86.

Wording and reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D15054
This commit is contained in:
Konstantin Belousov 2018-05-23 21:26:41 +00:00
parent 12db404753
commit 79547c52b8

View File

@ -357,7 +357,6 @@ user_trctrap_out:
if (frame->tf_eflags & PSL_VM) {
signo = vm86_emulate((struct vm86frame *)frame);
if (signo == SIGTRAP) {
type = T_TRCTRAP;
load_dr6(rdr6() | 0x4000);
goto user_trctrap_out;
}