From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxab-0001GP-A6 for qemu-devel@nongnu.org; Wed, 03 Feb 2016 08:35:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQxaV-0002TI-MF for qemu-devel@nongnu.org; Wed, 03 Feb 2016 08:35:21 -0500 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]:35297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxaV-0002TB-78 for qemu-devel@nongnu.org; Wed, 03 Feb 2016 08:35:15 -0500 Received: by mail-vk0-x231.google.com with SMTP id e6so13846966vkh.2 for ; Wed, 03 Feb 2016 05:35:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Wed, 3 Feb 2016 13:34:54 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Memory on stellaris board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelio Remonda Cc: QEMU Developers On 3 February 2016 at 13:00, Aurelio Remonda wrote: > Hello, i was trying to understand how does the sram and flash size > works on lm3s6965evb, i found a hardcoded 0x00ff007f as dc0 value and > how flash_size and sram_size are calculated based on that hexadecimal. > I mean this: > > flash_size = (((board->dc0 & 0xffff) + 1) << 1) * 1024; > sram_size = ((board->dc0 >> 18) + 1) * 1024; > On stellaris.c > > When i use the -m [size] flag while running qemu how does the flag > affect does flash_size and sram_size values? Or it doesn't? Where can > i see that the memory has indeed change? This board model ignores -m. We just implement a model of this particular bit of hardware, which has a fixed amount of RAM in it. thanks -- PMM