From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVkJ0-0001AC-HG for qemu-devel@nongnu.org; Mon, 14 Oct 2013 11:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVkIv-0002Yn-Pg for qemu-devel@nongnu.org; Mon, 14 Oct 2013 11:43:38 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:56987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVkIv-0002Ya-Ia for qemu-devel@nongnu.org; Mon, 14 Oct 2013 11:43:33 -0400 Received: by mail-lb0-f182.google.com with SMTP id c11so5954064lbj.27 for ; Mon, 14 Oct 2013 08:43:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1380229386-24166-5-git-send-email-christoffer.dall@linaro.org> References: <1380229386-24166-1-git-send-email-christoffer.dall@linaro.org> <1380229386-24166-5-git-send-email-christoffer.dall@linaro.org> From: Peter Maydell Date: Mon, 14 Oct 2013 16:43:11 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [RFC PATCH v2 4/6] arm_gic: Support setting/getting binary point reg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoffer Dall Cc: Patch Tracking , QEMU Developers , "kvmarm@lists.cs.columbia.edu" On 26 September 2013 22:03, Christoffer Dall wrote: > @@ -606,10 +607,13 @@ static void gic_cpu_write(GICState *s, int cpu, int offset, uint32_t value) > s->priority_mask[cpu] = (value & 0xff); > break; > case 0x08: /* Binary Point */ > - /* ??? Not implemented. */ > + s->bpr[cpu] = (value & 0x7); > break; > case 0x10: /* End Of Interrupt */ > return gic_complete_irq(s, cpu, value & 0x3ff); > + case 0x1c: /* Aliased Binary Point */ > + s->abpr[cpu] = (value & 0x7); > + break; The ABPR should RAZ/WI for GICs prior to v2, so this needs to be guarded with "if (s->revision >= 2) { ...". Otherwise looks good. -- PMM