1. 22 5月, 2010 1 次提交
  2. 22 3月, 2010 2 次提交
  3. 16 3月, 2010 1 次提交
    • A
      load_elf: replace the address addend by a translation function · 409dbce5
      Aurelien Jarno 提交于
      A few machines need to translate the ELF header addresses into physical
      addresses. Currently the only possibility is to add a value to the
      addresses.
      
      This patch replaces the addend argument by and a translation function
      and an opaque passed to the function. A NULL function does not translate
      the address.
      
      The patch also convert all machines that have an addend, simplify the
      PowerPC kernel loading and fix the MIPS kernel loading using this new
      feature. Other machines may benefit from this feature.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      409dbce5
  4. 07 2月, 2010 1 次提交
  5. 28 1月, 2010 1 次提交
    • I
      sparc64: reimplement tick timers v4 · 8f4efc55
      Igor V. Kovalenko 提交于
      sparc64 timer has tick counter which can be set and read,
      and tick compare value used as deadline to fire timer interrupt.
      The timer is not used as periodic timer, instead deadline
      is set each time new timer interrupt is needed.
      
      v3 -> v4:
      - coding style
      
      v2 -> v3:
      - added missing timer debug output macro
      - CPUTimer struct and typedef moved to cpu.h
      - change CPU_SAVE_VERSION to 6, older save formats not supported
      
      v1 -> v2:
      - new conversion helpers cpu_to_timer_ticks and timer_to_cpu_ticks
      - save offset from clock source to implement cpu_tick_set_count
      - renamed struct sun4u_timer to CPUTimer
      - load and save cpu timers
      
      v0 -> v1:
      - coding style
      Signed-off-by: NIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      8f4efc55
  6. 25 1月, 2010 1 次提交
  7. 10 1月, 2010 1 次提交
  8. 09 1月, 2010 2 次提交
  9. 30 12月, 2009 2 次提交
  10. 28 12月, 2009 1 次提交
  11. 01 12月, 2009 1 次提交
  12. 09 11月, 2009 2 次提交
  13. 07 11月, 2009 1 次提交
  14. 24 10月, 2009 1 次提交
  15. 12 10月, 2009 1 次提交
    • G
      rom loader: fix sparc -kernel boot. · 3c178e72
      Gerd Hoffmann 提交于
      Changes:
      (1) register pstrcpy_targphys() in rom list, it is used for kernel
      command lines by a number of architectures.
      (2) add rom_ptr() function to get a pointer for applying changes
      to loaded images.  Needed for example to tell the linux kernel
      where it finds the initrd image by updating the header.
      (3) make sparc use rom_ptr for initrd setup.
      
      booting sparc-test works now, and 'info roms' shows this:
      
      (qemu) info roms
      addr=0000000000000000 size=0x2a3828 mem=ram name="phdr #0: vmlinux-2.6.11+tcx"
      addr=00000000007ff000 size=0x00000e mem=ram name="cmdline"
      addr=0000000000800000 size=0x400000 mem=ram name="/root/qemu-test/sparc-test/linux.img"
      addr=0000000070000000 size=0x0e4000 mem=rom name="phdr #0: /home/kraxel/projects/qemu/build-zfull/pc-bios/openbios-sparc32"
      
      reboot via 'system_reset' works too.
      
      Patchworks-ID: 35262
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      3c178e72
  16. 07 10月, 2009 1 次提交
    • M
      New qdev_init_nofail() · e23a1b33
      Markus Armbruster 提交于
      Like qdev_init(), but terminate program via hw_error() instead of
      returning an error value.
      
      Use it instead of qdev_init() where terminating the program on failure
      is okay, either because it's during machine construction, or because
      we know that failure can't happen.
      
      Because relying in the latter is somewhat unclean, and the former is
      not always obvious, it would be nice to go back to qdev_init() in the
      not-so-obvious cases, only with proper error handling.  I'm leaving
      that for another day, because it involves making sure that error
      values are properly checked by all callers.
      
      Patchworks-ID: 35168
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e23a1b33
  17. 05 10月, 2009 4 次提交
  18. 02 10月, 2009 2 次提交
  19. 20 9月, 2009 1 次提交
    • B
      Compile loader only once · ca20cf32
      Blue Swirl 提交于
      Callers must pass ELF machine, byte swapping and symbol LSB clearing
      information to ELF loader. A.out loader needs page size information, pass
      that too as a parameter.
      
      Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw.
      
      Adjust callers. Also use target_phys_addr_t instead of target_ulong for
      addresses: loader addresses aren't virtual.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      ca20cf32
  20. 14 9月, 2009 1 次提交
  21. 10 9月, 2009 2 次提交
  22. 07 9月, 2009 2 次提交
  23. 04 9月, 2009 1 次提交
  24. 29 8月, 2009 1 次提交
  25. 28 8月, 2009 3 次提交
  26. 14 8月, 2009 1 次提交
  27. 11 8月, 2009 1 次提交
  28. 09 8月, 2009 1 次提交