Re: [Xen-devel] [PATCH 08/22] xen/arm: p2m: Simplify p2m type check by using bitmask

2016-07-26 Thread Stefano Stabellini
On Wed, 20 Jul 2016, Julien Grall wrote: > The resulting assembly code for the macros is much simpler and will > never contain more than one instruction branch. > > The idea is taken from x86 (see include/asm-x86/p2m.h). Also move the > two helpers earlier to keep all the p2m type definitions

[Xen-devel] [PATCH 08/22] xen/arm: p2m: Simplify p2m type check by using bitmask

2016-07-20 Thread Julien Grall
The resulting assembly code for the macros is much simpler and will never contain more than one instruction branch. The idea is taken from x86 (see include/asm-x86/p2m.h). Also move the two helpers earlier to keep all the p2m type definitions together. Signed-off-by: Julien Grall