use sival_ptr instead of sival_int for breakpoint and illegal inst
authorjsg <jsg@openbsd.org>
Sat, 1 May 2021 03:03:15 +0000 (03:03 +0000)
committerjsg <jsg@openbsd.org>
Sat, 1 May 2021 03:03:15 +0000 (03:03 +0000)
commit99164e4253a4b4d954dc33c041b1e01ef872f2a9
treee4e679e451b6ef911690f9843e33869933ee2606
parent8799241437c2fe87e24fb4ac65e44e1d046898ee
use sival_ptr instead of sival_int for breakpoint and illegal inst

For breakpoints stval will have a vaddr.  For illegal instructions stval
may be as large as a register or the widest instruction.

Also avoid using an uninitialised variable for stval.

ok mlarkin@ drahn@
sys/arch/riscv64/riscv64/trap_machdep.c