From patchwork Mon Oct 16 17:25:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 115959 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3954031qgn; Mon, 16 Oct 2017 10:50:00 -0700 (PDT) X-Received: by 10.200.3.8 with SMTP id q8mr3126823qtg.57.1508176200325; Mon, 16 Oct 2017 10:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508176200; cv=none; d=google.com; s=arc-20160816; b=YR+a0JMyvsdKd97K3kq76j2wUy6MHhDUYBSz+3/xQpqI3uYNsA5WTmnHqBcGxPArqS FhRm6vdwEBUdye+L7jXaVpEU+do4K8KimKXzm0GkS+Wf7APyPnN45pGEDxlpdXwFXpmx RWVXeVg9ZSNdA+dhceS1Siy54VXuPqXQ2Lt2lthp1eaOBNgnE5gDbYjXW7T4mZ8vdTNm zEaACRG/ZLjE4o44HZeeZSUyJ9HolSrgHavppITQfiL4ZuX8+CJh9XHzyquGpywJf0YF 4GGwzdlWnmggGrttUpwYiJhBFrp3SGNy+biIdq7YcAWBLkbWoBASbklHq2AO6ga9H7cw KuGw== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=+PJqDWICacH3Ja8M/ePqBFw43qxeA+TLf01qhiiXFnU=; b=JCC8TNAHOwL5qrV42lBY8SK8nrIxorraGzoEZaKSxtkEGadMLtH7n+ZRQ7ElM/Qbjt YXGB6jQVcYIHKQNQPzfOQ6uOv3VQ1ZNBt7uveslm3kqD1yxzu9oN3mz6abtxrNBfzoaw k+1zSNavs35FC3IQpinCtVPKZQhA5C6tVT4t+AO+txWg2JjxbE6PltlbZXfmyTq2FCWk 7jrOJxtB8M/M3iKDEMD8JazO+hnMgaKUp8UZQJtkl494OeIdkDY3AUDSGunSxqNd3rBQ H1uNZbUQq/ZxA7TZ0VCzAbnXVW6531PEKJYr6RELURj3fOhPo0F2r6gVag/01iFI1FXb V80A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bRDrSUTz; 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: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n17si453525qki.236.2017.10.16.10.50.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Oct 2017 10:50:00 -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=bRDrSUTz; 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]:34387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49WY-0004e5-8V for patch@linaro.org; Mon, 16 Oct 2017 13:49:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49A2-0002EZ-9T for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e49A1-0003YL-Ij for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:42 -0400 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:52539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e49A1-0003Xq-CZ for qemu-devel@nongnu.org; Mon, 16 Oct 2017 13:26:41 -0400 Received: by mail-pg0-x22f.google.com with SMTP id a192so5918766pge.9 for ; Mon, 16 Oct 2017 10:26:41 -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; bh=+PJqDWICacH3Ja8M/ePqBFw43qxeA+TLf01qhiiXFnU=; b=bRDrSUTzD/gW348V3IW+efd2IuzIM7CbOxXtEMgGSkJTo0vXSxCpnVRzLsbsxOcSDs yPZ1rw32wsQQJ7e3ePEqzXhJR6m9oWjDI+Ut1dav8RtsJKKr2Uyt4Z5Szv/rmpKHqZSQ 8QlukEp+2vJ1URxIsk8DTUnqNJjLUWjYU9HO4= 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; bh=+PJqDWICacH3Ja8M/ePqBFw43qxeA+TLf01qhiiXFnU=; b=tRDc94irGJgpVOrdsvSv+njpCZjx5aOsbrSqpc52Xtcv8BoSNfiT4yCgzqaPaz08LC OWxipnK4ozthKntvi9P9bBi1LTQfH9PnsIMkkGySyRqgTQDqLQkE4Z7bXfl6GTzzMzNL s0KlfmHq3C4hlybxeWdgbOQAuSjUUr0P9guulgQfbbq+iOFjJDbZcjNUZJwtwywvW7nE aD7YhJv/XjlTKmdMB5a40oo0VJj1jUJcN4+4jW4nesPXGUn8KQ4sQTEHIdv0UGi9q8qv TDjnFPSj9v+lFA7gbOIm7StdcE1pz2ZB4u7MAEd8C+Xzqa4MpKarsrdcLs64KjjkFQ62 MBow== X-Gm-Message-State: AMCzsaXkTTIz0lEyYlcGDYgf486xqQOvPL0MwZte5q/yPChk8cK5ZPIO 0qSLTbxnjtw0SnMMgeN4jZSk+i797+M= X-Google-Smtp-Source: AOwi7QCod+O+KrWjwE4a4T0/KJdPeEdoa5TKryh3PhQ5wmPfx+NNczlbV5nFLq9cW55wTRLfiFrG3g== X-Received: by 10.84.194.131 with SMTP id h3mr9540973pld.352.1508174800263; Mon, 16 Oct 2017 10:26:40 -0700 (PDT) Received: from cloudburst.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id i187sm5594249pfc.96.2017.10.16.10.26.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Oct 2017 10:26:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 16 Oct 2017 10:25:38 -0700 Message-Id: <20171016172609.23422-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171016172609.23422-1-richard.henderson@linaro.org> References: <20171016172609.23422-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22f Subject: [Qemu-devel] [PATCH v6 19/50] target/alpha: Avoid translate_init unless tcg_enabled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cota@braap.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/alpha/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.13.6 diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index b8a21f4e01..b52ebd7356 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -260,7 +260,9 @@ static void alpha_cpu_initfn(Object *obj) cs->env_ptr = env; tlb_flush(cs); - alpha_translate_init(); + if (tcg_enabled()) { + alpha_translate_init(); + } env->lock_addr = -1; #if defined(CONFIG_USER_ONLY)