Message ID | 20171010193003.28857-3-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4114428qgn; Tue, 10 Oct 2017 12:30:38 -0700 (PDT) X-Received: by 10.200.47.169 with SMTP id l38mr13544336qta.272.1507663838815; Tue, 10 Oct 2017 12:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507663838; cv=none; d=google.com; s=arc-20160816; b=aElyjHGXzviRJL7RyPOyZ6BkDgS1CXQmXbSro8L4N3HFfM2tn6UH9Ltl5Z5aes2iGL OdGxK/UQ4W74Yn4Tu0vIBtFg2HQmOPpc1Ns4MKRa+W7yasSbR9vG5li1pqv6oqR4HwRH bocwu1EK1QgG34neky+qVFlATfhE5xdP84ohXMW321XorI/zx12JGio4IqdVErjAAZnN LxgfChkipM4c1bO1W3i2Z6Wam14Dpt+YAUivk/zoGc7t39SSdK1rHYCha/ZKLvxVAQGg Zu9g0MVYvMhmYaDgF+lGVz/gHVMoWE4FQ4iuzUCAVRH0ElMh3ftgp+asJNWKstduwO/l kI/g== 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=uWX8ltUJ41jzpP0mhxc6dOVFBO5YtrjkEa7vnTfdaYc=; b=whRJzgTuX+0tpNuDKUzK6EzK9kagFLwMavrETOOIOZwukNo8oZNxU6srNtBzUwyEE0 xy691UDre0fnJxkGoFxS1VB8rJ61/KgbAVtzk8GGg5lYlnN0Dg8pElc9ZN1csgNBZuRQ C6DINwTqQVrmVpLan1pyzfKM70vbhBH1M8zYT9LcRbnp42OAGqCBtmjtpP/JsdhY0unR 7d9S7HyXtEPnRyDCZWpQ0YtzdXkeXrjyWaAZGiVOLbFG7EZWdGyGnIhUWTnPRQMgOfhw rP2haiYGFPXzkKbtsj5QwELaKpy0yF4bFLWqLAiwYckrgu2mO48Now/AZAJ89L9wHtGa JpZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hNLSzppT; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c3si4001746qtj.15.2017.10.10.12.30.38 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 10 Oct 2017 12:30:38 -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=hNLSzppT; 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]:36798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1e20Ee-0000X7-MH for patch@linaro.org; Tue, 10 Oct 2017 15:30:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e20EG-0000V3-Ji for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e20EE-0004v2-Az for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:12 -0400 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:48756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e20EE-0004ui-2U for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:10 -0400 Received: by mail-pf0-x233.google.com with SMTP id b79so5987003pfk.5 for <qemu-devel@nongnu.org>; Tue, 10 Oct 2017 12:30:09 -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=uWX8ltUJ41jzpP0mhxc6dOVFBO5YtrjkEa7vnTfdaYc=; b=hNLSzppTauUp5GpmeIAY9Zpm1R1FY3n381q7DMTOKjmyiwcidcg7JSBRFIhmx3MTpy QlcUBBbrSFlJTdrJZy19Kub4TihZQQD6KGkxgTw8F8zr9QdaFIh9Q0kSsxpahQiQL1Fm M1NOhQsWMr3k4prTfDip3qNzCALJR82dwL2wE= 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=uWX8ltUJ41jzpP0mhxc6dOVFBO5YtrjkEa7vnTfdaYc=; b=iL6dm3aIBDIEv/A89rT3IdnuaLUNmShBkmbJjQYHMkFj+eWjYUpXSO9CGd7zXu1xKL B93gcaFqevsm+jQzia/NDrq5gs5Z0IZRvVhYTJD12byGJUCcl+va/pTsOBpWCQlgR9ZK JcnnqJRRZBwTqeNLDYYSXy26+xjLhc5P59gSAsvuHYtZFQWho8t0DU0YE2Y0OSGw244S PDetkodSH4DsjeGmNAJhXC30A13sb27A06riFeMkMJYWmzpqqlfqhBKKpZysGC5dfIKj CMQjL9BM1tX70zQl7Dvh9GQq5oEOYAD9vD9hQRb6AOqSXFnGTYgqzpRdigsp8wvfQJxm wJ2A== X-Gm-Message-State: AMCzsaWaAgn0eTjOXLpXtmIXoRerK6HF0ApUIS66CnV4i43yKoAALv3M rMV7ecFiyzP/8mhC86T7MqwJLpUuEzY= X-Google-Smtp-Source: AOwi7QBDyVx3dTSEOSWrmNeczOmzRrkXM/YmiMtjYsPiYoCP7KUjOq8I0WTMY4R/jnIW2hlzG1Mu+g== X-Received: by 10.101.90.133 with SMTP id c5mr13240549pgt.441.1507663808784; Tue, 10 Oct 2017 12:30:08 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id r22sm19859788pfl.15.2017.10.10.12.30.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2017 12:30:07 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Tue, 10 Oct 2017 12:29:45 -0700 Message-Id: <20171010193003.28857-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171010193003.28857-1-richard.henderson@linaro.org> References: <20171010193003.28857-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::233 Subject: [Qemu-devel] [PULL v2 02/20] tcg: fix corruption of code_time profiling counter upon tb_flush X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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> Cc: peter.maydell@linaro.org, "Emilio G. Cota" <cota@braap.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Queued TCG patches
|
expand
|
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 6b5d4bece2..b3bfe65059 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -1300,7 +1300,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, #ifdef CONFIG_PROFILER tcg_ctx.tb_count++; tcg_ctx.interm_time += profile_getclock() - ti; - tcg_ctx.code_time -= profile_getclock(); + ti = profile_getclock(); #endif /* ??? Overflow could be handled better here. In particular, we @@ -1318,7 +1318,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, } #ifdef CONFIG_PROFILER - tcg_ctx.code_time += profile_getclock(); + tcg_ctx.code_time += profile_getclock() - ti; tcg_ctx.code_in_len += tb->size; tcg_ctx.code_out_len += gen_code_size; tcg_ctx.search_out_len += search_size;