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:
parent
d862b165a6
commit
0388a0887a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user