From patchwork Tue Sep 12 16:25:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 112339 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp152744edi; Tue, 12 Sep 2017 09:33:48 -0700 (PDT) X-Received: by 10.55.123.1 with SMTP id w1mr10681165qkc.114.1505234028092; Tue, 12 Sep 2017 09:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505234028; cv=none; d=google.com; s=arc-20160816; b=qQOLfmlcytZldrUCo/JtGRSYKd7T7zk70bDTwACQ/viibtiULmsk34C0e4pURKakWb 5isqf0fNEbyNzoWAjevgUkhd5HyoWMjaaAevBgreUK2zgYDLmUazJIHjZDsN7FSTe2Ir k6+yW7Yiz85TnDRh5GHpboqib/I6SWg/47ceBm93nGFXV5EC2D2eNK4P50wsFt9vYjV9 Z1nwCx+AjVrwzaVNkDJQAmO7VMk7i6vkWgysmzQBn45hsCPGwXs+GHJumxFIEaymHaM9 HWOIhMFHTFoVNQBa9GiPq01R5zZ6tBpMQb4C3YlkxRibJW9nQSKNti6UbPhYVg0Xjt0v mHSg== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=zystXnD+mZxgtjbQyrl7Ree1MkecfqCccEKVNR08Hes=; b=Zrs+NmTK0WEhFpD+lBsgbMbRK+4U7oAFpnqsRs6oXEwLEHHDYjxdYF34W6tPiy//uu DgyAbvRtgZIbXyh+8DlQQqqqlzLMOYavcTA4I+d4NzniNSoc4JFv86n5I6gptOZrA4XZ 8poX5rJbOU9huf1P6kr01cvI2e/2I/okp/PQlFWw07I/NdvCRQPXs+zaoVtnEeq0W/hX s23QF94680eh96h/rK336zJiBHZPeKpL1SlwcmAmhkejBvEvTYBy2DbmPStGcX8tEva4 ZgMrxLXpygNRpoBVKPEt6p/UXd3v3jlMsRcs0z/MkEDpH5tKKNNhMPv7DunN6afOPaKU 02mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=J9SQjbBb; 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 q81si13147160qkh.153.2017.09.12.09.33.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Sep 2017 09:33:48 -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=J9SQjbBb; 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]:36916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro87-0000vn-Jc for patch@linaro.org; Tue, 12 Sep 2017 12:33:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro05-0001fs-77 for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dro04-00071M-Br for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:25 -0400 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:37513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dro04-000713-69 for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:24 -0400 Received: by mail-pg0-x232.google.com with SMTP id d8so22188704pgt.4 for ; Tue, 12 Sep 2017 09:25:24 -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 :mime-version:content-transfer-encoding; bh=zystXnD+mZxgtjbQyrl7Ree1MkecfqCccEKVNR08Hes=; b=J9SQjbBbLhNGJynCZXSNLBiv/YXhOUV0kKHO7NOHbltf/Y4pEAmKwDnlbtUK8eCKr8 OQq/AxIh/tyJMDzt9nPceEQqj+w93Fc9VxA4YDtVzkp7GtJi8Wd4DYDxwZqH6aabGefT akuuegR4ReQoORJabG6gyJ5xhZZrqCjVNVtK8= 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:mime-version:content-transfer-encoding; bh=zystXnD+mZxgtjbQyrl7Ree1MkecfqCccEKVNR08Hes=; b=MOgECu9m7D/v2FE+O5aWBEWgtYANCprpDx9N2ZnN2xWDoFO+GCBp2VlzAYZl5WpsnN EeQPEBFo/6t9oT54urpXJtvjCJHPMBgc28BHKpfSI51Utu4HkTNpgFvNC2HLfZwnGZ/M 4Yx1Wzg6Cbdw1qXjCkd3IQysWj9c/frOlD1vfNCWsV5/dyyfvOtl1pGwb1na0XLJnKai kF51hxV2q7NNuPAUENraSHh9lnfzq8/Sr4v4yv7DKjktQfYmiTm5ReM19AIrqZj1GZxc vGu4fx6LBCicfs5I5BCu/XaRUkmRKpFYtywCVRKJWGw3uBS7ew9i/aAFVhzRWOHjSUf5 AX5g== X-Gm-Message-State: AHPjjUhjOgo3523Hn6swiEPgFRYFOEX9vdNtKNZ0snTTvQNNpQQ/Sxn+ YDczd3w6xY7S/jyiVza6Jg== X-Google-Smtp-Source: ADKCNb5pjA+fwekkjgrRUryAGelMEP9SkSyeB3tyAnzaai3IaNJvL5wAxNM8fGll1pMvRnUrP6HhBg== X-Received: by 10.98.63.140 with SMTP id z12mr15800243pfj.218.1505233523038; Tue, 12 Sep 2017 09:25:23 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net. [97.126.103.167]) by smtp.gmail.com with ESMTPSA id b22sm20382140pfh.175.2017.09.12.09.25.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 09:25:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Sep 2017 09:25:02 -0700 Message-Id: <20170912162513.21694-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170912162513.21694-1-richard.henderson@linaro.org> References: <20170912162513.21694-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::232 Subject: [Qemu-devel] [PATCH v2 05/16] 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: alex.bennee@linaro.org, f4bug@amsat.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. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg-opc.h | 2 ++ tcg/tcg.c | 3 +++ 2 files changed, 5 insertions(+) -- 2.13.5 diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h index edfdbf8798..b84cd584fb 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 9aea00d9b4..8fca202bec 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -754,6 +754,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: