Message ID | 20190628173227.31925-12-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 62CDD4B40 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 28 Jun 2019 18:25:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3253828A25 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 28 Jun 2019 17:49:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 253BD28A73; Fri, 28 Jun 2019 17:49:39 +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 C0B2F28A25 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 28 Jun 2019 17:49:38 +0000 (UTC) Received: from localhost ([::1]:34974 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 1hgv0E-0001z3-2L for patchwork-qemu-devel@patchwork.kernel.org; Fri, 28 Jun 2019 13:49:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54524) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <palmer@dabbelt.com>) id 1hgukX-0008Fn-S6 for qemu-devel@nongnu.org; Fri, 28 Jun 2019 13:33:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <palmer@dabbelt.com>) id 1hgukV-0000EZ-BU for qemu-devel@nongnu.org; Fri, 28 Jun 2019 13:33:25 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <palmer@dabbelt.com>) id 1hgukV-000078-2e for qemu-devel@nongnu.org; Fri, 28 Jun 2019 13:33:23 -0400 Received: by mail-pf1-f193.google.com with SMTP id q10so3320381pff.9 for <qemu-devel@nongnu.org>; Fri, 28 Jun 2019 10:33:12 -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=tHJ8TJeA8y3lZE06LLG15C3UoFOsuUPcKgVUlFGD2eo=; b=ZRPEqHLLV21RQ0casEblITpo5kw5Yw0z3PQnWxGFDnj1z2MmWlLbOdNlwf1QC0dgt1 HJjMRkQv2e/Iy/acd7lgCQ+5IhLMsXNjCVJw9O1o3kQpsRbQZIhChJFNZ4GrUCajTtHV uKe+uhE2GvUnVWXH8hlag2I9bH2H0S+rzUu0JeokSxDI4rjrtkWHOKca+uNmI2FldDkR FltYRZ8k2tuNRCtZkiKRnvno3MLHDA6ra5TO7nFJVhx/X7zK4azw+0qJOt0houzEgxj2 pYuFqhJPVFPew+rM1bq7a8xapPfgkpZw5noYAaUkvjOJ/D4t6qekbYpY2GswtFiJs3i5 3gSQ== X-Gm-Message-State: APjAAAVxboCuuahKwlO/gmKSPR7QLBIs+BZn6iqgwkOtaqRf7HTwajaY NGLbYH0D8AIhoemhQMeNpPnGj5tDEfKLHh8U X-Google-Smtp-Source: APXvYqy5zlPEuhg/RGqb/0Cm3yzG+ACX/8Utlb6Qr06EZ6aGgAoW37sTb6Xnedo+Llc/6A9EYM9i9Q== X-Received: by 2002:a65:664d:: with SMTP id z13mr9324808pgv.99.1561743191158; Fri, 28 Jun 2019 10:33:11 -0700 (PDT) Received: from localhost (220-132-236-182.HINET-IP.hinet.net. [220.132.236.182]) by smtp.gmail.com with ESMTPSA id m6sm2974169pgr.18.2019.06.28.10.33.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 10:33:10 -0700 (PDT) Date: Fri, 28 Jun 2019 10:32:04 -0700 Message-Id: <20190628173227.31925-12-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190628173227.31925-1-palmer@sifive.com> References: <20190628173227.31925-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.193 Subject: [Qemu-devel] [PULL 11/34] riscv: virt: Correct pci "bus-range" encoding 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: Alistair Francis <alistair.francis@wdc.com>, Bin Meng <bmeng.cn@gmail.com>, qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Palmer Dabbelt <palmer@sifive.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,01/34] target/riscv: Allow setting ISA extensions via CPU props
|
expand
|
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 84d94d0c42d8..487f61404b21 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -298,7 +298,7 @@ static void *create_fdt(RISCVVirtState *s, const struct MemmapEntry *memmap, qemu_fdt_setprop_string(fdt, nodename, "device_type", "pci"); qemu_fdt_setprop_cell(fdt, nodename, "linux,pci-domain", 0); qemu_fdt_setprop_cells(fdt, nodename, "bus-range", 0, - memmap[VIRT_PCIE_ECAM].base / + memmap[VIRT_PCIE_ECAM].size / PCIE_MMCFG_SIZE_MIN - 1); qemu_fdt_setprop(fdt, nodename, "dma-coherent", NULL, 0); qemu_fdt_setprop_cells(fdt, nodename, "reg", 0, memmap[VIRT_PCIE_ECAM].base,