Message ID | 1508343141-31835-12-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RUlpu27a"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yHHQG5X3Pz9t3R for <incoming@patchwork.ozlabs.org>; Thu, 19 Oct 2017 03:22:12 +1100 (AEDT) Received: from localhost ([::1]:45487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1e4r6e-0001q1-4Q for incoming@patchwork.ozlabs.org; Wed, 18 Oct 2017 12:22:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1e4qy5-0003Up-1a for qemu-devel@nongnu.org; Wed, 18 Oct 2017 12:13:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1e4qy0-00025n-V4 for qemu-devel@nongnu.org; Wed, 18 Oct 2017 12:13:17 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:45707) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1e4qy0-00025H-Oj; Wed, 18 Oct 2017 12:13:12 -0400 Received: by mail-wm0-x244.google.com with SMTP id q124so10973294wmb.0; Wed, 18 Oct 2017 09:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=v8+T0oUggxeVpxIEYFSesKXuNP4adeLsRtsAco2h01E=; b=RUlpu27aCCKB8I8+r36WTzKV5NmOIFx6Iz5VzxjC+76O3LRMSZ80+IXyuEChFSGpfI +e8fiXEuiE+yxfBVgJZfVanQDsJI9hU10q9FP/vqHUwSvxe9JHRWLz3ZNKpyenB2g5tf x/ozVIkZ+H8Ui9PWjqBlv7bW+L7BQPRDJeza7eQDptJY1Tqq7QzhzElKxPZWn8pM8m9X ZdpHZLeBHCJM0GoIAbULd+M0hAu+nJ/bBAcFVshYtg2k7vHLFCPJGfTU7zaiREdsaaui O40ddIZp23fdMjkNU7z2Iz3QxuzCbyv/NQaXPH/mQHeni/72rnu3g7oJjHcATBHIX+Ig 3kWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=v8+T0oUggxeVpxIEYFSesKXuNP4adeLsRtsAco2h01E=; b=rKtVQZdf4lDDtm8K6s19R1nBEob2oL8Cxbyy03e0xxw90/hMrR7n4ItJaBwUcPFou0 JEt5E03k8ipwba9DxMzlNU0QCyCaVIUFMlDv9DJ2Ka2EoVeNcekEJtlTDsIql6gUyopc P+Nf+bvPHhU7UXvZsE5RFsrHBF4QByAjRIwMh8dIcvdyGj3+NRyE5psdRrt5Na6iztD7 VzMu+sNm6AghcvwrafWEkcK08fI9AsIbiO7zJNsjRXqPfpWKZXjgJZ9YX8LV3cggc/vA ETjxvYLo4bfx+4oH4yCVuKdo7BJSzGNPBHsQBRhK8zveL5Sz9PlVcwmCgLMo646G2PYV cPLw== X-Gm-Message-State: AMCzsaXjrM9sfcfTZUdl1XKoWZPX0RjMRp+cn0q+kPNJyVDv7By0VqX3 yOhQ2yLHZTfhNGxgyQyyElLMPaJG X-Google-Smtp-Source: ABhQp+Tn7aCWLkkw9vqh2V9GNguCX2uGcV4KM/kOq1txbsGyiglMep9CHIjxfpzh5NdFYg7nf5goJw== X-Received: by 10.28.230.216 with SMTP id e85mr7775381wmi.86.1508343191503; Wed, 18 Oct 2017 09:13:11 -0700 (PDT) Received: from 640k.lan (94-39-155-245.adsl-ull.clienti.tiscali.it. [94.39.155.245]) by smtp.gmail.com with ESMTPSA id 69sm13436794wmm.2.2017.10.18.09.13.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Oct 2017 09:13:10 -0700 (PDT) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Wed, 18 Oct 2017 18:12:03 +0200 Message-Id: <1508343141-31835-12-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1508343141-31835-1-git-send-email-pbonzini@redhat.com> References: <1508343141-31835-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PULL 11/29] nios2: define tcg_env 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: Marek Vasut <marex@denx.de>, qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/29] checkpatch: refine mode selection
|
expand
|
diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 6b09618..54fbe89 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -948,6 +948,7 @@ void nios2_tcg_init(void) int i; cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); + tcg_ctx.tcg_env = cpu_env; for (i = 0; i < NUM_CORE_REGS; i++) { cpu_R[i] = tcg_global_mem_new(cpu_env,
This should be done by all target and, since commit 53f6672bcf ("gen-icount: use tcg_ctx.tcg_env instead of cpu_env", 2017-06-30), is causing the NIOS2 target to hang. This is because the test for "should I exit to the main loop" was being done with the correct offset to the icount decrementer, but using TCG temporary 0 (the frame pointer) rather than the env pointer. Cc: qemu-stable@nongnu.org Cc: Marek Vasut <marex@denx.de> Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- target/nios2/translate.c | 1 + 1 file changed, 1 insertion(+)