From patchwork Fri Oct 19 06:06:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 149231 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2911860lji; Thu, 18 Oct 2018 23:18:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV603o2sYh9zmNwaFqjD7zalpESemDepfmD5pwrczcVlMaQJmszHslTkjlbWdRbknux66of3V X-Received: by 2002:ac8:1c43:: with SMTP id j3-v6mr240818qtk.320.1539929905197; Thu, 18 Oct 2018 23:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539929905; cv=none; d=google.com; s=arc-20160816; b=oUqoftXIsaKLw9PXAKqBCyGB9P5tvHkEUMY9bAoYe1StGiqeOeCnAJ7Tpz5AR420oU yqmz3Ltj9SGvPwnzQ+flD03lFxlj0KuCSCLS8EGK5zAFkin0Y20edpeYJfI4kSZYiJhR 2GFEM7S6Rv1tFFwJ9mleY1qUDpmIGrMHjmK4VMis3wFPA/lgfvxSOV0Wi6G1C63RF2vc Uv4Q46CpaZ330RkYnxG+wxF1oT90GZ9s4kpVk0QmQwv+Z/OHmWIEGDI6LaVrxwoSfjEt 3NMxWGPF//tzDEy+f8xp/K5B0l4aoEY5QOElZWsB3lypnkIAPX58mNF7JRyK5Hrr+F5Z g1VA== 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; bh=iQuRnp6tSFYZasKkNBV6hIxMETb4h2l2cVJHyyzAdxw=; b=1KMAdawsp249m2wVFODhnjR47fmeSdnZEzTuSc1QMVAU8F/VdL4cKiFPePkymbVw+Z lmNNfhSSpoScKYt4B8jAumyyjmlGJSSSi5k+stJfvV8akN5zORqIaBUaQDmpcqp6/rN0 wqXQDosbRNTx6W6wednKQPElDSazK4EiJLfbIM8ca1yeNfaiY86SNjGGf5qQRluc81o4 44B8IxIdYnNHP23pvamYTJ4NBqtAWM/uv3D+T9/Uw8/0TJ2ggIAK5xwY83YOZQ53efts 2oN/v7ET1saC0vzeDLZ4wHQUxdp/wBy5TgFQN+8M2w1Lr8JLKuailofvnklSuCekNWqC /7Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YMJsc6bs; 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 h61-v6si323314qtd.117.2018.10.18.23.18.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 18 Oct 2018 23:18:25 -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=YMJsc6bs; 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]:47272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDO76-00067d-KB for patch@linaro.org; Fri, 19 Oct 2018 02:18:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNwa-0004FN-7F for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDNwP-0002Fx-Vt for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:29 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:37374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDNwD-00021n-U2 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:11 -0400 Received: by mail-pf1-x433.google.com with SMTP id j23-v6so16001238pfi.4 for ; Thu, 18 Oct 2018 23:07: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=iQuRnp6tSFYZasKkNBV6hIxMETb4h2l2cVJHyyzAdxw=; b=YMJsc6bsR5yT2OVpRgo54ClXprfa1GTTA0OdrlqvhDYX3aipg8eYTehVlrkjv/Idzq yq7GJnq95NCic5KAqi0x7aohU3WI5IBLvKYZ2yfYUr80aoMnnp9JTsVjytp1LnvlQBC7 q86VmSAySa8bO3/yCySCMPMv62q7fN8/q8qaY= 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=iQuRnp6tSFYZasKkNBV6hIxMETb4h2l2cVJHyyzAdxw=; b=DRJM0ChDqnOr1LapiUl9VX8fVV+VDNWeIlEh6WYbAfq1rU/wR+/ijhIqOxNpovTBh7 jeJ/zEifGqW+XChTwh51myKY9OixhWkbt86NIFNHmOeD796mq+56hAJaooSUjVZjM1Gs ISkDER1kiehzA+saPWcCiHso5eB0WEOWiaW9dhFpft1YtaQVbhFeoVo1sIWEBbcWRvCS V/3dDxXleYcuZQTlabWutEom/ykHMHA76wRVbGtZiMY0ctInfOP0ecgcm3MZDfTn/JhS UiQ1Tka5Tmcm7htLXg5OETjBmTAbYvfko2yFXcGAr3+hxx1TELuW0Sq2WSm4UTBLc7Fu QdqQ== X-Gm-Message-State: ABuFfoiVkEVWf/TCOjeAk/HsiEG2tsSU2zAfZhObZDEDOMn7k7jpIz7t KF8L+EslRBm87HtDXYCr4WGM3ozJX+w= X-Received: by 2002:a62:4ec9:: with SMTP id c192-v6mr33165133pfb.221.1539929228403; Thu, 18 Oct 2018 23:07:08 -0700 (PDT) Received: from cloudburst.twiddle.net (174-21-9-133.tukw.qwest.net. [174.21.9.133]) by smtp.gmail.com with ESMTPSA id q24-v6sm25609327pff.83.2018.10.18.23.07.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Oct 2018 23:07:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 23:06:42 -0700 Message-Id: <20181019060656.7968-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181019060656.7968-1-richard.henderson@linaro.org> References: <20181019060656.7968-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::433 Subject: [Qemu-devel] [PULL v2 07/21] target/unicore32: remove tlb_flush from uc32_init_fn 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: Guan Xuetao , peter.maydell@linaro.org, "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" As far as I can tell tlb_flush does not need to be called this early. tlb_flush is eventually called after the CPU has been realized. This change paves the way to the introduction of tlb_init, which will be called from cpu_exec_realizefn. Cc: Guan Xuetao Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota Message-Id: <20181009174557.16125-3-cota@braap.org> Signed-off-by: Richard Henderson --- target/unicore32/cpu.c | 2 -- 1 file changed, 2 deletions(-) -- 2.17.2 diff --git a/target/unicore32/cpu.c b/target/unicore32/cpu.c index 68f978d80b..2b49d1ca40 100644 --- a/target/unicore32/cpu.c +++ b/target/unicore32/cpu.c @@ -116,8 +116,6 @@ static void uc32_cpu_initfn(Object *obj) env->uncached_asr = ASR_MODE_PRIV; env->regs[31] = 0x03000000; #endif - - tlb_flush(cs); } static const VMStateDescription vmstate_uc32_cpu = {