Message ID | 20250117182456.2077110-39-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp845428wrb; Fri, 17 Jan 2025 10:34:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU9tQhJMGlR3/SbfboAVt0p4OyySDl5ntF+idFDBsUkCZD+xN3BVgzFWuBaTc2xzwsHthb/OA==@linaro.org X-Google-Smtp-Source: AGHT+IFHhEMUhIIQRUOVhxLq0Ehlm7Gp/dO5q6YBgG4fh2oIc6ZJUilwU8HYmKnJwiTpShQwRVcW X-Received: by 2002:ad4:576c:0:b0:6d8:adb8:4012 with SMTP id 6a1803df08f44-6e1b225054cmr59140026d6.45.1737138857625; Fri, 17 Jan 2025 10:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737138857; cv=none; d=google.com; s=arc-20240605; b=B9kTheSmrgvAik8WvitFtMN5Gp7Hw2wDDzBQb7FrTgp33wK9ED7bFizpD9MUWU9UMM NMVuK3RsetMoeY69iAG+FFy2Kj0HinCEiX6qjTpRfVHFsLnuNOex0GvXrCEIEqiBBzX5 MrQ/YwGiDXDqt3gUvKQSm40J5TX2++wfYkU38p8bdHFAXC/w8GeNhPzFAjPG8Rsgd303 4W8CCOD5wDskLl0CEp2MmmcMPIc5dISujo0JYUWTXBafg5D3Tc4/uaHoJxdsGoL85lLx C4CD6NIBSlDfG6Ccz4cUh7YHoFbOb+cVGlJJsNOhvc9gpjl7W6/zMQgVXvYfkfiEbZSt 9C8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VP0y8NpW/X+aOIiXkj/XmIYJ8qwvnfqBp4uvWUSussY=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=knuWEqQWrI71VUX4rx2zzOxpFvNqd+e3etArR0fKKeKtUYTTyRSEUFLSU/5tFY3gwK 9myRKZgU5kV6ZwDhZsk5KpqHMAIRs+UAwkgKrySX10XKXOOz2P5pQt/c9jj+NKJeE9Rn z2HmBFAaOl28m1XcFUsAMqkPrceY5E0L0GANz++bgmJomV1aLPsm8FYrihwze80qTiw3 Kqlr5nDGH4d/DL8JE9MLehcpeDrYqoxAYmykPJtbKewo9YC9Cihtkkjh3LubPy3Oc5KX axxBHPueuiONIqaVU/sRIl8kXfmhDdA96GJFRxUAiBeBp4p1qsgCffWQkZPL09oMLCiJ 8sjA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kakt6d6G; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46e1048a673si32304851cf.506.2025.01.17.10.34.17 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jan 2025 10:34:17 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kakt6d6G; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tYr2R-0004Ym-0C; Fri, 17 Jan 2025 13:25:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tYr2D-0004B6-53 for qemu-devel@nongnu.org; Fri, 17 Jan 2025 13:25:34 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tYr2B-0007vy-HI for qemu-devel@nongnu.org; Fri, 17 Jan 2025 13:25:32 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2165cb60719so46223415ad.0 for <qemu-devel@nongnu.org>; Fri, 17 Jan 2025 10:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737138330; x=1737743130; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VP0y8NpW/X+aOIiXkj/XmIYJ8qwvnfqBp4uvWUSussY=; b=kakt6d6GTdBxbVn6pw/B8pJKlL52PH7wC31G2gD2uixlo+J2mOtfowD7CLXyVrFd9i UuEbaeQjdIVbW+g3gavvIn8RkfTT855QWY66KMxUX/2HvIBhd3cGILYqOot83qUraXEn nTl4OyxDy9P1q9kUtNMIyptTmdKzcOAcqzfwfKst+5aPYGtgbhvtyyyt2dOpa+WMiNQr tDCNCUM6X9fzeFDuj0n2GOu7D09qCh8oP/McLOsQBEc+hrUR2SLz4fRBCggT7XkYh9Bm iZ+yv54v5YcJJvfqglR9rF84+Nx/mKAlG4JH6FMs7zN6WE8AaiaQFIzGML0PHt2KdJYl /geA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737138330; x=1737743130; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VP0y8NpW/X+aOIiXkj/XmIYJ8qwvnfqBp4uvWUSussY=; b=Y1gMyxGbD9LrjCpZgrFs7Pcn2UWiVqt1zC96DCN9wqppBPi/PA/3bFmqZdUet8aBqU ihgrWLVVc2yGV+N2Qa5bTM3UdumJlqxko49v5yQKUaJ6HHj3nvUReOvgddBFXshqOwJK uFFgIobFbRfXCZ9DH3xjU+Hq6dppQm6ocbA32gb888ZaWnj0YI6fwfoWCSGjgnmFrHwA Qm1siobBaKPZyVqvG8sU1viyGcKKjiNcI3uRaDkk7NbQ7tEQWuls7qaxRGSHuVu3lsys MtAZDrBGI6RxbiM1OiHsnBQQz5gmJpM1up0EZnKspq60uAlAg2C77DVyPG8n4VHWhb8v oOEQ== X-Gm-Message-State: AOJu0YzUyffIuKENXRoHbEMorlZfjDq7D3Gl9TP/F0XcmxiuN9N2ueLR 3+HQTA3TjyI5/v/TbNWa7hCKcZeWmGFMEyYWr50k8d0QxeLIW2oef7AEz+6+aTeYzD2eIrEWM/u S X-Gm-Gg: ASbGncvqUskYrfInqe8VDYJmJujNjLmKHhSyju7am8z+nnAx1g6JJdveriKAeQeDySc 76mOu/dqPN79D0Hl5E+F2rhvVKDUnwACIgEheuhm8PYPuAjbkTWHiMfOWGpIHt/MnNE/C1UpkrG Pd81+JrGsGs25db44Jt2pGqlbPs86PjcNPosAEEm3Zqlzxtae+YFARDzvwzNz7pfxyCf6v1mb6q EdHS8cKJf3qvANMUfR/EofMWPAnTLL/N92t4oCIZt/OhSXtWBRd0pI+9hk6t/jJgOIY/vkDgZr1 swtmCHdOdCBVIEE= X-Received: by 2002:a17:903:2447:b0:215:8ca3:3bac with SMTP id d9443c01a7336-21c3540278dmr54210745ad.16.1737138329848; Fri, 17 Jan 2025 10:25:29 -0800 (PST) Received: from stoup.. (174-21-71-127.tukw.qwest.net. [174.21.71.127]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3acccesm18879005ad.123.2025.01.17.10.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 10:25:28 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PULL 38/68] tcg: Constify tcg_op_defs Date: Fri, 17 Jan 2025 10:24:26 -0800 Message-ID: <20250117182456.2077110-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250117182456.2077110-1-richard.henderson@linaro.org> References: <20250117182456.2077110-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/68] disas/riscv: Guard dec->cfg dereference for host disassemble
|
expand
|
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index e28894c57b..a4630e44bc 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -716,7 +716,7 @@ typedef struct TCGOpDef { uint8_t flags; } TCGOpDef; -extern TCGOpDef tcg_op_defs[]; +extern const TCGOpDef tcg_op_defs[]; extern const size_t tcg_op_defs_max; /* diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c index 0f30e5b3ec..e98b3e5fdd 100644 --- a/tcg/tcg-common.c +++ b/tcg/tcg-common.c @@ -26,7 +26,7 @@ #include "tcg/tcg.h" #include "tcg-has.h" -TCGOpDef tcg_op_defs[] = { +const TCGOpDef tcg_op_defs[] = { #define DEF(s, oargs, iargs, cargs, flags) \ { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags }, #include "tcg/tcg-opc.h" diff --git a/tcg/tcg.c b/tcg/tcg.c index df7c4dab88..32975fe298 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3364,7 +3364,7 @@ static void process_constraint_sets(void) static const TCGArgConstraint *opcode_args_ct(const TCGOp *op) { - TCGOpDef *def = &tcg_op_defs[op->opc]; + const TCGOpDef *def = &tcg_op_defs[op->opc]; TCGConstraintSetIndex con_set; if (def->nb_iargs + def->nb_oargs == 0) {