Revision 9042c0e2 hw/mips_r4k.c
b/hw/mips_r4k.c | ||
---|---|---|
11 | 11 |
|
12 | 12 |
#define BIOS_FILENAME "mips_bios.bin" |
13 | 13 |
//#define BIOS_FILENAME "system.bin" |
14 |
#define KERNEL_LOAD_ADDR (int32_t)0x80010000 |
|
15 | 14 |
#ifdef MIPS_HAS_MIPS64 |
16 | 15 |
#define INITRD_LOAD_ADDR (int64_t)0x80800000 |
17 | 16 |
#else |
... | ... | |
86 | 85 |
entry = (int32_t)entry; |
87 | 86 |
env->PC = entry; |
88 | 87 |
} else { |
89 |
kernel_size = load_image(kernel_filename, |
|
90 |
phys_ram_base + KERNEL_LOAD_ADDR + VIRT_TO_PHYS_ADDEND); |
|
91 |
if (kernel_size < 0) { |
|
92 |
fprintf(stderr, "qemu: could not load kernel '%s'\n", |
|
93 |
kernel_filename); |
|
94 |
exit(1); |
|
95 |
} |
|
96 |
env->PC = KERNEL_LOAD_ADDR; |
|
88 |
fprintf(stderr, "qemu: could not load kernel '%s'\n", |
|
89 |
kernel_filename); |
|
90 |
exit(1); |
|
97 | 91 |
} |
98 | 92 |
|
99 | 93 |
/* load initrd */ |
Also available in: Unified diff