From patchwork Thu Jun 14 20:25:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10465267 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 01DBE600D0 for ; Thu, 14 Jun 2018 20:28:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5E0626530 for ; Thu, 14 Jun 2018 20:28:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D917B27DA4; Thu, 14 Jun 2018 20:28:21 +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=-3.8 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 78F1426530 for ; Thu, 14 Jun 2018 20:28:21 +0000 (UTC) Received: from localhost ([::1]:42864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTYqy-0005EA-OG for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Jun 2018 16:28:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTYnt-0002US-LZ for qemu-devel@nongnu.org; Thu, 14 Jun 2018 16:25:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTYnr-0006A3-KT for qemu-devel@nongnu.org; Thu, 14 Jun 2018 16:25:09 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:41736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTYnr-00069D-C8 for qemu-devel@nongnu.org; Thu, 14 Jun 2018 16:25:07 -0400 Received: by mail-lf0-x22d.google.com with SMTP id d24-v6so11380616lfa.8 for ; Thu, 14 Jun 2018 13:25:07 -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=p+b217Mls8oZCf/DyUUKaNN0Y2RWSSFUrqdGy7cYwDM=; b=F3GKRimZPm/acguMM4f93zGH84PmHZxUbrnpe3UBjkMcu7grV/Qr1Q9U+DNTdlvlvZ rw90tG8+V/ThZpX4pqgrgI+kt693cv1ekCkWNi5LPoBsfgPHA6kfdqHGJZlt1Hryd6Jb SX5egET9jZeHlbmFaYS8v1KOBpQ5zBXg8/hdOu/mXGB1v5N5Lznl1EqGt68WoI3mwY+N S6drCzmpokfM/HQ4XRdxCTY9OjaaTvIzU6hWKMv+GcHuMHRBYd96gNI/0AssoE1xZ8Vm vAnr8qYJ5Rl/fOTRbCcah2hGUUafhOTwJ5xmTjo5Rkm3gc8al6R5dEsm+fCJhBDJgTEG FgDg== 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=p+b217Mls8oZCf/DyUUKaNN0Y2RWSSFUrqdGy7cYwDM=; b=T/N9jpvLdt2bMwzXWh5ggsWkoIbu8vQh9g6xaQw2b4VIXfT0x7FT/1BUS2scxu/7oX aHaIC9y/6zdLkoJdz+ifgNb5oR2hiYWdTi0MwffQ0jt7b7CwZVVy3Fahscsazuw8NX9q HuuSX8OgAL60k/3dyIPaYYumH9lxZ/Q9JPpggzvhcjPO2At7graQnX2ldjPjp5vbG3kl iakXaD6QsXCfQTTyFKzIMZwh4i0Bx2B3fqAYkqLGjbjk1lbrnSkyRt+JF3LHkRf1SiMo J+2GAZ5XIIm+FmKj1eax+b7MdLO2EsNHGIVMzs/r3qYo6oK0wZIOXeVbeO2RnUmO7KEC mNsQ== X-Gm-Message-State: APt69E2YBPRFtGEP4e1ekwb20SCsLEy6mfm4qmh4EdFmTrGsNDU1ROMf 2p7Uijvu9jUDE0ZKAJtHU9P2ug== X-Google-Smtp-Source: ADUXVKIN6E2242Xbq2tOU6hJN6okj+qw8Uu0nFSJaXuucTpo7UjOBJESFtcBE+rUMHEOfc/MG8JuoQ== X-Received: by 2002:a19:920a:: with SMTP id u10-v6mr7237142lfd.33.1529007905857; Thu, 14 Jun 2018 13:25:05 -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 d20-v6sm1086652ljc.62.2018.06.14.13.25.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 13:25:04 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 14 Jun 2018 22:25:01 +0200 Message-Id: <20180614202502.668-2-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180614202502.668-1-edgar.iglesias@gmail.com> References: <20180614202502.668-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::22d Subject: [Qemu-devel] [PATCH v1 1/2] target-microblaze: mmu: Correct masking of output addresses 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.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" Correct the masking of output addresses. This fixes Coverity CID 1391441. Fixes: commit 3924a9aa02 Reported-by: Peter Maydell Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé --- target/microblaze/mmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c index f4ceaea520..fcf86b12d5 100644 --- a/target/microblaze/mmu.c +++ b/target/microblaze/mmu.c @@ -159,7 +159,6 @@ unsigned int mmu_translate(struct microblaze_mmu *mmu, lu->vaddr = tlb_tag; lu->paddr = tlb_rpn & mmu->c_addr_mask; - lu->paddr = tlb_rpn; lu->size = tlb_size; lu->err = ERR_HIT; lu->idx = i;