Received: from eggs.gnu.org ([2001:4830:134:3::10]:59783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNK56-000394-S2 for qemu-devel@nongnu.org; Thu, 15 Nov 2018 11:01:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNK4s-0000yG-TC for qemu-devel@nongnu.org; Thu, 15 Nov 2018 11:01:17 -0500 Sender: Richard Henderson References: <20180710160013.26559-1-peter.maydell@linaro.org> <20180710160013.26559-6-peter.maydell@linaro.org> <3ac12d41-2095-f0ad-db1b-0e3ceea8f44e@redhat.com> <7e05e89a-6eec-257d-03af-78a2d2b60628@twiddle.net> From: Richard Henderson Message-ID: <243861e9-322f-bbab-4206-70ccd815edfb@twiddle.net> Date: Thu, 15 Nov 2018 17:00:58 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/6] accel/tcg: Return -1 for execution from MMIO regions in get_page_addr_code() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Thomas Huth , qemu-arm , QEMU Developers , "patches@linaro.org" , KONRAD Frederic , "Emilio G . Cota" , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , "Edgar E. Iglesias" , Paolo Bonzini On 11/15/18 2:53 PM, Peter Maydell wrote: >> switch (offset) { >> - case 0x0000 ... 0xc000: >> + case 0x0000 ... 0xbfff: >> return lduw_le_p(s->boot[0] + addr); >> >> case 0xf000: /* Manufacturer ID */ >> >> as the memory segment has size 0xc000. > > Presumably it should be ... 0xbffe, since we are > doing a 16-bit load ? Ah, true. > Yeah, I'll put together a patch which makes it use the qemu_log > facilities rather than fprintf() and hw_error(). With that > plus the case statement fix then QEMU correctly just sits there > as the guest execution races through memory... Excellent, thanks. r~