From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGPEf-0004Tq-OM for qemu-devel@nongnu.org; Mon, 02 Sep 2013 04:11:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGPEY-0000hk-5e for qemu-devel@nongnu.org; Mon, 02 Sep 2013 04:11:45 -0400 From: Alexander Graf Date: Mon, 2 Sep 2013 10:11:27 +0200 Message-Id: <1378109493-41076-13-git-send-email-agraf@suse.de> In-Reply-To: <1378109493-41076-1-git-send-email-agraf@suse.de> References: <1378109493-41076-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 12/18] target-ppc: Use #define instead of opencoding SLB valid bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-ppc@nongnu.org list:PowerPC" Cc: Blue Swirl , Anthony Liguori , qemu-devel Developers , Aurelien Jarno , "Aneesh Kumar K.V" From: "Aneesh Kumar K.V" Use SLB_ESID_V instead of (1 << 27) in the code Reviewed-by: Andreas F=C3=A4rber Signed-off-by: Aneesh Kumar K.V Signed-off-by: Alexander Graf --- target-ppc/mmu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 5dd4e05..9c9132e 100644 --- a/target-ppc/mmu_helper.c +++ b/target-ppc/mmu_helper.c @@ -2061,7 +2061,7 @@ void helper_store_sr(CPUPPCState *env, target_ulong= srnum, target_ulong value) /* ESID =3D srnum */ rb |=3D ((uint32_t)srnum & 0xf) << 28; /* Set the valid bit */ - rb |=3D 1 << 27; + rb |=3D SLB_ESID_V; /* Index =3D ESID */ rb |=3D (uint32_t)srnum; =20 --=20 1.8.1.4