Commit 9437454a8427c1b32de4ab7a426615ea237e59c6

Authored by blueswir1
1 parent 7743e588

Fix loading above 4G


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3230 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
elf_ops.h
... ... @@ -145,8 +145,8 @@ int glue(load_elf, SZ)(int fd, int64_t virt_to_phys_addend,
145 145 struct elfhdr ehdr;
146 146 struct elf_phdr *phdr = NULL, *ph;
147 147 int size, i, total_size;
148   - elf_word low = 0, high = 0;
149   - elf_word mem_size, addr;
  148 + elf_word mem_size;
  149 + target_phys_addr_t addr, low = 0, high = 0;
150 150 uint8_t *data = NULL;
151 151  
152 152 if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr))
... ...