decoder: Generify the matcher interface (#33)

Gets rid of a bit of duplication while remaining compatible
with the current interfaces in place.
This commit is contained in:
Mat M 2016-09-17 04:48:18 -04:00 committed by Merry
parent 943487ecee
commit f75acd6cfb
11 changed files with 116 additions and 172 deletions

View file

@ -21,6 +21,8 @@ namespace Arm {
class DisassemblerVisitor {
public:
using instruction_return_type = std::string;
u32 rotr(u32 x, int shift) {
shift &= 31;
if (!shift) return x;