From patchwork Thu Aug 17 23:01:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 110353 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp151032qge; Thu, 17 Aug 2017 16:08:24 -0700 (PDT) X-Received: by 10.200.8.20 with SMTP id u20mr9757668qth.287.1503011304521; Thu, 17 Aug 2017 16:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503011304; cv=none; d=google.com; s=arc-20160816; b=XerWPOD7wkKeQ+f3/iD2tNX2ciGTM+Pd7tDBIaebOF8bNBXXmd/eEmgn0PluTQjLeO xOjnJot6uhOi2bMQbn2MJw7ZNLeMVDiRnBkfzn4LhqYxlkZVw95lUl+vJjlTCHDm/32Y 8MoeDAbOQUYMqZLUma3jq6CX3kqxf39z+9xSDJ467kmFMlp4pmYuMDPuIjHx/KWRVj3/ d4UB96oXbprPgUlRXUfSMWGd4q79UPuTQt8252+o3deweFGXkNO4bWON2DV6zGrGevmu EphmOIAJAdrdBW/afPAOjf+9NVp/eVumMrBhJ0c1tQyj5x+/HIoSkzNmDZEkFDNDBPi/ +Cow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=dpdlyo3XtVpsa3ftb6C8wRlu5yzXE0Obkds6jVxb5hw=; b=W5atO/UqhwcTVQhzacIccUBNK7EpeaFtKdRppGGPOUWuukUF5t0uj9tVehq7V2XU/5 ZDQkPiFTD0MZzbrSpHr8xEwsMUEtezmTvi+/4wVGHljW3v7KzlD1hVo/+2cxNy+PAG4d 9Pfy5pQxv3lSeTGkGrQJFHROTwofNMu/9EtI1WBsfSE9RDKrPBhBPPDZ2sH1/KaIIWTw mbjkpNOjOlxFRQrOdYfmUmP1YGs00XcNKf4I6GKxMsalfsgEG9M+BPBeqoYLVannatWC u/6LRZ26YWQcjMJijXgn/erPF8q/pNGrSfAmOCCpkw/XNPQWrLcT5OtH7aJrwNhpitzU eKqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NYmCuYgE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b189si3934029qkd.383.2017.08.17.16.08.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 16:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NYmCuYgE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diTtm-0001rw-FC for patch@linaro.org; Thu, 17 Aug 2017 19:08:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diTn5-0004xV-P7 for qemu-devel@nongnu.org; Thu, 17 Aug 2017 19:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diTn5-0000y2-3z for qemu-devel@nongnu.org; Thu, 17 Aug 2017 19:01:27 -0400 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]:36560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diTn4-0000xc-VB for qemu-devel@nongnu.org; Thu, 17 Aug 2017 19:01:27 -0400 Received: by mail-pg0-x22d.google.com with SMTP id i12so51987893pgr.3 for ; Thu, 17 Aug 2017 16:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dpdlyo3XtVpsa3ftb6C8wRlu5yzXE0Obkds6jVxb5hw=; b=NYmCuYgEnbczxXFGsRPIauPB+03hnctKKtTaOoKZa/Yek3w5jieLYsou8TgpIhmJ1o RFdWq32rcqfaZdS8/7R9H5HZPnuhWF6LajCpasBijtif4pxANchy6RgjHRZnZeX5TYRR 4aim+tHJHsAEv80MSBeZJW1bQMHHRUpXc+Ow8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dpdlyo3XtVpsa3ftb6C8wRlu5yzXE0Obkds6jVxb5hw=; b=AAac+EqPjQcW2nBivgp7f20nVa/wcaRNHmDw97zYtXxmT0ssBaIcKX9iTJFf9uYsF+ sbpUeXuNJwInkgeEYjx/AO1ByBc9NobBkYYk26ITJFkix1xqdA4ByzJ3+Eet3/JkALdz RU+wegMyQ+NVe6Qb21EKUanUM/IK/H69jvWmbnaZtSSnndcGpZNMm0xK/CDDgl9Xx79x H/WKlhDYvP/AyFx/XybegBhYo2qOR1iCZf/rmrS/u8a/kISoJrGInDTRxha02Vbi8nYh WrPgi6z/i1Of686Nrzsn/oprCCMqcOzClfR2K0jvyjlZx0m+4zV33zonbVe+NujJ/Ub6 5fhQ== X-Gm-Message-State: AHYfb5ggvXa39lZMOfqovHkku7/kvZFFHjii007A8WMriMzADkw5cCZx QTO1Ox/Dpal3LrqASSBCwQ== X-Received: by 10.98.14.93 with SMTP id w90mr6909429pfi.298.1503010885018; Thu, 17 Aug 2017 16:01:25 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id c23sm5190043pfc.136.2017.08.17.16.01.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Aug 2017 16:01:24 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 17 Aug 2017 16:01:12 -0700 Message-Id: <20170817230114.3655-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170817230114.3655-1-richard.henderson@linaro.org> References: <20170817230114.3655-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22d Subject: [Qemu-devel] [PATCH 6/8] tcg: Add INDEX_op_invalid X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Add with value 0 so that structure zero initialization can indicate that the field is not present. Signed-off-by: Richard Henderson --- tcg/tcg-opc.h | 2 ++ tcg/tcg.c | 3 +++ 2 files changed, 5 insertions(+) -- 2.13.5 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h index 9162125fac..b1445a4c24 100644 --- a/tcg/tcg-opc.h +++ b/tcg/tcg-opc.h @@ -26,6 +26,8 @@ * DEF(name, oargs, iargs, cargs, flags) */ +DEF(invalid, 0, 0, 0, TCG_OPF_NOT_PRESENT) + /* predefined ops */ DEF(discard, 1, 0, 0, TCG_OPF_NOT_PRESENT) DEF(set_label, 0, 0, 1, TCG_OPF_BB_END | TCG_OPF_NOT_PRESENT) diff --git a/tcg/tcg.c b/tcg/tcg.c index 3c3cdda938..879b29e81f 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -756,6 +756,9 @@ int tcg_check_temp_count(void) bool tcg_op_supported(TCGOpcode op) { switch (op) { + case INDEX_op_invalid: + return false; + case INDEX_op_discard: case INDEX_op_set_label: case INDEX_op_call: