From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAh1-00070D-QP for qemu-devel@nongnu.org; Fri, 18 Oct 2013 10:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXAgw-0006kW-Sp for qemu-devel@nongnu.org; Fri, 18 Oct 2013 10:06:19 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:50770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAgw-0006kQ-LL for qemu-devel@nongnu.org; Fri, 18 Oct 2013 10:06:14 -0400 Received: by mail-la0-f43.google.com with SMTP id el20so640240lab.16 for ; Fri, 18 Oct 2013 07:06:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <8549a20530b9331af1c3d725f4cb9a3e4fe3a9b2.1373429432.git.peter.crosthwaite@xilinx.com> From: Peter Maydell Date: Fri, 18 Oct 2013 15:05:53 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v1 4/4] target-arm: Add CP15 VBAR support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: QEMU Developers On 17 October 2013 11:38, Peter Maydell wrote: > On 10 July 2013 05:23, wrote: >> From: Nathan Rossi >> >> Added Vector Base Address remapping on ARM v7. > > Apologies for this dropping off my radar for so long. > I've had a bit of a think and I think that you're right > that we can put in this register as part of our "random > things we provide even though we aren't strictly implementing > all of TZ", like the existing SCR register support. > >> +static int vbar_write(CPUARMState *env, const ARMCPRegInfo *ri, >> + uint64_t value) >> +{ >> + value &= (1 << 31); > > This seems spurious -- we end up ignoring all but > the high bit of the written value. > >> + env->cp15.c12_vbar = value & ~0x1Ful; >> + return 0; >> +} >> + > > Otherwise looks OK. Update: I've removed the spurious mask line noted above and added the edited patch to target-arm.next. thanks -- PMM