Message ID | 20171010005600.28735-3-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3168619qgn; Mon, 9 Oct 2017 18:01:05 -0700 (PDT) X-Received: by 10.200.38.3 with SMTP id u3mr17493681qtu.257.1507597265206; Mon, 09 Oct 2017 18:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507597265; cv=none; d=google.com; s=arc-20160816; b=WhvLMkuLzS6OYfMUkkXZ22QQEzIWS49lb5svAsKFpM2KoaN0LoSaVhKF6K9TSlyDz6 iLdfvVxviogaWaKKaCAQ2wX+mex/zucKuu+8L2mUKlz74bbMEWn2kfhfP+MnIc8Lk/03 So9lmP1dHfRu49EyyykiTbucQ+UNnReC5sDCrddaENoJ+94UVQYPeJZ3A2M4040LR7Pm kPGIPkE0E3fI4A/YyjYs2aSTCNBzgJiJuUNn/nszS7Xi1BonFlA97JV+73ITwa5srqzq KoBiC7FCJk+jxbrBO1+Xkd2z/3OixdBaS91KWXQKKnGfzjQNWhaxw242Ww992h5JoDVZ 5DDw== 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=KEdDFsu0dgIBq7A4xciD9aK2bU0/9nupg/7xALq4LtMYOvNkJ5kT+JCFYMAjNji5LQ 4tgcLGoqOkl63I5MIngnoWL7S3+LGhjBk9ESrTWDsdG1wuUV3y/6nnE9i5CZEMVNr6J5 r+9MS1uA4ZCkCNaGK6Y4/1xsvY0Ivl+WMfkQ3tKSckqUgaWdJllYRCpdAOAi3dOKpTkq yIJaGybe+ulWJgBuVwwDP0i0mr0urgy4LamWResMTomRW8dlVLH5e5jRs4SNsUqDEizu uWcYKcR+SC82qyqVgb61VmtlnnbNa6MnSLuZcIyEoYNOdMCSvay4vWxSqRxSJ9FLgGLx 4HGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kp1BUMNE; 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 l66si3485848qkh.507.2017.10.09.18.01.04 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 09 Oct 2017 18:01:05 -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=kp1BUMNE; 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]:60502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1e1ius-0005dH-Rm for patch@linaro.org; Mon, 09 Oct 2017 21:01:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e1iq8-00029y-Ey for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e1iq7-0004H9-7u for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:08 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:43661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e1iq7-0004GZ-2U for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:07 -0400 Received: by mail-pf0-x236.google.com with SMTP id d2so12282526pfh.0 for <qemu-devel@nongnu.org>; Mon, 09 Oct 2017 17:56:06 -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=kp1BUMNE9i/d/XDGrsyr2iovJEuv2Y0dIw45muA98IwZt54z4nWywcE9j+Wcw3cogj HRF7duWiEVvEqHvZJoQxlEKCNqjiyfEkEimYYf198r6U5A9L05Zh57AM1WEToHq6J0Bs huLXBMQK/vz4qDphcJF7ScV+T6l5xnKtRh/R8= 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=aofAXop6s9LEr/bJmLzY2K4P+wOhSlMGEtMhtPnge9B0qIz9MsHZVwUMYdoPeKXDE0 JZV8cKaDy2645TnEQYAFwDwgLNM3pqDqh4Fr5cBBBNBfuflBv8TPe1sNTJezwRoXccDi YtEnLj6qIjgHI4xfMf0ya0QEwBJT1u1tahvn5sfPaY59SKDqEUoGABdJxbGYlkn186HP CcQJ+qUcwH2ItXP0+Nr7GnKw0W4AsYtP73KrK5SsNc0McyAr1BVhN5V8fcIYnA4EsCre uZLnEMkKkaEDj1EsQRl6Vk+hnw4d/4sHAeA87yRlIM8PA7FtrBMAYp1FbOE41ZQfqcHY GpwA== X-Gm-Message-State: AMCzsaV1Do0+Ej2buHOe1L+bzGcl6vuEqceH/VY2sFriRqqk3VTUjOKg Mt5VktLZsFL6riAMzbhu+mMv4pCMxjo= X-Google-Smtp-Source: AOwi7QAyPH4HiIH4oaUVFMKa7kiq6nzVOD6cn0zGWm7W4c1HJt4CI35/WL4LeJAtroDv8LPLVk4SjA== X-Received: by 10.98.26.203 with SMTP id a194mr8692474pfa.113.1507596965728; Mon, 09 Oct 2017 17:56:05 -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 n19sm17121368pfj.52.2017.10.09.17.56.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 17:56:04 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Mon, 9 Oct 2017 17:55:39 -0700 Message-Id: <20171010005600.28735-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171010005600.28735-1-richard.henderson@linaro.org> References: <20171010005600.28735-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::236 Subject: [Qemu-devel] [PULL 02/23] 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;