From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMljb-0002oz-5v for qemu-devel@nongnu.org; Thu, 19 Sep 2013 17:26:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMljP-0005Ja-06 for qemu-devel@nongnu.org; Thu, 19 Sep 2013 17:25:59 -0400 Received: from mail-yh0-x22e.google.com ([2607:f8b0:4002:c01::22e]:57557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMljO-0005J8-Ku for qemu-devel@nongnu.org; Thu, 19 Sep 2013 17:25:46 -0400 Received: by mail-yh0-f46.google.com with SMTP id c41so4360909yho.5 for ; Thu, 19 Sep 2013 14:25:46 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 19 Sep 2013 14:24:54 -0700 Message-Id: <1379625908-27964-3-git-send-email-rth@twiddle.net> In-Reply-To: <1379625908-27964-1-git-send-email-rth@twiddle.net> References: <1379625908-27964-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [RFC 02/16] tcg: Introduce TCGTempType List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, aurelien@aurel32.net Signed-off-by: Richard Henderson --- tcg/tcg.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tcg/tcg.h b/tcg/tcg.h index dade849..554a4ee 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -379,16 +379,18 @@ static inline TCGCond tcg_high_cond(TCGCond c) } } -#define TEMP_VAL_DEAD 0 -#define TEMP_VAL_REG 1 -#define TEMP_VAL_MEM 2 -#define TEMP_VAL_CONST 3 +typedef enum TCGTempType { + TEMP_VAL_DEAD, + TEMP_VAL_REG, + TEMP_VAL_MEM, + TEMP_VAL_CONST, +} TCGTempType; /* XXX: optimize memory layout */ typedef struct TCGTemp { TCGType base_type; TCGType type; - int val_type; + TCGTempType val_type; int reg; tcg_target_long val; int mem_reg; -- 1.8.1.4