From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKRfU-0008SA-L4 for qemu-devel@nongnu.org; Thu, 21 Aug 2014 08:40:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKRfQ-0004Wi-6s for qemu-devel@nongnu.org; Thu, 21 Aug 2014 08:40:40 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:44744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKRfP-0004We-WD for qemu-devel@nongnu.org; Thu, 21 Aug 2014 08:40:36 -0400 Received: by mail-lb0-f178.google.com with SMTP id c11so8145844lbj.9 for ; Thu, 21 Aug 2014 05:40:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <7dadfa99c7a31615e6df922fb6e2084837e08033.1408584788.git.alistair23@gmail.com> From: Peter Maydell Date: Thu, 21 Aug 2014 13:40:14 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v1 1/1] target_arm: Make the reset rom_ptr a property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Alistair Francis , "qemu-devel@nongnu.org Developers" , Konstanty Bialkowski On 21 August 2014 13:37, Peter Crosthwaite wrote: > On Thu, Aug 21, 2014 at 10:33 PM, Peter Maydell > wrote: >> I think the ELF loading thing is a separate issue -- if we're loading >> an ELF file we should honour its entry point address instead of >> trying to load from the vector table. (The question of what we >> do about SP is an interesting one...) >> > > Well for an elf load you can grab just the SP from VTOR and not the > PC? You will still need to solve the problem of this patch however. As you say, it requires that you can at least load from the vector table, which is problematic if there's nothing there. It's probably reasonable to require than M profile boards have something in the memory map where the vector table lives, though. -- PMM