aboutsummaryrefslogtreecommitdiff
path: root/hw/openrisc/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/openrisc/boot.c')
-rw-r--r--hw/openrisc/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/openrisc/boot.c b/hw/openrisc/boot.c
index 83c1fc6..0f08df8 100644
--- a/hw/openrisc/boot.c
+++ b/hw/openrisc/boot.c
@@ -32,7 +32,7 @@ hwaddr openrisc_load_kernel(ram_addr_t ram_size,
if (kernel_filename && !qtest_enabled()) {
kernel_size = load_elf(kernel_filename, NULL, NULL, NULL,
- &elf_entry, NULL, &high_addr, NULL, 1,
+ &elf_entry, NULL, &high_addr, NULL, ELFDATA2MSB,
EM_OPENRISC, 1, 0);
entry = elf_entry;
if (kernel_size < 0) {