From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QreMB-0005nS-7l for qemu-devel@nongnu.org; Thu, 11 Aug 2011 19:08:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QreM6-0004he-UV for qemu-devel@nongnu.org; Thu, 11 Aug 2011 19:08:07 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:59977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QreM6-0004ha-PK for qemu-devel@nongnu.org; Thu, 11 Aug 2011 19:08:02 -0400 Received: by qwj8 with SMTP id 8so1594227qwj.4 for ; Thu, 11 Aug 2011 16:08:02 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Thu, 11 Aug 2011 16:07:12 -0700 Message-Id: <1313104041-1641-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 0/9] Convert serial_mm_init to MemoryRegion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: avi@redhat.com The last patch set converted the serial i/o path; this patch set converts the serial mmio path. Intermediate patches increase the use of get_system_memory(), and later patches reduce those uses again. In all but one case in the end we use the address_space_mem parameter from the original board init function. The major portion of the cleanup comes from actually utilizing the device_endian enum provided by the i/o subsystem. This allows us to remove all of the ifdeffery in this area. r~ Richard Henderson (9): serial: Convert serial_mm_init to MemoryRegion. serial: Use enum device_endian in serial_mm_init parameter. serial: Remove ioregister parameter from serial_mm_init. serial: Add MemoryRegion parameter to serial_mm_init. ppc405: Pass in address_space_mem to ppc405{cr,ep}_init. ppc440: Pass in address_space_mem to ppc440ep_init. pxa: Pass in address_space to pxa{255,270}_init. sm501: Pass address_space_mem to sm501_init. sun4u: Pass address_space_mem to sun4uv_init. hw/devices.h | 6 ++- hw/gumstix.c | 4 +- hw/mainstone.c | 2 +- hw/mips_jazz.c | 14 +--- hw/mips_malta.c | 7 +-- hw/musicpal.c | 18 +---- hw/omap_uart.c | 27 +++------ hw/pc.h | 8 +- hw/petalogix_ml605_mmu.c | 4 +- hw/ppc405.h | 22 ++++--- hw/ppc405_boards.c | 8 +- hw/ppc405_uc.c | 42 +++++++------ hw/ppc440.c | 16 +++-- hw/ppc440.h | 6 +- hw/ppc440_bamboo.c | 3 +- hw/ppce500_mpc8544ds.c | 8 +- hw/pxa.h | 7 ++- hw/pxa2xx.c | 42 ++++++------- hw/r2d.c | 3 +- hw/serial.c | 153 ++++++++++------------------------------------ hw/sm501.c | 15 ++--- hw/spitz.c | 2 +- hw/sun4u.c | 13 ++-- hw/tosa.c | 2 +- hw/virtex_ml507.c | 3 +- hw/z2.c | 2 +- 26 files changed, 165 insertions(+), 272 deletions(-) -- 1.7.6