Message ID | 20190627152011.18686-4-palmer@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5925F14BB for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 27 Jun 2019 15:27:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AF9E1FE8B for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 27 Jun 2019 15:27:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3ED181FF0B; Thu, 27 Jun 2019 15:27:40 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA0DE1FE8B for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 27 Jun 2019 15:27:39 +0000 (UTC) Received: from localhost ([::1]:51718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1hgWJH-0004zS-5U for patchwork-qemu-devel@patchwork.kernel.org; Thu, 27 Jun 2019 11:27:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60594) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <palmer@dabbelt.com>) id 1hgWFM-0001B2-AM for qemu-devel@nongnu.org; Thu, 27 Jun 2019 11:23:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <palmer@dabbelt.com>) id 1hgWFJ-0006Zs-0B for qemu-devel@nongnu.org; Thu, 27 Jun 2019 11:23:34 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <palmer@dabbelt.com>) id 1hgWFH-0006XT-RD for qemu-devel@nongnu.org; Thu, 27 Jun 2019 11:23:32 -0400 Received: by mail-pf1-f196.google.com with SMTP id r7so1412375pfl.3 for <qemu-devel@nongnu.org>; Thu, 27 Jun 2019 08:23:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=TZ7LklPK8UvVtDwbEWjV8Myyoa+ER/F09z/DtS5QZ9Q=; b=Oz1WG0Q3X8/WBIHR8sFa087hzuXV0s6tEAW6h7vvPzIxIgWC+YEgN7jU0fUeCc6agu 3XoKna0EUfKnzTqbOJeXyhND1S7dRGSEBFvqGkgNmoXhQFeWJvrmtmMDcwh4hcGjd0mZ PJqExRi8vdEDjlB76Corqg6d3dtxxUM33gtgJRfRUtEKWKgsSrDrHir8LRll2x78skkt pIgWwMF+rOztKHTNbru1rIphDxQIRDnSBlWOFlThOgi7My/91UsoH3v8lywnLpVgr5CU fDQlDjt+yqtRF0g5ffcZxBywuYFiW4fVtYRpyqaQtTBnfg6x6Ncj7DGRWj5gs0Zoa1mJ xROw== X-Gm-Message-State: APjAAAV9neuo+PIW3rtpVxuhXSQRc8XQFqatEhy0JphQaWiY/slJOpmn Ja0eJ4/2nncOq0eqq5oWM+LjWg== X-Google-Smtp-Source: APXvYqz96Z5D+cDoqKbBihFB+I4HnE63ScZ4XIrhinLF5xe1t36Ibe09/oWBTCkDhgvNQ92gzY61Fw== X-Received: by 2002:a65:45c1:: with SMTP id m1mr4496552pgr.260.1561649009389; Thu, 27 Jun 2019 08:23:29 -0700 (PDT) Received: from localhost (220-132-236-182.HINET-IP.hinet.net. [220.132.236.182]) by smtp.gmail.com with ESMTPSA id h1sm4117306pfg.55.2019.06.27.08.23.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 08:23:28 -0700 (PDT) Date: Thu, 27 Jun 2019 08:19:40 -0700 Message-Id: <20190627152011.18686-4-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190627152011.18686-1-palmer@sifive.com> References: <20190627152011.18686-1-palmer@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Palmer Dabbelt <palmer@sifive.com> To: Peter Maydell <peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.210.196 Subject: [Qemu-devel] [PULL 03/34] target/riscv: Fix PMP range boundary address bug X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: qemu-riscv@nongnu.org, Dayeol Lee <dayeol@berkeley.edu>, Palmer Dabbelt <palmer@sifive.com>, qemu-devel@nongnu.org, Michael Clark <mjc@sifive.com>, Alistair Francis <alistair.francis@wdc.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[PULL] RISC-V Patches for the 4.1 Soft Freeze, Part 2
|
expand
|
diff --git a/target/riscv/pmp.c b/target/riscv/pmp.c index fed1c3c0301b..e0fe2064074a 100644 --- a/target/riscv/pmp.c +++ b/target/riscv/pmp.c @@ -245,7 +245,7 @@ bool pmp_hart_has_privs(CPURISCVState *env, target_ulong addr, from low to high */ for (i = 0; i < MAX_RISCV_PMPS; i++) { s = pmp_is_in_range(env, i, addr); - e = pmp_is_in_range(env, i, addr + size); + e = pmp_is_in_range(env, i, addr + size - 1); /* partially inside */ if ((s + e) == 1) {