From patchwork Fri Jun 15 15:03:42 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: 10466803 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 70FBE601C2 for ; Fri, 15 Jun 2018 15:47:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6103C28DF8 for ; Fri, 15 Jun 2018 15:47:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 558DE28E00; Fri, 15 Jun 2018 15:47: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=-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 E81E228DF8 for ; Fri, 15 Jun 2018 15:47:24 +0000 (UTC) Received: from localhost ([::1]:47698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTqwe-0004ho-17 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 15 Jun 2018 11:47:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTqGU-0001m0-5n for qemu-devel@nongnu.org; Fri, 15 Jun 2018 11:03:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTqGT-0007CJ-9C for qemu-devel@nongnu.org; Fri, 15 Jun 2018 11:03:50 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:35982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTqGT-0007C0-1Q for qemu-devel@nongnu.org; Fri, 15 Jun 2018 11:03:49 -0400 Received: by mail-lf0-x234.google.com with SMTP id u4-v6so15111101lff.3 for ; Fri, 15 Jun 2018 08:03:48 -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 :mime-version:content-transfer-encoding; bh=o9kmceSO8XMrWXGmg8zHmSyxY8YWRvoxCYD5Vvw2P18=; b=N3ORqygiIWCLOpWsniR5/ulxfJalHMzSPnEHMmuJl4d1yJD2G0rVWy7VPV8EYlAT4/ Y7PiCR7zMdvdDEhDkJw7lmnSf4VbtWalTS8PYY9cWU7zY9Ab+quhGYrbszUPfj2JHQ/j 434UYnSAmALTOcv5Ol5kM+EMMV2xGkMtHJMYuK3R0CZMzs8dwXuDZsFlhCzLNlNnhOwK maEnCGOGLBqWDVOaCNHdZ0HaLfSq1XHWULnjhgDgWl3uyTC+lnh9cuELTHd1Q9di7lj+ ncNWU94vDQCHJv8xdh9e2xN7s3lpiYoyfJU4e7XIn9rnPhIM3gz+QeRxLXQghsngQia/ f6sQ== 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=o9kmceSO8XMrWXGmg8zHmSyxY8YWRvoxCYD5Vvw2P18=; b=iB8GXfLjo/HZyjbyOr39nWCNwTZTbE73vNvU+gHSx9BeyXiYHfJ88gV/Gg2mwVLYHD RT/ThsIj4hUh8YbGleKUIsLlbiEriY+m0U3ZTeA+kkRU03JWuZ7l1ZzDllpn1FaVClZK D8iFTgvBFI+4qhbIbtFPy/yvM6HBpGTusfCj+2Cja1cbCn5n0ZJHj6kBmURDRz7Nv6x4 mrdUX2m2WZdFPCGOqJpbhAmCL3fNDJACVFr601m0cdFDlQZERyKje9TlbkxpNcqZIdLY 7KJsg+BL4tlywTVSnW1Mw8StnqGdGYmK6sKLJWRmxqV2SD+D50xMx4gxPVeI68y1vvgg Lkkw== X-Gm-Message-State: APt69E1xP+Y7qTZfyTFE/aCBlZQDqMEesCBlz0ZjDdVZNgQOdJ5NbWce 0Eu5q5sTzAH0WZdBhHOPZlocYA== X-Google-Smtp-Source: ADUXVKJTPDUjrp6BRoUujXs/DDumJ9duPq82+D0igVItEvKwtMwjEzvIQPFz1Xcd/Ydj/YOaGuRUDw== X-Received: by 2002:a2e:3810:: with SMTP id f16-v6mr1702263lja.25.1529075027311; Fri, 15 Jun 2018 08:03:47 -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 y5-v6sm1546272lfg.74.2018.06.15.08.03.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 08:03:45 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Fri, 15 Jun 2018 17:03:42 +0200 Message-Id: <20180615150343.4937-2-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180615150343.4937-1-edgar.iglesias@gmail.com> References: <20180615150343.4937-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::234 Subject: [Qemu-devel] [PULL 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 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 Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reported-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- 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;