Received: from [140.186.70.92] (port=40531 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsXBj-0005DM-Ha for qemu-devel@nongnu.org; Thu, 24 Feb 2011 04:08:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsXBi-0002nL-Ju for qemu-devel@nongnu.org; Thu, 24 Feb 2011 04:08:43 -0500 Received: from nm10-vm0.bullet.mail.ukl.yahoo.com ([217.146.183.242]:29913) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PsXBi-0002nC-BB for qemu-devel@nongnu.org; Thu, 24 Feb 2011 04:08:42 -0500 Message-ID: <614020.69917.qm@web27207.mail.ukl.yahoo.com> Date: Thu, 24 Feb 2011 09:08:40 +0000 (GMT) From: Salvatore Lionetti MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Memory Map List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi,=0A=0AThis is what my board do=0A=0Acpu_register_physical_memory(0, 128*= 1024*1024, ...)=0Acpu_register_physical_memory(0xFF800000, 8*1024*1024, ...= )=0A=0Aand this layout does not change over the entire live (virtual) of th= e board.=0A=0AFor the following offset (1st column) and size in bytes (2nd = column)=0A{0x000000, 512},=0A{0x000200, 16},=0A{0x000300, 32},=0A{0x000400,= 32},=0A{0x000500, 64},=0A{0x000600, 64},=0A{0x000700, 128},=0A{0x000800, 3= 0},=0A{0x000900, 256},=0A{0x000A00, 44},=0A{0x000B00, 256},=0A{0x000C00, 24= },=0A{0x000F00, 20},=0A{0x001000, 20},=0A{0x001100, 20},=0A{0x001400, 168},= =0A{0x001800, 24},=0A{0x002000, 4096},=0A{0x003000, 24},=0A{0x003100, 24},= =0A{0x004500, 36},=0A{0x005000, 224},=0A{0x008000, 768},=0A{0x008300, 16},= =0A=0Ai do, for each item,=0A=0Aa =3D cpu_register_io_memory(r, w, o, DEVIC= E_NATIVE_ENDIAN)=0Acpu_register_physical_memory(_base+offset, len, a)=0A=0A= And _base could be reprogrammed at any time. So before to change _base i:= =0A=0Acpu_unregister_io_memory(a)=0A=0AWhat i see is that accessing to _bas= e+=0A_base+0x005000 =3D> Wake up r/w with offset 0=0A_base+0x000204 =3D> Wa= ke up r/w with offset 0x204=0A=0ASo the question=0A- Am i wrong something?= =0A- Is possible to map address with last TARGET_PAGE_BITS (es 0x200) bits = set?=0A=0AHave a good day=0A=0A=0A