Received: from eggs.gnu.org ([2001:4830:134:3::10]:55479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2eSo-0004UZ-WF for qemu-devel@nongnu.org; Tue, 17 May 2016 08:51:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2eSk-00044Z-NJ for qemu-devel@nongnu.org; Tue, 17 May 2016 08:51:05 -0400 Received: from mail-bl2nam02on0077.outbound.protection.outlook.com ([104.47.38.77]:40089 helo=NAM02-BL2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2eSk-00044B-Ic for qemu-devel@nongnu.org; Tue, 17 May 2016 08:51:02 -0400 Date: Tue, 17 May 2016 14:50:58 +0200 From: "Edgar E. Iglesias" Message-ID: <20160517125058.GU3731@toto> References: <1463487258-27468-1-git-send-email-peter.maydell@linaro.org> <1463487258-27468-2-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1463487258-27468-2-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 1/2] target-arm: Set IL bit in syndromes for insn abort, watchpoint, swstep List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org, Laurent Desnogues On Tue, May 17, 2016 at 01:14:17PM +0100, Peter Maydell wrote: > For some exception syndrome types, the IL bit should always be set. > This includes the instruction abort, watchpoint and software step > syndrome types; add the missing ARM_EL_IL bit to the syndrome > values returned by syn_insn_abort(), syn_swstep() and syn_watchpoint(). Hi, Maybe we should have a reference in a comment to the table in the pseudo code for AArch64.ExceptionClass? It makes it a little easier to understand some of these settings... Either way: Reviewed-by: Edgar E. Iglesias Cheers, Edgar > > Signed-off-by: Peter Maydell > --- > target-arm/internals.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/target-arm/internals.h b/target-arm/internals.h > index 54a0fb1..7768a24 100644 > --- a/target-arm/internals.h > +++ b/target-arm/internals.h > @@ -382,7 +382,7 @@ static inline uint32_t syn_fp_access_trap(int cv, int cond, bool is_16bit) > static inline uint32_t syn_insn_abort(int same_el, int ea, int s1ptw, int fsc) > { > return (EC_INSNABORT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT) > - | (ea << 9) | (s1ptw << 7) | fsc; > + | ARM_EL_IL | (ea << 9) | (s1ptw << 7) | fsc; > } > > static inline uint32_t syn_data_abort_no_iss(int same_el, > @@ -411,13 +411,13 @@ static inline uint32_t syn_data_abort_with_iss(int same_el, > static inline uint32_t syn_swstep(int same_el, int isv, int ex) > { > return (EC_SOFTWARESTEP << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT) > - | (isv << 24) | (ex << 6) | 0x22; > + | ARM_EL_IL | (isv << 24) | (ex << 6) | 0x22; > } > > static inline uint32_t syn_watchpoint(int same_el, int cm, int wnr) > { > return (EC_WATCHPOINT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT) > - | (cm << 8) | (wnr << 6) | 0x22; > + | ARM_EL_IL | (cm << 8) | (wnr << 6) | 0x22; > } > > static inline uint32_t syn_breakpoint(int same_el) > -- > 1.9.1 >