Revision 3187ef03

b/hw/mips_malta.c
791 791
                    buf);
792 792
            exit(1);
793 793
        }
794
        /* In little endian mode the 32bit words in the bios are swapped,
795
           a neat trick which allows bi-endian firmware. */
796
#ifndef TARGET_WORDS_BIGENDIAN
797
        {
798
            uint32_t *addr;
799
            for (addr = (uint32_t *)(phys_ram_base + bios_offset);
800
                 addr < (uint32_t *)(phys_ram_base + bios_offset + ret);
801
		 addr++) {
802
                *addr = bswap32(*addr);
803
            }
804
        }
805
#endif
794 806
    }
795 807

  
796 808
    /* If a kernel image has been specified, write a small bootloader

Also available in: Unified diff