summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Compile msix only onceBlue Swirl2009-09-206-29/+39
| | | | | | Get page size in device init. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile loader only onceBlue Swirl2009-09-2036-96/+234
| | | | | | | | | | | | | 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: Blue Swirl <blauwirbel@gmail.com>
* Compile qemu-config only onceBlue Swirl2009-09-202-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile wdt_i6300esb only onceBlue Swirl2009-09-204-4/+5
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix mingw32 compileBlue Swirl2009-09-201-0/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Probe for fdatasync()Blue Swirl2009-09-202-1/+17
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* PPC: make system bus parent of PCI busBlue Swirl2009-09-192-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix indentationStefan Weil2009-09-191-3/+3
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* ESP: convert to VMStateBlue Swirl2009-09-191-42/+22
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-alpha: fix extlh instructionVince Weaver2009-09-181-5/+6
| | | | | | | | | The extlh instruction on Alpha currently doesn't work properly. It's a combination of a cut/paste bug (16 where it should be 32) as well as a "shift by 64" bug. Signed-off-by: Vince Weaver <vince@csl.cornell.edu> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-ppc: optimize slw/srw/sld/srdAurelien Jarno2009-09-181-49/+49
| | | | | | Remove a temp local variable and a jump by computing a mask with shifts. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* audio: use correct email addressmalc2009-09-182-2/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: internal API changemalc2009-09-1812-81/+33
| | | | | | | | | pcm_ops.run_out now takes number of live samples (which will be always greater than zero) as a second argument, every driver was calling audio_pcm_hw_get_live_out anyway with exception of fmod which used audio_pcm_hw_get_live_out2 for no good reason. Signed-off-by: malc <av1474@comtv.ru>
* sdlaudio: use correct function names in sdl_XXX callsmalc2009-09-181-3/+3
| | | | Signed-off-by: malc <av1474@comtv.ru>
* oss: use audio_pcm_hw_clip_outmalc2009-09-181-47/+46
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa: use audio_pcm_hw_clip_outmalc2009-09-181-45/+43
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: introduce audio_pcm_hw_clip_out helper functionmalc2009-09-182-0/+25
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: use muldiv64 where it makes sensemalc2009-09-186-9/+12
| | | | Signed-off-by: malc <av1474@comtv.ru>
* coreaudio: fix sloppy "posixification" by ↵malc2009-09-181-1/+1
| | | | | | 1ea879e5580f63414693655fcf0328559cdce138 Signed-off-by: malc <av1474@comtv.ru>
* tcg: fix size of local variables in tcg_gen_bswap64_i64Stefan Weil2009-09-161-5/+4
| | | | | | | t0, t1 must be 64 bit values, not 32 bit. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* qemu serial: lost tx irqs (affecting FreeBSD's new uart(4) driver)Juergen Lock2009-09-161-6/+4
| | | | | | | | | | | | | Well one problem seems to be the rx condition, ... if ((s->ier & UART_IER_RDI) && (s->lsr & UART_LSR_DR)) is not enough to trigger an irq, yet still causes the following conditions not to be checked anymore at all. Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Acked-by: Jan Kiszka <jan.kiszka@web.de> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* fix typo in configure --helpAndre Przywara2009-09-161-1/+1
| | | | | Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* escc: fix IRQ routing, broken by 6c319c82223a1766c5d64a20051e5c6ab7b53951Aurelien Jarno2009-09-161-2/+2
| | | | | | | The logic of Zilog makes channel B the first device and channel A the second one. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* ide/isa: convert to qdev.Gerd Hoffmann2009-09-155-14/+58
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/pci: convert to qdev.Gerd Hoffmann2009-09-152-73/+123
| | | | | | | | | | | | | | | With this patch applied ide drives (when attached to a pci adapter) can be created via -device, like this: -drive if=none,id=mydisk,file=/path/to/disk.img -device ide-drive,drive=mydisk,bus=ide.0,unit=0 Note that creating a master on ide1 doesn't work that way. That is a side effect of qemu creating a cdrom automagically even if you don't ask for it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/pci: fix indentionGerd Hoffmann2009-09-151-6/+6
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/qdev: add ide bus.Gerd Hoffmann2009-09-152-1/+147
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* split away drive init from ide_init2()Gerd Hoffmann2009-09-152-32/+40
| | | | | | | | | This allows the ide bus being initialized without drives attached and the drives being attached and initialization later on as separate step. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* support media=cdrom for if=noneGerd Hoffmann2009-09-151-1/+1
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* qdev/pci: add pci_create_noinit()Gerd Hoffmann2009-09-152-3/+9
| | | | | | | | Like pci_create_simple() but doesn't call qdev_init(), so one can set properties before initializing the device. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* mips malta: ensure that the serial ports are associated with a deviceAurelien Jarno2009-09-151-0/+9
| | | | | | | The serial ports should be present even if associated with a null device as some firmware wants to initialize them. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* hw/serial: don't create a char device if none is specifiedAurelien Jarno2009-09-151-1/+6
| | | | | | | When creating null devices, there is no way to ensure the unicity of the labels. Bail out with an error message instead. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* curses: save 250MB of memoryAurelien Jarno2009-09-151-3/+0
| | | | | | | | | | Don't call curses_resize() at the end of curses_display_init() as height and width are not yet defined. It will be called later by code from vl.c. This save 250MB of memory when using -curses. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Revert "Open chr device for all serial ports"Aurelien Jarno2009-09-141-9/+7
| | | | This reverts commit 55338f1dd4648d78ee130d83a92f1059ff1f3887.
* Fix breakage by f80237d45032fbc429aba3b597175fb544a11378 for ISA-less targetsBlue Swirl2009-09-142-8/+8
| | | | | | Move ISA bus to HW library. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Open chr device for all serial portsAurelien Jarno2009-09-141-7/+9
| | | | | | | | | | | Now that labels must be unique, the chr devices can't be opened anymore within the serial port code (in case they are not already opened in vl.c), as they end up with the same label. Instead opened so non-assigned one directly in vl.c, with a different label. This make MIPS Malta board emulation working again. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: fix single-steppingNathan Froyd2009-09-141-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Single-stepping branches on MIPS didn't work right, because the generation of EXCP_DEBUG happened after the generation of the code to exit the current TB. That is, given the code: bne v0,v1,target nop ... target: addu v0,v0,v1 1: when you single-stepped through the NOP, execution wouldn't actually halt until you reached the label `1'. This patch corrects that and also changes single-stepping so that a branch and its delay slot are executed as one instruction for the purposes of single-stepping. This behavior is comparable to what other MIPS tools (e.g. MIPSsim with MDI) do. GDB avoids placing breakpoints in branch delay slots, so this change doesn't break anything on the GDB side. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* unbreak ppc/prepGerd Hoffmann2009-09-141-1/+4
| | | | | | | | | | Changes: * added isa bus, hooked up to the system bus. Not sure this is correct, but 'info pci' lists lists no pci-isa bridge in the machine ...). * switches the default cpu to one which actually works. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add an ISA bus version of m48t59Blue Swirl2009-09-143-17/+80
| | | | | | | Many thanks to Gerd Hoffmann for finding and fixing a bug in the initial version. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Linux task preemption on Versatile boardDaniel Jacobowitz2009-09-141-2/+3
| | | | | | | | | | Recent versions of the Linux kernel will not preempt CPU-intensive tasks unless the clock used by sched_clock() works. On -M versatilepb that's the 24MHz timer in the system controller. It's a very simple timer, so implement it. Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* pflash_cfi01: Correct debug build, no functional changes.Edgar E. Iglesias2009-09-141-11/+12
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* ne2000-isa: Do not free memory owned by qdevmalc2009-09-141-2/+0
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa: Use proper value when testing returned events in alsa_poll_handlermalc2009-09-141-4/+6
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa/oss: Remove fd transfer handlers before closing oss/alsa fd/handlemalc2009-09-142-27/+32
| | | | Signed-off-by: malc <av1474@comtv.ru>
* configure: change "found" to "find"Sebastian Herbszt2009-09-131-1/+1
| | | | | | | | Change "ERROR: configure was not able to found it" to "ERROR: configure was not able to find it". Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Revert "Fix Sparc/Linux host breakage by ↵Blue Swirl2009-09-132-23/+1
| | | | | | | | df70204db53e3611af986f434e74a882bce190ca" This reverts commit 91b40c5be84a478e98c0416325844a7f66d0efae. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix sparc.ldBlue Swirl2009-09-131-0/+20
| | | | | | | Makes 91b40c5be84a478e98c0416325844a7f66d0efae unnecessary. Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* audio: Fix typo that broke QEMU_AUDIO_ADC_TRY_POLLJan Kiszka2009-09-131-1/+1
| | | | | Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: malc <av1474@comtv.ru>
* Fix Sparc/Linux host breakage by df70204db53e3611af986f434e74a882bce190caBlue Swirl2009-09-132-1/+23
| | | | | | | | | | | While i386, x86_64 and Sparc64/OpenBSD still worked after df70204db53e3611af986f434e74a882bce190ca, Sparc32 and Sparc64 Linux hosts broke. Partially revert the commit: make the restored code conditional to !CONFIG_USER_PIE. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc64: make system bus parent of PCI busBlue Swirl2009-09-131-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
OpenPOWER on IntegriCloud