Message ID | 20180723201748.25573-68-mdroth@linux.vnet.ibm.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 0763614BC for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:15:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAAD5284E9 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:15:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEF13284F9; Mon, 23 Jul 2018 21:15:45 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 5EA81284E9 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:15:45 +0000 (UTC) Received: from localhost ([::1]:36698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fhiBD-00030t-W6 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Jul 2018 17:15:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKF-0003UB-Vh for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKE-00059m-Tq for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:20:59 -0400 Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:42536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhKE-00059V-Nj; Mon, 23 Jul 2018 16:20:58 -0400 Received: by mail-oi0-x22a.google.com with SMTP id n84-v6so3470276oib.9; Mon, 23 Jul 2018 13:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=tuvsSTaacbNP8kBZZ1hy3NLI7HeQdafDz/32Il/55zA=; b=O/XqjjXTniKzZf2biXRpIYHly7nXVC5ewaAi/j3sRiRASqNj712BUxaIAOhPDxZv7Y v+IpBZvA53sW7Qs+2aGME1yLGwcRSEXD7pxacRWm+kbqxm324jwX7cSIduD+KgvZ1uD6 bcEw9Ni0XCA693B4j3aHfGYst2QyjZxBD/rfIWi2t1KMa8a9GxBZxui+hOIJEikVrknU +llp3FSkiB/LT2+N/OqvBuCMqjoWRLnggkwLfTWODuq9g8ynW/o/LNMNC+7OI/eLdrrS tFxUU/ERG1zCoo2R4Hc67AfTKPNQlc+R1kmmJlCD3yVorARQr333qys61a5/vBzfiG2u 0l1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=tuvsSTaacbNP8kBZZ1hy3NLI7HeQdafDz/32Il/55zA=; b=OT5N3KQcaFCAQVsmVGVVzLl3ApgJZjF9s2xV7MFs/qfuYFw8GvT2HWCA7pVzOID4dP acvX+tsXmZ/jbWR2i17vRZp1Zok2eEdxNgV8IofqI1YzL8OgFpx9j8AqyhktfhDRgQRt ZY08+OaUl+jeEMy8r2Q+ApQJsLqWHVrYVy94yAJ350WL4pFytRIfJ1D2UAVhubhrco6d HzP0mUM9AWItU91g9NQq6bn/0ObriADHZ8sIXQOQxkdzlvdARC7fwRPtcJOkX0han8p6 e30efVky7BTcq/LaqRo/m0nD/2i6V73sWY1xSXx6x9WIAjekpAG8MlPc0hlLCTOSjVKt h8Ug== X-Gm-Message-State: AOUpUlE6pXHzymhqP2mlxA/MayRI40toApU2daVIRNuMbWX5Osj9EbS2 tT06fbrobZZP0AbPV+A58femef1yCiiB+A== X-Google-Smtp-Source: AAOMgpeQKJ90T4sQOMruTAm+3pi23cSp3HURUtmhOm/7UtVVZOLfq7HcEplk6222V0wmBn/tIx6ixA== X-Received: by 2002:aca:b585:: with SMTP id e127-v6mr299311oif.119.1532377257687; Mon, 23 Jul 2018 13:20:57 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id w204-v6sm12598732oif.2.2018.07.23.13.20.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:20:56 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 23 Jul 2018 15:17:16 -0500 Message-Id: <20180723201748.25573-68-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> References: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22a Subject: [Qemu-devel] [PATCH 67/99] RISC-V: Minimal QEMU 2.12 fix for sifive_u machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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: Sagar Karandikar <sagark@eecs.berkeley.edu>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Palmer Dabbelt <palmer@sifive.com>, qemu-stable@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 |
Patch Round-up for stable 2.12.1, freeze on 2018-07-30
|
expand
|
diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 1c2deefa6c..19b034449c 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -250,9 +250,9 @@ static void riscv_sifive_u_init(MachineState *machine) /* boot rom */ memory_region_init_ram(boot_rom, NULL, "riscv.sifive.u.mrom", - memmap[SIFIVE_U_MROM].base, &error_fatal); - memory_region_set_readonly(boot_rom, true); - memory_region_add_subregion(sys_memory, 0x0, boot_rom); + memmap[SIFIVE_U_MROM].size, &error_fatal); + memory_region_add_subregion(sys_memory, memmap[SIFIVE_U_MROM].base, + boot_rom); if (machine->kernel_filename) { load_kernel(machine->kernel_filename); @@ -282,6 +282,7 @@ static void riscv_sifive_u_init(MachineState *machine) qemu_fdt_dumpdtb(s->fdt, s->fdt_size); cpu_physical_memory_write(memmap[SIFIVE_U_MROM].base + sizeof(reset_vec), s->fdt, s->fdt_size); + memory_region_set_readonly(boot_rom, true); /* MMIO */ s->plic = sifive_plic_create(memmap[SIFIVE_U_PLIC].base,