Revision 3d08ff69 hw/mips_malta.c

b/hw/mips_malta.c
789 789
    DriveInfo *fd[MAX_FD];
790 790
    int fl_idx = 0;
791 791
    int fl_sectors = 0;
792
    int be;
792 793

  
793 794
    /* Make sure the first 3 serial ports are associated with a device. */
794 795
    for(i = 0; i < 3; i++) {
......
833 834
    cpu_register_physical_memory(0x1fc00000LL,
834 835
                                 BIOS_SIZE, bios_offset | IO_MEM_ROM);
835 836

  
837
#ifdef TARGET_WORDS_BIGENDIAN
838
    be = 1;
839
#else
840
    be = 0;
841
#endif
836 842
    /* FPGA */
837 843
    malta_fpga = malta_fpga_init(0x1f000000LL, env->irq[2], serial_hds[2]);
838 844

  
......
859 865
#endif
860 866
            pflash_cfi01_register(0x1e000000LL, bios_offset,
861 867
                                  dinfo->bdrv, 65536, fl_sectors,
862
                                  4, 0x0000, 0x0000, 0x0000, 0x0000);
868
                                  4, 0x0000, 0x0000, 0x0000, 0x0000, be);
863 869
            fl_idx++;
864 870
        } else {
865 871
            /* Load a BIOS image. */

Also available in: Unified diff