From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQx2w-0002uH-FU for qemu-devel@nongnu.org; Wed, 03 Feb 2016 08:00:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQx2s-0001al-Cm for qemu-devel@nongnu.org; Wed, 03 Feb 2016 08:00:34 -0500 Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:33049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQx2s-0001a1-7u for qemu-devel@nongnu.org; Wed, 03 Feb 2016 08:00:30 -0500 Received: by mail-vk0-x22b.google.com with SMTP id e64so13350076vkg.0 for ; Wed, 03 Feb 2016 05:00:29 -0800 (PST) MIME-Version: 1.0 Date: Wed, 3 Feb 2016 10:00:29 -0300 Message-ID: From: Aurelio Remonda Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Memory on stellaris board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 =3D (((board->dc0 & 0xffff) + 1) << 1) * 1024; sram_size =3D ((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? When i debug qemu with or whitout the flag i keep getting the same sram_size and flash_size values (the ones calculated with 0x00ff007f) Thank you!! --=20 Aurelio Remonda Software Engineer San Lorenzo 47, 3rd Floor, Office 5 C=C3=B3rdoba, Argentina Phone: +54-351-4217888 / 4218211