From patchwork Wed May 1 14:37:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 793726 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:54f:b0:34d:5089:5a9e with SMTP id b15csp790975wrf; Wed, 1 May 2024 07:40:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXBETe5AyF7+MxB0ieohRRdjFqbkNjV58KEsAWzIom9ZWyff2rFqgsy8vlD3kbNnHyiKjc9/lvjFgYgn7g0B0I/ X-Google-Smtp-Source: AGHT+IE+OysYxg6mYpyNatqnsO4zgGqgCc93UaqVO9Ex9jvB8dAShB/xYVWhk0Vz0m707OJ+Mezu X-Received: by 2002:a05:6808:2cf:b0:3c7:4af5:728a with SMTP id a15-20020a05680802cf00b003c74af5728amr3373830oid.8.1714574402699; Wed, 01 May 2024 07:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714574402; cv=none; d=google.com; s=arc-20160816; b=G7fAEGnVQVRRmMfnz9vuaF7mDbAkbX1W48MT7uNIsGflWHf007DIt2mIuBPuYlW1bJ hWvS+zRMqb4xb8Ht1l2WpbgyGwIXvFhosBz61JLoZmWC/kLvzi9w9+ZpantnI/Ofjkpu lDsnyNJWJUEBqCHZubze5z7HFiuEa+QQuB/sk+EK1PW/3Vk/naTkcYYqZIRWDEx2prf7 /TKZwYUAIFhfi4CBCFTAPO8b9YO8X59peBBwqSO8N1pGxA8ck7TF7rv9gQolGQxhb29I bXcNhapUI8BHmg0PzJjtMi28NP+CDqAMt02avyxnHCAn9si6Kd3b7Bu2+oImPMtirRIi /9Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=QUzW5EpE6psTv3wNqcRJ2QohJfV0nsRef4r1zjcLMwE=; fh=vm85eyWrvOAHduw3sqEA+cYBqvHB7M0MHFcRJg7VWOo=; b=ZONlK+Rxtdnh/fKjGAYAfMmeMF6TosPCDE0m3bDqDWY/g/WgMOWYKyWy4WjWaLKPsL +F36FmNDBFEwwe4IsvbQxWfb0MKZ85+3wE9un8OXVYqOLDeaXrLnInzwBXzrXHun62mn CNrfpID/EnnP3VXK9Ls1ngIC59E1ulHSDZQW7jPTtRP1gOR3PCDft3uvYKX6hjlDMrbL umt52X1Huef++t8CIzeWaXglxAWrvFAbZZRgfTvSVhEnmLjsBX5Xnwz7trci+tNIlXdd 5/ulNXCiInNt1r2KP3BUFplpIwHRCQghPbwIf0+ZWdbutQCr2K+gaqWiH9wes2vO9G+X +RTw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7wVBdtF; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 10-20020a0562140d6a00b006a09243a2d6si18034002qvs.478.2024.05.01.07.40.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 May 2024 07:40:02 -0700 (PDT) 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=e7wVBdtF; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2B6E-0002lB-09; Wed, 01 May 2024 10:38:22 -0400 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 ) id 1s2B5p-0002hD-8U for qemu-devel@nongnu.org; Wed, 01 May 2024 10:37:58 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2B5n-00029n-An for qemu-devel@nongnu.org; Wed, 01 May 2024 10:37:56 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1eca195a7c8so4142935ad.2 for ; Wed, 01 May 2024 07:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714574273; x=1715179073; 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=QUzW5EpE6psTv3wNqcRJ2QohJfV0nsRef4r1zjcLMwE=; b=e7wVBdtFg43+oaXJphjrT4q2pWqM+9pGQmMKYGY4PLDaMZJkfHPcleEUuRmbU3EE3F bJZ9rbnTImOP2M6Eb+5mfOygjd22uDi6+lSUWm9icAjf5jiPQZ6Sts/eBLSycG2xAwyM iGiUvKiI4OTx343U215o4OJKcXzFy2tGc48IC/9kJ+ZwRCD3zzFmBUppGv6xrjSwWECW snmKSNRLz7M14OG2IHQr62o2cZWsyBp8+oA5gCoqoWEnH506Jte3oCqvEAUh0B8i1jj3 mp6sTRF4XmLtD/Y0MsS9e+A8aIvvsP+iq5WnWwwm7lxMSKSUFPcho7J1v+b6Vdzo4m0I v8pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714574273; x=1715179073; 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=QUzW5EpE6psTv3wNqcRJ2QohJfV0nsRef4r1zjcLMwE=; b=cGcFtZ3AsMtcdNrQkCMSf9WVQWQYJqpVApkOhxHRHbg8FX9t2sj0TBpaQEldOSapbb hJWt2O49gS7ltd+tO6Vj5SfUhPI7+uzBxeC6H4T1/vDd04eYmcbyHvGu4xdJxk5JL4dg vlUP4pl2hIlTkk6PZyfZzt2s/Z6GRP7Ugfqr27WCmRfPoBOnTKWGLS2qYXipJqZFXuFp WtRXLY2F3s142/QK8B/CNpmf/7ai7SNhgLBFW8qaC1zbNUE478ONX/AXbhCoGFaF8APz PKj3ivOUx+IToIbUsKYZdtD3mYoNFp2ZtFE6qufNr8MOv46c6a3YEiZ+cO7F9AkK9fhE Wrpw== X-Gm-Message-State: AOJu0YythhqtcOcHILrUv5u0My4g1lKbp3lCesqTTCt/4wvLH641JMDA 0xa/RA18x/u7QKEEkndgjQ6rcXsfj73vIQ9Vs+fJZevYgWMd6ono7ratlr2o3pIJUe4jkRS6bNm p X-Received: by 2002:a17:902:e892:b0:1eb:c3d4:349c with SMTP id w18-20020a170902e89200b001ebc3d4349cmr2785867plg.30.1714574273495; Wed, 01 May 2024 07:37:53 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id h12-20020a170902f54c00b001ebd73f61fcsm5751573plf.121.2024.05.01.07.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:37:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Pierrick Bouvier Subject: [PULL 13/20] tcg: Remove INDEX_op_plugin_cb_{start,end} Date: Wed, 1 May 2024 07:37:32 -0700 Message-Id: <20240501143739.10541-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240501143739.10541-1-richard.henderson@linaro.org> References: <20240501143739.10541-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org These opcodes are no longer used. Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- include/tcg/tcg-op-common.h | 2 -- include/tcg/tcg-opc.h | 2 -- accel/tcg/plugin-gen.c | 18 ------------------ tcg/tcg-op.c | 10 ---------- 4 files changed, 32 deletions(-) diff --git a/include/tcg/tcg-op-common.h b/include/tcg/tcg-op-common.h index 72b80b20d0..009e2778c5 100644 --- a/include/tcg/tcg-op-common.h +++ b/include/tcg/tcg-op-common.h @@ -76,8 +76,6 @@ void tcg_gen_lookup_and_goto_ptr(void); void tcg_gen_plugin_cb(unsigned from); void tcg_gen_plugin_mem_cb(TCGv_i64 addr, unsigned meminfo); -void tcg_gen_plugin_cb_start(unsigned from, unsigned type, unsigned wr); -void tcg_gen_plugin_cb_end(void); /* 32 bit ops */ diff --git a/include/tcg/tcg-opc.h b/include/tcg/tcg-opc.h index be9e36e386..546eb49c11 100644 --- a/include/tcg/tcg-opc.h +++ b/include/tcg/tcg-opc.h @@ -199,8 +199,6 @@ DEF(goto_ptr, 0, 1, 0, TCG_OPF_BB_EXIT | TCG_OPF_BB_END) DEF(plugin_cb, 0, 0, 1, TCG_OPF_NOT_PRESENT) DEF(plugin_mem_cb, 0, 1, 1, TCG_OPF_NOT_PRESENT) -DEF(plugin_cb_start, 0, 0, 3, TCG_OPF_NOT_PRESENT) -DEF(plugin_cb_end, 0, 0, 0, TCG_OPF_NOT_PRESENT) /* Replicate ld/st ops for 32 and 64-bit guest addresses. */ DEF(qemu_ld_a32_i32, 1, 1, 1, diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index fb77585ac0..d9ee9bb2ec 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -52,29 +52,11 @@ #include "exec/plugin-gen.h" #include "exec/translator.h" -/* - * plugin_cb_start TCG op args[]: - * 0: enum plugin_gen_from - * 1: enum plugin_gen_cb - * 2: set to 1 for mem callback that is a write, 0 otherwise. - */ - enum plugin_gen_from { PLUGIN_GEN_FROM_TB, PLUGIN_GEN_FROM_INSN, PLUGIN_GEN_AFTER_INSN, PLUGIN_GEN_AFTER_TB, - PLUGIN_GEN_N_FROMS, -}; - -enum plugin_gen_cb { - PLUGIN_GEN_CB_UDATA, - PLUGIN_GEN_CB_UDATA_R, - PLUGIN_GEN_CB_INLINE, - PLUGIN_GEN_CB_MEM, - PLUGIN_GEN_ENABLE_MEM_HELPER, - PLUGIN_GEN_DISABLE_MEM_HELPER, - PLUGIN_GEN_N_CBS, }; static void plugin_gen_empty_callback(enum plugin_gen_from from) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 0ae12fa49d..eff3728622 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -322,16 +322,6 @@ void tcg_gen_plugin_mem_cb(TCGv_i64 addr, unsigned meminfo) tcg_gen_op2(INDEX_op_plugin_mem_cb, tcgv_i64_arg(addr), meminfo); } -void tcg_gen_plugin_cb_start(unsigned from, unsigned type, unsigned wr) -{ - tcg_gen_op3(INDEX_op_plugin_cb_start, from, type, wr); -} - -void tcg_gen_plugin_cb_end(void) -{ - tcg_emit_op(INDEX_op_plugin_cb_end, 0); -} - /* 32 bit ops */ void tcg_gen_discard_i32(TCGv_i32 arg)