From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKjn2-0004SE-R0 for qemu-devel@nongnu.org; Wed, 06 Jul 2016 06:10:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKjn0-0003W3-SH for qemu-devel@nongnu.org; Wed, 06 Jul 2016 06:10:43 -0400 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:34399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKjn0-0003Vt-O4 for qemu-devel@nongnu.org; Wed, 06 Jul 2016 06:10:42 -0400 Received: by mail-vk0-x229.google.com with SMTP id t66so14811529vka.1 for ; Wed, 06 Jul 2016 03:10:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1467384450-7267-1-git-send-email-mrolnik@gmail.com> <4628c568-2146-68fc-0e11-2efdd45abf5e@twiddle.net> From: Peter Maydell Date: Wed, 6 Jul 2016 11:10:22 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v9 00/10] 8bit AVR cores List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Rolnik Cc: Richard Henderson , QEMU Developers On 6 July 2016 at 11:04, Michael Rolnik wrote: > how to create io space device and how to map it? Conceptually it's no different to handling memory mapped devices. get_system_io() returns the memory region for the IO space, and you add devices to it with memory_region_add_subregion(). thanks -- PMM