From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyI9P-0003Tl-U5 for qemu-devel@nongnu.org; Fri, 29 May 2015 07:08:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyI9I-0003u1-DF for qemu-devel@nongnu.org; Fri, 29 May 2015 07:08:29 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:36755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyI9I-0003tm-75 for qemu-devel@nongnu.org; Fri, 29 May 2015 07:08:24 -0400 Received: by wivl4 with SMTP id l4so13763343wiv.1 for ; Fri, 29 May 2015 04:08:23 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <556848A3.6010905@redhat.com> Date: Fri, 29 May 2015 13:08:19 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <2816EEF2-0256-4B49-8811-74EFB3016CD4@livius.net> In-Reply-To: <2816EEF2-0256-4B49-8811-74EFB3016CD4@livius.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] extensions to the -m memory option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu , qemu-devel@nongnu.org On 29/05/2015 00:11, Liviu Ionescu wrote: > for more flexibility, in the new Cortex-M implementation I'm working on, I can overwrite the vendor defined MCU internal SRAM size by using: > > -m sizeK > > I'm trying to find a way to also overwrite the internal flash size and the first idea I had was to extend the "-m" command like: > > -m sizeK,flash=sizeK > > would this be ok? > > for more readability I would prefer something like: > > --memory ram=sizeK,flash=sizeK > > any other suggestions? If the flash is persistent, it should be tied to either "-pflash" (NOR) or "-mtd" (NAND). Just using a different image then results in resizing the flash. Paolo