From patchwork Thu Jan 25 05:46:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 765935 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp2456201wrx; Wed, 24 Jan 2024 21:47:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4qWI89x3QFzh/a8d1M8LGtPrW/J/J2fftZiDQbMUb0xX9VnLWC/F3bhijk1aveURn3TQJ X-Received: by 2002:ad4:5ce5:0:b0:681:7ae4:bce3 with SMTP id iv5-20020ad45ce5000000b006817ae4bce3mr549122qvb.128.1706161664944; Wed, 24 Jan 2024 21:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706161664; cv=none; d=google.com; s=arc-20160816; b=Q1A/CTMq7UehBndE/2NXtfMn7wo+Pw78qNjyQsrwCYrU0YFeqpsrraIx2H3Zmyq0XQ /7zxqmG8vRiFljviliQbnCI0h4zaEoMaBeGC6bpD3mu3PKAyTTTqFrgKC/1dIHLT5rkt Ej2dENkl9+kMEctQHfzyWFopGv9nAm8liqclLt84a62Tmz3kv3gCNMRYMDqoGIV9VbNM 3B5t9SilBkgy5B/oQbRlFgkP0I8T5euVGuYEjMxl0Gc32g9OCPCuDSPhNNXkqnBF4emj 6JJcBTITTegdyGMDJzJgYSoYnqIeH93ktlaTi3A0CUBMLhe4BOmiiYjc78ne3+FviVli OY6A== 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=1YhPWyC91/ZoF+G+aVXM2Nb81LOfH7Ct4OFLJMJHbq0=; fh=vc3ketqcBesVEenIlg0vbHcSP7M/GhvjFrsk8EgMEqc=; b=AYDVYUls2FvBFSCkdO2Ge2rmmJCP6Sg2s45tFgka0kSWYIpct3HF+Ls4eAkrY5X/bi u2ZkJrdfsaGEBk6uYTY48hZLs2RH0lGavRoCyTw/8uYmCWHli9/FwIAtJ9NxUG+AYibr 2folH7j1u5N7KekL4HjeTdA0l94YpDePvV5rYo7mznRvlmhZV8UatF7mXXpR/97YPYSt cob/SiLRpdrmZZLRfhaL1KcVpznxYS4tODodS5kiRuDAQeaBk1xhjCtEWh+02MPEPPm6 3ysyuHRR71scroT5jV3XyOhWAloNgbfZ3tcnxjFj0iwaIrRXFwu7SGHzDc6aLewZ3XX2 Y3GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lE7cZ+tS; 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 e16-20020a0caa50000000b0068197b8c045si11520897qvb.461.2024.01.24.21.47.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2024 21:47:44 -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=lE7cZ+tS; 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 1rSsZj-0007pr-GZ; Thu, 25 Jan 2024 00:46:55 -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 1rSsZi-0007pX-8r for qemu-devel@nongnu.org; Thu, 25 Jan 2024 00:46:54 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSsZg-0008Bs-Jl for qemu-devel@nongnu.org; Thu, 25 Jan 2024 00:46:53 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40eccf4a91dso9144015e9.2 for ; Wed, 24 Jan 2024 21:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706161611; x=1706766411; 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=1YhPWyC91/ZoF+G+aVXM2Nb81LOfH7Ct4OFLJMJHbq0=; b=lE7cZ+tSYh99SwXHQvvviK700CjV2y9Yh7mBE/hcBQ5ohjCQm+5NnkFwSZTqeXMHOc AJaxo5+MT4KZhWMcMSreL2JI6FMOdka/a3YPeisFWEFWxHHLMaxzwVpdaIGYZVXUvuPB BvZa/odiNE8vstXVZeHsRAX9ozE6HKj2gt6jXno0AY4FEnwigZmG6E4dk8QgICgAitRO plahEzohegurcVoBpynnnQVPERk6jB/qIsyWcXzu09VJkAXkwE5TjFWOwBBSFxjxZa6i larVLzaL5h/gSt7yrLzhtcliYeZ5cAMmWs3LDlQ7E2n6yc1S38H+/F87L4c0Q2dDfdps 0W7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706161611; x=1706766411; 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=1YhPWyC91/ZoF+G+aVXM2Nb81LOfH7Ct4OFLJMJHbq0=; b=uZ0qpKgr54gWvSYWLQ/BBZTtGE09p8KEy720sVnNOn+mguIVISIxm//E+E81Bae/RR ICTi15efPf9r0hQ9/pLmV9l8340JV7wK9eoc5pV6XXD0sAOyLV2dngi63p/hd0fLtC79 +OdusxJL9j4D4O65j00PCXZaU+vRwgjUEiq+06ZmaJM67fuO1+sSy8y1KO2CxZy6hL/B UGSlWO+shjaiVx1Ju20R0GOyeiT4onIoEY8DFb++j8+nFU+Bs4nBtOZ+8fl86p3SGr6+ wzqi4aULV3KraTe5z/6GRaedvn4UEpyrZcAn/13BryO3zGWQATUMfEmf8xG1ZneEk6mR Dfjw== X-Gm-Message-State: AOJu0YxhFfsbZHBAmoTCI4bXyvTtd7hGGhUjbI0Mk8m6pg0n/Hs8wRLU EeutYMpA4dy+FRLsVnVg6Za9dyt+z5nPod4Iqnai6hSAbkNZ0RXXzAlcb2CCxngWRBEyq003q9D R X-Received: by 2002:a1c:740d:0:b0:40e:55bb:a0b8 with SMTP id p13-20020a1c740d000000b0040e55bba0b8mr151428wmc.157.1706161611046; Wed, 24 Jan 2024 21:46:51 -0800 (PST) Received: from m1x-phil.lan (lec62-h02-176-184-19-125.dsl.sta.abo.bbox.fr. [176.184.19.125]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c4e8700b0040e4914f28dsm1228615wmq.18.2024.01.24.21.46.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Jan 2024 21:46:50 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , Paolo Bonzini , Richard Henderson , Ilya Leoshkevich , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v6 3/4] accel/tcg: Remove #ifdef TARGET_I386 from perf.c Date: Thu, 25 Jan 2024 06:46:29 +0100 Message-ID: <20240125054631.78867-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240125054631.78867-1-philmd@linaro.org> References: <20240125054631.78867-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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> --- 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); }