Received: from eggs.gnu.org ([2001:4830:134:3::10]:56328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bABre-0005tI-L1 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 03:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bABra-0006ZY-D0 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 03:55:53 -0400 Message-ID: <57567D17.9070505@huawei.com> Date: Tue, 7 Jun 2016 15:51:51 +0800 From: Shannon Zhao MIME-Version: 1.0 References: <1464274540-19693-1-git-send-email-peter.maydell@linaro.org> <1464274540-19693-7-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1464274540-19693-7-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 06/22] hw/intc/arm_gicv3: Add state information List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: patches@linaro.org, Shlomo Pongratz , Shlomo Pongratz , Pavel Fedin , Shannon Zhao , Christoffer Dall On 2016/5/26 22:55, Peter Maydell wrote: > From: Pavel Fedin > > Add state information to GICv3 object structure and implement > arm_gicv3_common_reset(). > > This commit includes accessor functions for the fields which are > stored as bitmaps in uint32_t arrays. > > Signed-off-by: Pavel Fedin > [PMM: significantly overhauled: > * Add missing qom/cpu.h include > * Remove legacy-only state fields (we can add them later if/when we add > legacy emulation) > * Use arrays of uint32_t to store the various distributor bitmaps, > and provide accessor functions for the various set/test/etc operations > * Add various missing register offset #defines > * Accessor macros which combine distributor and redistributor behaviour > removed > * Fields in state structures renamed to match architectural register names > * Corrected the reset value for GICR_IENABLER0 since we don't support > legacy mode > * Added ARM_LINUX_BOOT_IF interface for "we are directly booting a kernel in > non-secure" so that we can fake up the firmware-mandated reconfiguration > only when we need it > ] > Signed-off-by: Peter Maydell [...] > +#define GIC_BIT_MASK(nr) (1U << ((nr) % 32)) > +#define GIC_BIT_WORD(nr) ((nr) / 32) > +#define GIC_BIT(nr) (1U << (nr)) It seems the GIC_BIT(nr) is not used. Reviewed-by: Shannon Zhao -- Shannon