From 54c9701a257656cf07d1f2ca93f5c5d558f878f9 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 18 Oct 2006 20:53:59 -0400 Subject: [PATCH] Zeroed out the actual LSB in addition to moving it's original value the MSB. --HG-- extra : convert_revision : d29efe01781d72ee6e61818e7b93972262c0616b --- src/arch/sparc/isa/operands.isa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/sparc/isa/operands.isa b/src/arch/sparc/isa/operands.isa index 9dcd73598..40926a5fb 100644 --- a/src/arch/sparc/isa/operands.isa +++ b/src/arch/sparc/isa/operands.isa @@ -48,7 +48,7 @@ output header {{ // MSB put in the LSB position but are otherwise normal. static inline unsigned int dfpr(unsigned int regNum) { - return regNum | ((regNum & 1) << 5); + return (regNum & (~1)) | ((regNum & 1) << 5); } }}; -- 2.30.2