From patchwork Mon May 24 16:19:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Froyd X-Patchwork-Id: 53441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C2410B7D19 for ; Tue, 25 May 2010 02:26:46 +1000 (EST) Received: from localhost ([127.0.0.1]:58709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGaQc-0002oc-3B for incoming@patchwork.ozlabs.org; Mon, 24 May 2010 12:22:58 -0400 Received: from [140.186.70.92] (port=49974 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGaNm-00020Z-Lk for qemu-devel@nongnu.org; Mon, 24 May 2010 12:20:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGaNX-00014i-QD for qemu-devel@nongnu.org; Mon, 24 May 2010 12:19:58 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:33409) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGaNW-00013M-6j for qemu-devel@nongnu.org; Mon, 24 May 2010 12:19:46 -0400 Received: (qmail 27910 invoked from network); 24 May 2010 16:19:45 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 24 May 2010 16:19:45 -0000 From: Nathan Froyd To: qemu-devel@nongnu.org Date: Mon, 24 May 2010 09:19:39 -0700 Message-Id: <1274717984-25887-6-git-send-email-froydnj@codesourcery.com> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: <1274717984-25887-1-git-send-email-froydnj@codesourcery.com> References: <1274717984-25887-1-git-send-email-froydnj@codesourcery.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 05/10] target-mips: small changes to use new FMT_ enums X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Nathan Froyd Acked-by: Richard Henderson --- target-mips/translate.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 63844b8..cc445fb 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -359,7 +359,8 @@ enum { /* 0 - 15 are reserved */ FMT_S = 16, FMT_D = 17, - /* 18 - 19 are reserved */ + FMT_E = 18, + FMT_Q = 19, FMT_W = 20, FMT_L = 21, FMT_PS = 22, @@ -378,13 +379,13 @@ enum { OPC_BC1 = (0x08 << 21) | OPC_CP1, /* bc */ OPC_BC1ANY2 = (0x09 << 21) | OPC_CP1, OPC_BC1ANY4 = (0x0A << 21) | OPC_CP1, - OPC_S_FMT = (0x10 << 21) | OPC_CP1, /* 16: fmt=single fp */ - OPC_D_FMT = (0x11 << 21) | OPC_CP1, /* 17: fmt=double fp */ - OPC_E_FMT = (0x12 << 21) | OPC_CP1, /* 18: fmt=extended fp */ - OPC_Q_FMT = (0x13 << 21) | OPC_CP1, /* 19: fmt=quad fp */ - OPC_W_FMT = (0x14 << 21) | OPC_CP1, /* 20: fmt=32bit fixed */ - OPC_L_FMT = (0x15 << 21) | OPC_CP1, /* 21: fmt=64bit fixed */ - OPC_PS_FMT = (0x16 << 21) | OPC_CP1, /* 22: fmt=paired single fp */ + OPC_S_FMT = (FMT_S << 21) | OPC_CP1, /* 16: fmt=single fp */ + OPC_D_FMT = (FMT_D << 21) | OPC_CP1, /* 17: fmt=double fp */ + OPC_E_FMT = (FMT_E << 21) | OPC_CP1, /* 18: fmt=extended fp */ + OPC_Q_FMT = (FMT_Q << 21) | OPC_CP1, /* 19: fmt=quad fp */ + OPC_W_FMT = (FMT_W << 21) | OPC_CP1, /* 20: fmt=32bit fixed */ + OPC_L_FMT = (FMT_L << 21) | OPC_CP1, /* 21: fmt=64bit fixed */ + OPC_PS_FMT = (FMT_PS << 21) | OPC_CP1, /* 22: fmt=paired single fp */ }; #define MASK_CP1_FUNC(op) MASK_CP1(op) | (op & 0x3F)