Skip to content
  • Stefan Weil's avatar
    eepro100: Fix endianness issues · e5e23ab8
    Stefan Weil authored
    
    
    Like other Intel devices, e100 (eepro100) uses little endian byte order.
    
    This patch was tested with these combinations:
    
    i386 host, i386 + mipsel guests (le-le)
    mipsel host, i386 guest (le-le)
    i386 host, mips + ppc guests (le-be)
    mips host, i386 guest (be-le)
    
    mips and mipsel hosts were emulated machines.
    
    v2:
    Use prefix for new functions. Add the same prefix to stl_le_phys.
    Fix alignment of mem (needed for word/dword reads/writes).
    
    Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    e5e23ab8