MIPS: fix fulong bios loading
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
		
							parent
							
								
									aa8f40090a
								
							
						
					
					
						commit
						33dd298323
					
				@ -256,7 +256,6 @@ static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device,
 | 
				
			|||||||
                        const char *initrd_filename, const char *cpu_model)
 | 
					                        const char *initrd_filename, const char *cpu_model)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    char *filename;
 | 
					    char *filename;
 | 
				
			||||||
    char buf[1024];
 | 
					 | 
				
			||||||
    unsigned long ram_offset, bios_offset;
 | 
					    unsigned long ram_offset, bios_offset;
 | 
				
			||||||
    unsigned long bios_size;
 | 
					    unsigned long bios_size;
 | 
				
			||||||
    int64_t kernel_entry;
 | 
					    int64_t kernel_entry;
 | 
				
			||||||
@ -324,7 +323,7 @@ static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device,
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
 | 
					        if ((bios_size < 0 || bios_size > BIOS_SIZE) && !kernel_filename) {
 | 
				
			||||||
            fprintf(stderr, "qemu: Could not load MIPS bios '%s'\n", buf);
 | 
					            fprintf(stderr, "qemu: Could not load MIPS bios '%s'\n", bios_name);
 | 
				
			||||||
            exit(1);
 | 
					            exit(1);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user