From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUMbl-0000vQ-UU for qemu-devel@nongnu.org; Fri, 12 Feb 2016 17:54:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUMbl-0008Gi-0A for qemu-devel@nongnu.org; Fri, 12 Feb 2016 17:54:37 -0500 References: <1455288361-30117-1-git-send-email-peter.maydell@linaro.org> From: Mark Cave-Ayland Message-ID: <56BE629B.3090403@ilande.co.uk> Date: Fri, 12 Feb 2016 22:54:19 +0000 MIME-Version: 1.0 In-Reply-To: <1455288361-30117-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/4] virt: provide secure-only RAM and first flash List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-arm@nongnu.org, Markus Armbruster , "Michael S. Tsirkin" On 12/02/16 14:45, Peter Maydell wrote: > NOTE: to get the -bios option to correctly load to the secure-only > flash I had to implement a new function in loader.c. load_image_mr() > is just like load_image_targphys() except that it requests loading > to a MemoryRegion rather than a physaddr. I think we can also use this > to clean up the Sparc cg3 and tcx display devices, which currently take > a qdev property which is "the address I'm going to be mapped at" > purely so they can use load_image_targphys() to load their ROMs. Yes! This was something I remember having to explicitly work around when adding the FCode ROMs to these devices as I couldn't otherwise see how to load the binary directly into the appropriate MemoryRegion. ATB, Mark.