dtrace: handle NOP instructions in the riscv invop handler

This will be used by a forthcoming port of the kinst provider.

Reviewed by:	markj
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D39481
This commit is contained in:
Christos Margiolis 2023-04-10 15:30:48 +00:00 committed by Mark Johnston
parent d862b165a6
commit 0388a0887a

View File

@ -308,6 +308,9 @@ dtrace_invop_start(struct trapframe *frame)
return (0);
}
if (match_opcode(invop, MATCH_C_NOP, MASK_C_NOP))
return (0);
#ifdef INVARIANTS
panic("Instruction %x doesn't match any opcode.", invop);
#endif