From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPQC9-0003fk-91 for qemu-devel@nongnu.org; Thu, 04 Sep 2014 02:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPQBx-0004HC-3B for qemu-devel@nongnu.org; Thu, 04 Sep 2014 02:06:57 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:57321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPQBv-0004GQ-Vo for qemu-devel@nongnu.org; Thu, 04 Sep 2014 02:06:45 -0400 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 4 Sep 2014 11:36:38 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 2CE2EE007D for ; Thu, 4 Sep 2014 11:38:53 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s8466vaE51445926 for ; Thu, 4 Sep 2014 11:36:58 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s8466S3q017358 for ; Thu, 4 Sep 2014 11:36:29 +0530 From: Bharata B Rao Date: Thu, 4 Sep 2014 11:36:11 +0530 Message-Id: <1409810785-12391-2-git-send-email-bharata@linux.vnet.ibm.com> In-Reply-To: <1409810785-12391-1-git-send-email-bharata@linux.vnet.ibm.com> References: <1409810785-12391-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v0 01/15] ppc: Store dr entity state bits at the right bit offset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com, Bharata B Rao Signed-off-by: Bharata B Rao --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c65b13a..47fc21d 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -367,7 +367,7 @@ sPAPRDrcEntry *spapr_add_phb_to_drc_table(uint64_t buid, uint32_t state) if (empty_drc) { empty_drc->phb_buid = buid; - empty_drc->state = state; + empty_drc->state = state << INDICATOR_ENTITY_SENSE_SHIFT; empty_drc->cc_state.fdt = NULL; empty_drc->cc_state.offset = 0; empty_drc->cc_state.depth = 0; -- 1.7.11.7