On 17 March 2014 03:28, Peter Crosthwaite <peter.crosthwaite@xxxxxxxxxx> wrote: > On Fri, Mar 7, 2014 at 5:32 AM, Peter Maydell <peter.maydell@xxxxxxxxxx> wrote: >> From: Rob Herring <rob.herring@xxxxxxxxxx> >> + /* Set bit 26 for exceptions with no change in EL */ >> + if (arm_current_pl(env)) { >> + syn |= 1 << ARM_EL_EC_SHIFT; >> + } >> + > > Perhaps in internals.h: > > #define ARM_EL_EC_SAME_LEVEL (1 << ARM_EL_EC_SHIFT) > > Then this becomes: > > syn |= ARM_EL_EC_SAME_LEVEL > > Then in internals.h you can be more self documenting with: > > EC_BREAKPOINT_SAME_EL = EC_BREAKPOINT | ARM_EL_EC_SAME_LEVEL Yeah, seems reasonable. -- PMM _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm