From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHtqd-0001eL-Si for qemu-devel@nongnu.org; Thu, 05 May 2011 04:23:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHtqc-0002or-VG for qemu-devel@nongnu.org; Thu, 05 May 2011 04:23:47 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:44963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHtqc-0002oi-Pc for qemu-devel@nongnu.org; Thu, 05 May 2011 04:23:46 -0400 Received: by bwz16 with SMTP id 16so1806628bwz.4 for ; Thu, 05 May 2011 01:23:45 -0700 (PDT) MIME-Version: 1.0 Sender: ben.leslie@gmail.com Date: Thu, 5 May 2011 18:23:45 +1000 Message-ID: From: Ben Leslie Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] Allow ARMv7M to be started without a kernel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, For some current software development I'm doing I've found it most easy to use Qemu in the following manner qemu-system-arm -M lm3s811evb -s -S & arm-eabi-gdb >>From GDB I then load any code I want to debug and test and run it. For this to work however, I needed to make a small change to armv7m.c to enable starting the simulator without specifying a "-kernel" option. Is there any reason why such a change is a bad idea? (If not, I'll submit an appropriate patch). FWIW, the reason why I'm not using -kernel is that the current way the armv7m code works, it expects the provided kernel to be a full flash image including appropriate vector table, whereas right now I just want to debug some stand-alone code, not the full system, which the above gdb approach works perfectly for. Cheers, Benno