1. 04 9月, 2011 1 次提交
    • A
      pflash_cfi01/pflash_cfi02: convert to memory API · cfe5f011
      Avi Kivity 提交于
      cfi02 is annoying in that is ignores some address bits; we probably
      want explicit support in the memory API for that.
      
      In order to get the correct opaque into the MemoryRegion object, the
      allocation scheme is changed so that the flash emulation code allocates
      memory, instead of the caller.  This clears a FIXME in the flash code.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      cfe5f011
  2. 03 9月, 2011 1 次提交
    • S
      Use new macro QEMU_PACKED for packed structures · 541dc0d4
      Stefan Weil 提交于
      Most changes were made using these commands:
      
      git grep -la '__attribute__((packed))'|xargs perl -pi -e 's/__attribute__\(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__((__packed__))'|xargs perl -pi -e 's/__attribute__\(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((__packed__))'|xargs perl -pi -e 's/__attribute__ \(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute((packed))'|xargs perl -pi -e 's/__attribute\(\(packed\)\)/QEMU_PACKED/'
      
      Whitespace in linux-user/syscall_defs.h was fixed manually
      to avoid warnings from scripts/checkpatch.pl.
      
      Manual changes were also applied to hw/pc.c.
      
      I did not fix indentation with tabs in block/vvfat.c.
      The patch will show 4 errors with scripts/checkpatch.pl.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      541dc0d4
  3. 26 8月, 2011 1 次提交
  4. 25 8月, 2011 1 次提交
  5. 21 8月, 2011 1 次提交
  6. 20 1月, 2011 1 次提交
  7. 15 1月, 2011 1 次提交
  8. 11 12月, 2010 1 次提交
    • A
      Add endianness as io mem parameter · 2507c12a
      Alexander Graf 提交于
      As stated before, devices can be little, big or native endian. The
      target endianness is not of their concern, so we need to push things
      down a level.
      
      This patch adds a parameter to cpu_register_io_memory that allows a
      device to choose its endianness. For now, all devices simply choose
      native endian, because that's the same behavior as before.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2507c12a
  9. 24 8月, 2010 1 次提交
    • B
      Rearrange block headers · 2446333c
      Blue Swirl 提交于
      Changing block.h or blockdev.h resulted in recompiling most objects.
      
      Move DriveInfo typedef and BlockInterfaceType enum definitions
      to qemu-common.h and rearrange blockdev.h use to decrease churn.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2446333c
  10. 06 7月, 2010 1 次提交
  11. 30 6月, 2010 1 次提交
  12. 26 4月, 2010 1 次提交
  13. 14 4月, 2010 1 次提交
    • A
      r2d: always enable IDE and flash · 612b2bd0
      Aurelien Jarno 提交于
      IDE and flash are part of the R2D board, and can't be removed. Emulate
      them even if there is no hard-drive plugged to the IDE or if the flash
      content is empty.
      612b2bd0
  14. 12 4月, 2010 1 次提交
  15. 11 4月, 2010 1 次提交
  16. 02 4月, 2010 1 次提交
  17. 08 2月, 2010 1 次提交
  18. 01 12月, 2009 1 次提交
  19. 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
  20. 05 10月, 2009 1 次提交
    • M
      Fix pci_add nic not to exit on bad model · 07caea31
      Markus Armbruster 提交于
      Monitor command "pci_add ADDR nic model=MODEL" uses pci_nic_init() to
      create the NIC.  When MODEL is unknown or "?", this prints to stderr
      and terminates the program.
      
      Change pci_nic_init() not to treat "?" specially, and to return NULL
      on failure.  Switch uses during startup to new convenience wrapper
      pci_nic_init_nofail(), which behaves just like pci_nic_init() used to
      do.
      
      Bonus bug fix: we now check for qdev_init() failing there.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      07caea31
  21. 02 10月, 2009 2 次提交
  22. 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
  23. 04 9月, 2009 2 次提交
  24. 28 8月, 2009 1 次提交
  25. 26 8月, 2009 1 次提交
  26. 28 7月, 2009 1 次提交
    • G
      kill drives_table · 751c6a17
      Gerd Hoffmann 提交于
      First step cleaning up the drives handling.  This one does nothing but
      removing drives_table[], still it became seriously big.
      
      drive_get_index() is gone and is replaced by drives_get() which hands
      out DriveInfo pointers instead of a table index.  This needs adaption in
      *tons* of places all over.
      
      The drives are now maintained as linked list.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      751c6a17
  27. 22 6月, 2009 1 次提交
    • M
      Support addr=... in option argument of -net nic · 5607c388
      Markus Armbruster 提交于
      Make net_client_init() accept addr=, put the value into struct
      NICinfo.  Use it in pci_nic_init(), and remove arguments bus and
      devfn.
      
      Don't support addr= in third argument of monitor command pci_add,
      because that clashes with its first argument.  Admittedly unelegant.
      
      Machines "malta" and "r2d" have a default NIC with a well-known PCI
      address.  Deal with that the same way as the NIC model: make
      pci_nic_init() take an optional default to be used when the user
      doesn't specify one.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5607c388
  28. 17 6月, 2009 1 次提交
  29. 21 5月, 2009 1 次提交
  30. 14 5月, 2009 1 次提交
    • P
      Remove vga_ram_size · fbe1b595
      Paul Brook 提交于
      The vga_ram_size argument to machine init functions always has the same
      value, and is ignored by many machines (including SPARC32 which has an
      obsolete ifdef for VGA_RAM_SIZE).
      
      Remove it and push VGA_RAM_SIZE into vga_int.h.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      fbe1b595
  31. 19 4月, 2009 1 次提交
    • A
      Adds SM501 usb host emulation feature. · ac611340
      aurel32 提交于
      It makes usb keyboard available for sh4/r2d system emulation.
      
      The changes for "hw/usb-ohci.c" are as follows.
       - 'localmem_base' is introduced as OHCIState struct member.
         SM501 has a local memory, and it is used to pass and receive data with
         OHCI driver.  OHCI driver accesses it with SH4 physical memory address,
         and SM501 accesses it with SM501 local address.  'localmem_base' holds
         where the SM501 local memory is mapped into SH4 physical address space.
       - Memory access functions modified to adjust address with 'localmem_base'.
         The functions are, ohci_read_*(), ohci_put_*(), and ohci_copy_*().
       - ohci_read_hcca() and ohci_put_hcca() are introduced for more consistent
         implementation.
      
      For other source files, it does,
       - introduces usb_ohci_init_sm501().
       - adds irq argument for SM501 initialization, to emulate USB interrupts.
      Signed-off-by: NShin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7188 c046a42c-6fe2-441c-8c8c-71466251a162
      ac611340
  32. 12 4月, 2009 1 次提交
  33. 10 4月, 2009 1 次提交
  34. 29 3月, 2009 2 次提交
  35. 03 3月, 2009 1 次提交
  36. 06 2月, 2009 1 次提交
  37. 25 1月, 2009 1 次提交