From patchwork Thu Apr 19 11:21:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10349653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 60485602B7 for ; Thu, 19 Apr 2018 11:24:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FC5328994 for ; Thu, 19 Apr 2018 11:24:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43D5D289BA; Thu, 19 Apr 2018 11:24:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E31B828994 for ; Thu, 19 Apr 2018 11:24:24 +0000 (UTC) Received: from localhost ([::1]:39915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f97fs-0007hu-5l for patchwork-qemu-devel@patchwork.kernel.org; Thu, 19 Apr 2018 07:24:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f97dG-0006La-Ox for qemu-devel@nongnu.org; Thu, 19 Apr 2018 07:21:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f97dF-0008E8-Rx for qemu-devel@nongnu.org; Thu, 19 Apr 2018 07:21:42 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:44713) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f97dF-0008Bj-IH for qemu-devel@nongnu.org; Thu, 19 Apr 2018 07:21:41 -0400 Received: by mail-lf0-x243.google.com with SMTP id g203-v6so242069lfg.11 for ; Thu, 19 Apr 2018 04:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kTleqyN7EVOlfN4nzHNmcfkK34VwD8kpV4Z7EWYNq18=; b=LCA9PMY79dxqiEv77oh8VjJf+HUigHdiOPeFj3OKqxe/gsl7Ys69+KoIE1lvNC3T4D 5IHSqznscQhl+xUcg5M2fqIjYRcyFRapyoVW0qiu7UEIdCttCcHDan+JEdHTDgTMxggS R2BJk5YmBpYK2466lskJG7alrMnBAJ88lFsWvMGg8+OpaY3Etj8/UGzIbVH1afpFGPln qcj2lkTSyIQJVyJ1Zz/SvqqccljwRZLRpNykfS4fHdF6iFZsUEBsB6McuT9BXF2eDGNt 2m4COOyuMEL0yy9LFBfKxdeEaDjs/Nv4G+mEp2+kj17CoenXEuSARBnuySnjhbdYrLeH tQ/w== 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=kTleqyN7EVOlfN4nzHNmcfkK34VwD8kpV4Z7EWYNq18=; b=mN7gLnZEO+UssMsBLhZW+9i4PRwp2Aj7dIuYyPLu4dM9DtAIeTLX0YhigKEWkeXV0M JTM7ozS+EuD/z9CakxSFUYoz1m/QvYcYZxpdUQEUuDVmrY1N2zxnRu6Km9f9iG2/FlVF txJ2YxXZg+qtt7+YGH/uWD4whTCyBjM9SxMpNyTCuIl84AZFw6xq2MIgMNmoX8+4wBkt tLMzIHuSgjW/NSwElPi/XrcpS2Is+nVkS67SwJjMaLZ8FfFsuqvWBxti5+Yft4zajTVk ij7NiU2gT9wkFSJMiii0Eug36zGBXXiqLJ3wqqf6P7Lb5YipgBoKx/hBegYkJZxyGSru CGNA== X-Gm-Message-State: ALQs6tCK4VWkbIK+/oBlP0E8TXkOs8c4FZCbuKg2lEhtT8AJooLon4T0 zabtUvND9U3DZlDRqCsQ2TwakQ== X-Google-Smtp-Source: AIpwx48ym74u9dQp2l+t/aLPnrqskAvmNgrG3yCzCX8X3EMMog/q2KRSW9d0CzJNfNi2euwuQc00NQ== X-Received: by 10.46.128.139 with SMTP id i11mr3961199ljg.97.1524136900053; Thu, 19 Apr 2018 04:21:40 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id o14sm551544ljg.52.2018.04.19.04.21.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Apr 2018 04:21:39 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 19 Apr 2018 13:21:31 +0200 Message-Id: <20180419112131.16932-6-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180419112131.16932-1-edgar.iglesias@gmail.com> References: <20180419112131.16932-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::243 Subject: [Qemu-devel] [PATCH v1 5/5] target-microblaze: mmu: Make the TLBX MISS bit read-only 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: sai.pavan.boddu@xilinx.com, peter.maydell@linaro.org, alistair@alistair23.me, edgar.iglesias@xilinx.com, frasse.iglesias@gmail.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Edgar E. Iglesias" Make the TLBX MISS bit read-only. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- target/microblaze/mmu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c index 8391811900..9d5e6aa8a5 100644 --- a/target/microblaze/mmu.c +++ b/target/microblaze/mmu.c @@ -273,6 +273,10 @@ void mmu_write(CPUMBState *env, uint32_t rn, uint32_t v) env->mmu.regs[rn] = v; } break; + case MMU_R_TLBX: + /* Bit 31 is read-only. */ + env->mmu.regs[rn] = deposit32(env->mmu.regs[rn], 0, 31, v); + break; case MMU_R_TLBSX: { struct microblaze_mmu_lookup lu;