summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Drop --whole-archive and static librariesAndreas Färber2010-01-077-204/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Juan has contributed a cool Makefile infrastructure that enables us to drop static libraries completely: Move shared obj-y definitions to Makefile.objs, prefixed {common-,hw-,user-}, and link those object files directly into the executables. Replace HWLIB by HWDIR, specifying only the directory. Drop --whole-archive and ARLIBS in Makefiles and configure. Drop GENERATED_HEADERS dependency in rules.mak, since this rebuilds all common objects after generating a target-specific header; add dependency rules to Makefile and Makefile.target instead. v2: - Don't try to include /config.mak for user emulators - Changes to user object paths ("Quickfix for libuser.a drop") were obsoleted by "user_only: compile everything with -fpie" (Kirill A. Shutemov) v3: - Fix dependency modelling for tools - Remove comment on GENERATED_HEADERS obsoleted by this patch Signed-off-by: Andreas Färber <afaerber@opensolaris.org> Cc: Blue Swirl <blauwirbel@gmail.com> Cc: Palle Lyckegaard <palle@lyckegaard.dk> Cc: Ben Taylor <bentaylor.solx86@gmail.com> Cc: Juan Quintela <quintela@trasno.org> Cc: Kirill A. Shutemov <kirill@shutemov.name> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* vnc: Fix artifacts in hextile decodingAnthony Liguori2010-01-071-0/+2
| | | | | | | | | | | | 02c2b87 introduced a regression whereas the foreground color in a hextile update was not being properly invalidated leading to artifacts. It's still necessary to explicitly invalidate the foreground color with a SubrectColoured tile even though we no longer send a foreground color as part of the tile. Reported-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Cocoa: Use optimized drawing for the windowAndreas Färber2010-01-071-0/+1
| | | | | | | Default is NO. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Suppress window resize animationAndreas Färber2010-01-071-1/+1
| | | | | | | | | | | | | Disable the nice resize animation, to avoid drawing glitches following a guest's screen size change. Based on patch by Juha Riihimäki. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Juha Riihimäki <juha.riihimaki@nokia.com> Cc: Alexander Graf <alex@csgraf.de> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Shutdown when window is closedAndreas Färber2010-01-071-0/+5
| | | | | | | | | | | | | The application is not very useful once the guest window is closed. QEMU is not a document-based application; terminating it automatically saves the user another action and resembles SDL behavior. v2: - Use delegate method, suggested by Juha Riihimäki. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Juha Riihimäki <juha.riihimaki@nokia.com> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Don't unconditionally show the windowAndreas Färber2010-01-071-0/+10
| | | | | | | | | | | | | | | | | When QEMU was launched in no-graphic, Curses or VNC mode, don't run it as a Cocoa application. Based on patch by Alexander Graf. v1: - Avoid type mismatch warning for argv - Drop noCocoa variable - Coding Style changes Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Alexander Graf <agraf@suse.de> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Redraw the View asynchronouslyAndreas Färber2010-01-071-1/+1
| | | | | | | | | | | | Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html Based on patch by Juha Riihimäki. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Juha Riihimäki <juha.riihimaki@nokia.com> Cc: Alexander Graf <alex@csgraf.de> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Mark the View as opaqueAndreas Färber2010-01-071-0/+5
| | | | | | | | | | | | | | Default is NO. Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html Based on patch by Juha Riihimäki. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Juha Riihimäki <juha.riihimaki@nokia.com> Cc: Alexander Graf <alex@csgraf.de> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Fix compilation on Mac OS X v10.4 and earlierAndreas Färber2010-01-071-7/+10
| | | | | | | | | | | | | | | | | | | | | | NSView's enterFullScreenMode:withOptions: and exitFullScreenModeWithOptions: are available on v10.5 and later only. Undefined methods raise warnings and undefined constants result in errors. Reported by Ryan Schmidt. While at it, avoid a warning on v10.3.9, where MAC_OS_X_VERSION_10_4 is not defined. Spotted by John Arbuckle. Fix associated comments. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: John Arbuckle <programmingkidx@gmail.com> Cc: Ryan Schmidt <qemu-2009@ryandesign.com> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Silence type warningAndreas Färber2010-01-071-1/+1
| | | | | | | | | | | | | | Add const for "qemu" character literal, to avoid: warning: initialization discards qualifiers from pointer target type An earlier patch by John proposed to use char[5]. Since we do not modify the text and later copy it into malloc'ed memory, marking it as const seems sufficient. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: John Arbuckle <programmingkidx@gmail.com> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Silence warning on Big Endian hostAndreas Färber2010-01-071-1/+1
| | | | | | | | __LITTLE_ENDIAN__ is undefined on Big Endian host. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: John Arbuckle <programmingkidx@gmail.com> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: Silence warning for cocoa_keycode_to_qemuAndreas Färber2010-01-071-1/+1
| | | | | | | | | | Make cocoa_keycode_to_qemu static, to avoid: warning: no previous prototype for ‘cocoa_keycode_to_qemu’ Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: John Arbuckle <programmingkidx@gmail.com> Signed-off-by: malc <av1474@comtv.ru>
* Cocoa: ppc64 host supportAndreas Färber2010-01-071-0/+8
| | | | | | | | | | | | | | Fix integer usage in the Cocoa backend: NSInteger is long on LP64. http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/doc/uid/20000014-BBCFHHCD This makes the graphical display show up on a ppc64 host. v3: - Confine NSInteger to Mac OS X v10.5 and later Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: malc <av1474@comtv.ru>
* sparc64: clear exception_index with -1 valueIgor V. Kovalenko2010-01-061-1/+1
| | | | | Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Merge remote branch 'mst/for_anthony' into stagingAnthony Liguori2010-01-0622-198/+869
|\
| * list MST as pci layer maintainerMichael S. Tsirkin2009-12-231-1/+1
| | | | | | | | | | | | | | List MST as PCI maintainer so that people know whom to Cc on patches. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * piix_pci: add link to i440fx data sheet.Isaku Yamahata2009-12-231-0/+5
| | | | | | | | | | | | | | add link to i440fx data sheet. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * piix_pci: use range helper functionIsaku Yamahata2009-12-231-3/+3
| | | | | | | | | | | | | | use range helper function in i440fx_write_config(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * piix_pci: define symbolic value for PAM0, PAM6 and SMRAM.Isaku Yamahata2009-12-231-5/+12
| | | | | | | | | | | | | | | | Define symbolic value in i440fx configuration space for 0x59, 0x5f and 0x7f and use them. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * msix: use range helper function.Isaku Yamahata2009-12-231-1/+1
| | | | | | | | | | | | | | use range helper function in msix_write_config(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * acpi: use range helper function.Isaku Yamahata2009-12-231-1/+1
| | | | | | | | | | | | | | use range helper function in pm_write_config(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * gt64xxx: remove gt64120_{read, write}_config().Isaku Yamahata2009-12-231-12/+1
| | | | | | | | | | | | | | | | They call only pci_default_{read, write}_config(). So they aren't necessary. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: use pci_regs.hIsaku Yamahata2009-12-231-74/+3
| | | | | | | | | | | | | | | | include pci_regs.h and remove duplicated defines. And remove unused PCI_REVISION and PCI_SUBDEVICE_ID. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: import Linux pci_regs.hIsaku Yamahata2009-12-231-0/+665
| | | | | | | | | | | | | | | | Import Linux pci_regs.h. Later PCI register definitions in pci.h will be eliminated. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: s/PCI_SUBVENDOR_ID/PCI_SUBSYSTEM_VENDOR_ID/gIsaku Yamahata2009-12-232-2/+2
| | | | | | | | | | | | | | | | To match Linux PCI register definition, rename PCI_SUBVENDOR_ID to PCI_SUBSYSTEM_VENDOR_ID. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: remove PCIBus::config_reg.Isaku Yamahata2009-12-231-1/+0
| | | | | | | | | | | | | | PCIBus::config_reg isn't used anymore, so remove it. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| * pci: remove unused macroMichael S. Tsirkin2009-12-231-1/+0
| | | | | | | | | | | | | | | | | | | | PCI_STATUS_DEVSEL is unused, and it also has a different name in pci_regs.h Remove. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * usb-ohci: symbolic names for pci registersMichael S. Tsirkin2009-12-231-2/+4
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * usb-uhci: symbolic names for pci registersMichael S. Tsirkin2009-12-231-3/+4
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * ac97: symbolic names for pci registersMichael S. Tsirkin2009-12-231-26/+31
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * wdt_i6300esb: symbolic names for pci registersMichael S. Tsirkin2009-12-231-1/+1
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * es1370: symbolic names for pci registersMichael S. Tsirkin2009-12-231-14/+15
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * pci: add another devsel macroMichael S. Tsirkin2009-12-231-0/+1
| | | | | | | | | | | | | | | | will be used by ensoniq emulation Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * lsi: symbolic names for pci registersMichael S. Tsirkin2009-12-231-4/+6
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * vmware_vga: symbolic names for pci registersMichael S. Tsirkin2009-12-231-9/+11
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * cmd646: symbolic names for pci registersMichael S. Tsirkin2009-12-231-3/+4
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * piix: symbolic constantsMichael S. Tsirkin2009-12-231-5/+8
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * eepro100: symbolic names for pci registersMichael S. Tsirkin2009-12-231-17/+32
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change in meaningful ways. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * pci: add more status bitsMichael S. Tsirkin2009-12-231-0/+2
| | | | | | | | | | | | | | | | will be used by eepro100. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * pcnet: switch to symbolic names for pci registersMichael S. Tsirkin2009-12-232-9/+18
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * rtl: switch to symbolic names for pci registersMichael S. Tsirkin2009-12-231-6/+10
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * ne2000: switch to symbolic names for pci registersMichael S. Tsirkin2009-12-231-1/+2
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * e1000: switch to symbolic names for pci registersMichael S. Tsirkin2009-12-231-4/+7
| | | | | | | | | | | | | | | | | | No functional changes. I verified that the generated object binary does not change. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
| * Revert "Revert "pci: interrupt disable bit support""Michael S. Tsirkin2009-12-232-2/+28
| | | | | | | | This reverts commit d587e0787153f0224a6140c5015609963ceaabfb.
* | pass env to raise_exception if called outside of op_helper codeIgor V. Kovalenko2010-01-031-2/+5
| | | | | | | | | | | | | | | | - this fixes stepping with gdb, where do_unassigned_access may be called from gdb handler, outside of generated code Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | sparc64: switch to MMU global registers in more MMU related trapsIgor V. Kovalenko2010-01-031-3/+3
| | | | | | | | | | | | | | | | | | - extended range of MMU related traps which use MMU global registers, as listed in Ultrasparc-IIi document - no visible changes, since emulation do not cause added traps Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | target-i386: Fix "call im" on x86_64 when executing 32-bit codeAurelien Jarno2010-01-031-0/+2
| | | | | | | | | | | | | | | | | | Similarly to what is done in 32938e127f50a40844a0fb9c5abb8691aeeccf7e for "jmp im", trunc the immediate to 32-bit when not running in 64-bit mode. Reported-by: Kevin O'Connor <kevin@koconnor.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* | loader: don't call realloc(non_null, 0) when no symbols are presentAurelien Jarno2010-01-031-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | According to C99, realloc(non_null, 0) != free(non_null), that's why it is forbidden in QEMU. When there are no symbols, nsyms equals to 0. Free the syms structure and set it to NULL instead of reallocating it with a size of 0. This fixes -kernel with stripped kernels. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Acked-by: Michael S. Tsirkin <mst@redhat.com>
* | Sparc64: split DPRINTF into CPUIRQ and EBUS versionsBlue Swirl2009-12-301-8/+16
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Sparc64: fix compile with DEBUG_IRQ enabledBlue Swirl2009-12-301-1/+2
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
OpenPOWER on IntegriCloud