x86/insn: Add insn_has_rep_prefix() helper

Add a function to check whether an instruction has a REP prefix.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lkml.kernel.org/r/20200907131613.12703-12-joro@8bytes.org
This commit is contained in:
Joerg Roedel 2020-09-07 15:15:12 +02:00 • committed by Borislav Petkov
commit 5901781a11
2 changed files with 25 additions and 0 deletions