Trapping a riscv illegal instruction shouldn't print a console message
authorjca <jca@openbsd.org>
Wed, 23 Mar 2022 23:48:30 +0000 (23:48 +0000)
committerjca <jca@openbsd.org>
Wed, 23 Mar 2022 23:48:30 +0000 (23:48 +0000)
"Old debugging code obviously" deraadt@

sys/arch/riscv64/riscv64/trap.c

index 08c484d..91ace56 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: trap.c,v 1.17 2021/09/03 14:58:25 jca Exp $   */
+/*     $OpenBSD: trap.c,v 1.18 2022/03/23 23:48:30 jca Exp $   */
 
 /*
  * Copyright (c) 2020 Shivam Waghela <shivamwaghela@gmail.com>
@@ -153,8 +153,6 @@ do_trap_user(struct trapframe *frame)
                        fpu_load(p);
                        break;
                }
-               printf("ILL at %lx scause %lx stval %lx\n", frame->tf_sepc,
-                   frame->tf_scause, frame->tf_stval);
                sv.sival_ptr = (void *)frame->tf_stval;
                trapsignal(p, SIGILL, 0, ILL_ILLTRP, sv);
                break;