1. 01 7月, 2013 1 次提交
    • A
      mac-io: Add escc-legacy memory alias region · 0d54a502
      Alexander Graf 提交于
      Mac OS X's debugging serial driver accesses the ESCC through a different
      register layout, called "escc-legacy". This layout differs from the normal
      escc register layout purely by the location of the respective registers.
      
      This patch adds a memory alias region that takes normal escc registers and
      maps them into the escc-legacy register space.
      
      With this patch applied, a Mac OS X guest successfully emits debug output
      on the serial port when run with debug parameters set, for example by running:
      
        $ qemu-system-ppc -prom-env -'boot-args=-v debug=0x8 io=0xff serial=0x3' \
                          -cdrom 10.4.iso -boot d
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      0d54a502
  2. 09 4月, 2013 2 次提交
  3. 04 3月, 2013 1 次提交
  4. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  5. 26 1月, 2013 7 次提交
  6. 11 1月, 2013 1 次提交
    • A
      Make all static TypeInfos const · 8c43a6f0
      Andreas Färber 提交于
      Since 39bffca2 (qdev: register all
      types natively through QEMU Object Model), TypeInfo as used in
      the common, non-iterative pattern is no longer amended with information
      and should therefore be const.
      
      Fix the documented QOM examples:
      
       sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h
      
      Since frequently the wrong examples are being copied by contributors of
      new devices, fix all types in the tree:
      
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c
      
      This also avoids to piggy-back these changes onto real functional
      changes or other refactorings.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8c43a6f0
  7. 17 12月, 2012 1 次提交
  8. 15 2月, 2012 1 次提交
  9. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  10. 28 1月, 2012 2 次提交
  11. 08 8月, 2011 2 次提交
  12. 12 7月, 2010 1 次提交
    • I
      pci: don't overwrite multi functio bit in pci header type. · b80d4a98
      Isaku Yamahata 提交于
      Don't overwrite pci header type.
      Otherwise, multi function bit which pci_init_header_type() sets
      appropriately is lost.
      Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero
      which is already zero cleared.
      
      how to test:
      run qemu and issue info pci to see whether a device in question is
      normal device, not pci-to-pci bridge.
      This is handy because guest os isn't required.
      
      tested changes:
      The following files are covered by using following commands.
      sparc64-softmmu
        apb_pci.c, vga-pci.c, cmd646.c, ne2k_pci.c, sun4u.c
      ppc-softmmu
        grackle_pci.c, cmd646.c, ne2k_pci.c, vga-pci.c, macio.c
      ppc-softmmu -M mac99
        unin_pci.c(uni-north, uni-north-agp)
      ppc64-softmmu
        pci-ohci, ne2k_pci, vga-pci, unin_pci.c(u3-agp)
      x86_64-softmmu
        acpi_piix4.c, ide/piix.c, piix_pci.c
        -vga vmware vmware_vga.c
        -watchdog i6300esb wdt_i6300esb.c
        -usb usb-uhci.c
        -sound ac97 ac97.c
        -nic model=rtl8139 rtl8139.c
        -nic model=pcnet pcnet.c
        -balloon virtio virtio-pci.c:
      
      untested changes:
      The following changes aren't tested.
      prep_pci.c: ppc-softmmu -M prep should cover, but core dumped.
      unin_pci.c(uni-north-pci): the caller is commented out.
      openpic.c: the caller is commented out in ppc_prep.c
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      b80d4a98
  13. 09 11月, 2009 2 次提交
  14. 02 10月, 2009 2 次提交
  15. 17 6月, 2009 1 次提交
  16. 04 5月, 2009 1 次提交
  17. 02 2月, 2009 1 次提交
  18. 26 1月, 2009 1 次提交
  19. 13 1月, 2009 1 次提交
  20. 18 11月, 2007 1 次提交
  21. 04 11月, 2007 1 次提交
  22. 29 10月, 2007 1 次提交
    • J
      * sort the PowerPC target object files · 3cbee15b
      j_mayer 提交于
      * make PowerPC NVRAM accessors generic to be able to use a MacIO NVRAM
        instead of the M48T59 one
      * split PowerMac targets code:
       - move all PowerMac related definitions and prototypes into hw/ppc_mac.h
       - add hw/mac_dbdma.c, hw/mac_nvram.c and macio.c
         which implements shared PowerMac devices
       - define the g3bw machine in a new hw/ppc_oldworld.c file
      * Fix the g3bw target:
       - fix the Grackle host PCI device
       - connect the Heathrow PIC to the PowerPC 6xx bus pins
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3475 c046a42c-6fe2-441c-8c8c-71466251a162
      3cbee15b