KVM: arm64: Reuse sys_reg() macro when searching the trap table
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 9 Jan 2019 19:18:40 +0000 (19:18 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Feb 2019 21:05:39 +0000 (21:05 +0000)
commit09838de943d4c0ee75a99cd7665940705ab8dcea
tree29f399ceca47041cb5fb7bcdf66e9b69db7b0643
parentb98c079ba480c606b13f6abf844187af09baeaab
KVM: arm64: Reuse sys_reg() macro when searching the trap table

Instead of having an open-coded macro, reuse the sys_reg() macro
that does the exact same thing (the encoding is slightly different,
but the ordering property is the same).

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
arch/arm64/kvm/sys_regs.c