From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3uAP-0000Ym-4P for qemu-devel@nongnu.org; Mon, 29 Jul 2013 16:35:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3uAI-0001iX-Ll for qemu-devel@nongnu.org; Mon, 29 Jul 2013 16:35:40 -0400 Received: from smtp.mail.uni-mannheim.de ([134.155.96.80]:58596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3uAI-0001iO-5r for qemu-devel@nongnu.org; Mon, 29 Jul 2013 16:35:34 -0400 Message-ID: <51F6D213.8040506@weilnetz.de> Date: Mon, 29 Jul 2013 22:35:31 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1374941897-11956-1-git-send-email-hpoussin@reactos.org> <51F4218A.1060802@weilnetz.de> <51F430F4.6020708@suse.de> <51F4345D.6080007@weilnetz.de> In-Reply-To: <51F4345D.6080007@weilnetz.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH for-1.6] target-mips: do not raise exceptions when accessing invalid memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?SGVydsOpIFBvdXNzaW5lYXU=?= Cc: Peter Maydell , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , =?UTF-8?B?QXVyw6lsaWVuIEphcm5v?= , qemu-devel@nongnu.org Am 27.07.2013 22:58, schrieb Stefan Weil: > Am 27.07.2013 22:43, schrieb Andreas F=C3=A4rber: >> Am 27.07.2013 21:37, schrieb Stefan Weil: >>> Am 27.07.2013 19:43, schrieb Peter Maydell: >>>> On 27 July 2013 17:18, Herv=C3=A9 Poussineau = wrote: >>>>> Another solution would be to add a big dummy memory regions on all = MIPS boards >>>>> to catch memory accesses and not raise an exception. However, this = means that >>>>> each MIPS board will have its own unassigned memory handler, differ= ent from the >>>>> global QEMU one. >>>> Better would be to at least provide fake RAZ/WI implementations of >>>> devices for the boards, rather than making the dummy region cover >>>> the whole of the address space. Not 1.6 material, though. For MIPS Malta, Linux boot can be fixed by handling read access for two addresses: 0x1fbf8008 0x1bc80110 The corresponding definitions in the Linux kernel code seem to be these lines: #define GCMP_BASE_ADDR 0x1fbf8000 #define GCMP_ADDRSPACE_SZ (256 * 1024) #define GCMP_GCB_GCMPB_OFS 0x0008 /* Global GCMP Base */ #define MSC01_BIU_REG_BASE 0x1bc80000 #define MSC01_BIU_ADDRSPACE_SZ (256 * 1024) #define MSC01_SC_CFG_OFS 0x0110 =3D> mips_malta.c needs a handler for reads of (GCMP_BASE_ADDR + GCMP_GCB_GCMPB_OFS) and (MSC01_BIU_REG_BASE + MSC01_SC_CFG_OFS). Regards, Stefan W.