From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE9Vt-0008W7-MO for qemu-devel@nongnu.org; Mon, 04 Aug 2014 00:04:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XE9Vo-0006uP-OE for qemu-devel@nongnu.org; Mon, 04 Aug 2014 00:04:45 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:39763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE9Vo-0006tU-HT for qemu-devel@nongnu.org; Mon, 04 Aug 2014 00:04:40 -0400 Received: by mail-pa0-f53.google.com with SMTP id rd3so9250012pab.12 for ; Sun, 03 Aug 2014 21:04:39 -0700 (PDT) Date: Mon, 4 Aug 2014 14:02:14 +1000 From: "Edgar E. Iglesias" Message-ID: <20140804040214.GV13735@toto> References: <1402994746-8328-1-git-send-email-edgar.iglesias@gmail.com> <1402994746-8328-13-git-send-email-edgar.iglesias@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v3 12/16] target-arm: A64: Correct updates to FAR and ESR on exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Rob Herring , Peter Crosthwaite , Fabian Aggeler , QEMU Developers , Alexander Graf , Blue Swirl , John Williams , Greg Bellows , Paolo Bonzini , Alex =?iso-8859-1?Q?Benn=E9e?= , Christoffer Dall , Richard Henderson On Fri, Aug 01, 2014 at 02:56:29PM +0100, Peter Maydell wrote: > On 17 June 2014 09:45, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Not all exception types update both FAR and ESR. > > > > Reviewed-by: Alex Bennée > > Reviewed-by: Greg Bellows > > Signed-off-by: Edgar E. Iglesias > > --- > > target-arm/helper-a64.c | 6 ++---- > > 1 file changed, 2 insertions(+), 4 deletions(-) > > > > diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c > > index 4be0784..cf8ce1e 100644 > > --- a/target-arm/helper-a64.c > > +++ b/target-arm/helper-a64.c > > @@ -466,18 +466,16 @@ void aarch64_cpu_do_interrupt(CPUState *cs) > > env->exception.syndrome); > > } > > > > - env->cp15.esr_el[new_el] = env->exception.syndrome; > > - env->cp15.far_el[new_el] = env->exception.vaddress; > > - > > switch (cs->exception_index) { > > case EXCP_PREFETCH_ABORT: > > case EXCP_DATA_ABORT: > > + env->cp15.far_el[new_el] = env->exception.vaddress; > > qemu_log_mask(CPU_LOG_INT, "...with FAR 0x%" PRIx64 "\n", > > env->cp15.far_el[new_el]); > > - break; > > If you want this to fall through, you need a /* fall through */ comment. Added, thanks. > > > case EXCP_BKPT: > > case EXCP_UDEF: > > case EXCP_SWI: > > + env->cp15.esr_el[new_el] = env->exception.syndrome; > > break; > > case EXCP_IRQ: > > addr += 0x80; > > -- > > thanks > -- PMM