From patchwork Sun Jan 28 04:42:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 767233 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp348277wro; Sat, 27 Jan 2024 20:46:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IElVHsVPCEPGwaLITBJ6G0MuEERjD6nt50yh6p/iQyYsEgiZbRqdJbeDe+Yz7gfnXSAVYw7 X-Received: by 2002:a05:622a:1887:b0:42a:8b5e:873b with SMTP id v7-20020a05622a188700b0042a8b5e873bmr2755508qtc.113.1706417198356; Sat, 27 Jan 2024 20:46:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706417198; cv=none; d=google.com; s=arc-20160816; b=NaeLFWXnMeAJytGhQGBucQQuPD7ga6IYQ89bBc57NbF4VxVor4452SV4qNhtzX6lg3 aXUjHtbgVu/b9yBBSR4sKvGXx/ua5RrtdJ1vYSWYv2zkS9iWk5La0izDQ50cYBq/D57W XdGYdxPl8xZ939SXcVPyJ/SH5O4hUNIsaIsz1NnIbUZp4ryjX2P/kyLHszJVXkMtwJiu CL4KndB9pl4pDHlL7OB58oufdS6by5Wie5JWx3iFNCkQ6zcHhknBY872lj1m8Camn+N+ B5d19sHvXQ9R65umXtntQnPKLdHGp6ATKKKNHrglLEViisb388DsD0oi/5zgBhcQj//3 vINA== 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=TByYFDCUWCaxnnHjASz8MJMk4paFqdDSnL+kqN7t/Zk=; fh=m3bIYSMZqCABEJVkIKLKf3tNf8TH8EKhZ9yqNwsZqDo=; b=MYvRe990Awdpq1xAkn8H/R4j9qMJJ1nNID2rcAMqNjcc+GZNMH9nfqj7IfVBqlXjti f7o2YfTQVVNpckf729IW7U1U/ImokLRdno4uLvn7bUfzA+WbgGdlNkqzdSwLpRbwDvVJ N33Q2YISR/RgdJnWawJpb2j//ihk6ydcYMDkWuTqyONMHeAa8mmdalvaZZGqLY3fwK2D pobgmlcuYs2u6Wg7rtV93uC9CGyxlJI8k2SZYpF+N4U1oMw+zLZW+pPpRV2/qzA2qN5E pvdqOIeBcEmsIS8zfGmbSqIzxreD+EtCt05JQpxEQCMR6WtJ2fx5lOZ0yM9ppo1koLRt rrFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eXVbQFpA; 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 w22-20020ac857d6000000b00429d71a9ab2si1485344qta.778.2024.01.27.20.46.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Jan 2024 20:46:38 -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=eXVbQFpA; 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 1rTx0i-0004qW-4x; Sat, 27 Jan 2024 23:43:12 -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 ) id 1rTx0h-0004q4-Bu for qemu-devel@nongnu.org; Sat, 27 Jan 2024 23:43:11 -0500 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTx0f-0004Ms-TM for qemu-devel@nongnu.org; Sat, 27 Jan 2024 23:43:11 -0500 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-59a146e8c85so791257eaf.0 for ; Sat, 27 Jan 2024 20:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706416989; x=1707021789; 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=TByYFDCUWCaxnnHjASz8MJMk4paFqdDSnL+kqN7t/Zk=; b=eXVbQFpA+LwlZFCaBQFGeO7sBbwOFpHC+n0fqfHlnsGsrCQorVgeKYt3/KczxMixdM wrGi1d7xPh+MwKQoMQ5pMDYBOFBxUf/fHe/PAInQdvqZbJJveiEITSnUPZ3mfoDbQyMG QCsjiT5ljWld1z3cHeLY7fQTlxMUlsFqlJ01CzyBYlP3YDsOcRdkf632C1oJjeS5j41m G2zo3xWKbK5bmPbcMmvEgHp8THlNXwMiAQX/+e9mZivYEZxn5/7bjvL0FMVtvXgmqYkO pDZTaWEueUb+0ANvDCulyAlqORr65MSCizDjhb5CC7z44OW4276hLB//cC4PibsgNKEb eYCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706416989; x=1707021789; 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=TByYFDCUWCaxnnHjASz8MJMk4paFqdDSnL+kqN7t/Zk=; b=UsSrDRgdVtNrp6lWlo+EOKnp8scB87+c2gHEgDQvkKLtn7oHST8quLMTHDaFlnMLCT MAErvj5zGoLJaVM/CmN+QK8AQ8+fKwYeTR+sMYPjo+JrLRk+NaQzfpcnYhcoR4MwzzSa SAdtyNUewBcEGJ4SKjM74JIlZBU8tpeuYAIfFTvi7ksTLYqrWjs9Z9Q4VHcixZI/AXSg 40N+Fld5kpTOMnJuDsfdcZGzuf+T4DcM69nWOXl9VDyd2eXaTA2kITowPcGWAkatsurC NoWpQSY0M2zI0CgQwj01snN0b/cMlO/L0hBcLBe1BEO5ZFGC/dz0eEVD9nBTdzpa86ac m2kA== X-Gm-Message-State: AOJu0YwFHCfr1LkDdYN6A3OzvA0g+ix0uNW9Ydq3zL6OznsnSvRus8qX yzFHDU7aspjK0EGMawzMDM33dzdETwCIxN9sOdevW070nkUY85YfiE4GmW6TwNTfzsW2h1OmVDY /2j3MGQ== X-Received: by 2002:a05:6358:7e9a:b0:175:cc50:56dc with SMTP id o26-20020a0563587e9a00b00175cc5056dcmr3369287rwn.58.1706416988777; Sat, 27 Jan 2024 20:43:08 -0800 (PST) Received: from stoup.. (ppp121-45-131-89.bri-pow-que-bras31.tpg.internode.on.net. [121.45.131.89]) by smtp.gmail.com with ESMTPSA id w24-20020a17090aaf9800b002906e09e1d1sm5631873pjq.18.2024.01.27.20.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 20:43:08 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 20/33] accel/tcg: Remove #ifdef TARGET_I386 from perf.c Date: Sun, 28 Jan 2024 14:42:00 +1000 Message-Id: <20240128044213.316480-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240128044213.316480-1-richard.henderson@linaro.org> References: <20240128044213.316480-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c35; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc35.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, T_SCC_BODY_TEXT_LINE=-0.01 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 From: Ilya Leoshkevich Preparation for moving perf.c to tcg/. This affects only profiling guest code, which has code in a non-0 based segment, e.g., 16-bit code, which is not particularly important. Suggested-by: Richard Henderson Signed-off-by: Ilya Leoshkevich Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Message-ID: <20231212003837.64090-4-iii@linux.ibm.com> Message-Id: <20240125054631.78867-4-philmd@linaro.org> Signed-off-by: Richard Henderson --- accel/tcg/perf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/accel/tcg/perf.c b/accel/tcg/perf.c index ba75c1bbe4..68a46b1b52 100644 --- a/accel/tcg/perf.c +++ b/accel/tcg/perf.c @@ -337,10 +337,6 @@ void perf_report_code(uint64_t guest_pc, TranslationBlock *tb, q[insn].address = gen_insn_data[insn * start_words + 0]; if (tb_cflags(tb) & CF_PCREL) { q[insn].address |= (guest_pc & qemu_target_page_mask()); - } else { -#if defined(TARGET_I386) - q[insn].address -= tb->cs_base; -#endif } q[insn].flags = DEBUGINFO_SYMBOL | (jitdump ? DEBUGINFO_LINE : 0); }