aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-05-20migrate.c: migrate_fd_put_buffer: Do not busyloop: stop writing if EWOULDBLOCKUri Lublin1-1/+1
The migration code is non-blocking, designed for live migration. Practically migrate_fd_put_buffer busy-loops trying to write, as on many machines EWOULDBLOCK==EAGAIN (look in include/asm-generic/errno.h). Signed-off-by: Uri Lublin <uril@redhat.com>
2009-05-20kvm: work around supported cpuid ioctl() brokennessMark McLoughlin1-0/+3
KVM_GET_SUPPORTED_CPUID has been known to fail to return -E2BIG when it runs out of entries. Detect this by always trying again with a bigger table if the ioctl() fills the table. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2009-05-20remove gcc 3.x requirement from documentationHollis Blanchard1-10/+0
This text is no longer accurate. After the patch is applied, the generated version at http://www.nongnu.org/qemu/qemu-doc.html should be regenerated. This patch is also a candidate for the stable branch. (The URL above is probably generated from the stable branch anyways, so maybe it goes without saying.) Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2009-05-20Remove dead codemalc1-14/+7
Signed-off-by: malc <av1474@comtv.ru>
2009-05-19Format per CODING_STYLEmalc1-6/+10
Signed-off-by: malc <av1474@comtv.ru>
2009-05-19Abort on attempts to allocate zero bytesmalc1-2/+7
http://marc.info/?t=124267873300015&r=1&w=2 Signed-off-by: malc <av1474@comtv.ru>
2009-05-19Unbreak out-of-tree buildsmalc1-1/+1
Signed-off-by: malc <av1474@comtv.ru>
2009-05-19Hardware convenience libraryPaul Brook18-133/+248
The only target dependency for most hardware is sizeof(target_phys_addr_t). Build these files into a convenience library, and use that instead of building for every target. Remove and poison various target specific macros to avoid bogus target dependencies creeping back in. Big/Little endian is not handled because devices should not know or care about this to start with. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-19Disable >4G ram support on 32-bit targetsPaul Brook1-0/+4
If the target only has a 32-bit physical address space then the code to map >4G ram breaks horribly, and causes compiler warnings. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-19Only define __llseek if it is going to be usedPaul Brook1-1/+1
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-19Avoid implicit truncation compiler warningsPaul Brook1-2/+2
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-19Remove obsolete BIOS_SIZE from sysemu.hPaul Brook9-33/+14
BIOS_SIZE is no longer needed by vl.c, so there's no point having it in sysemu.h. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-18cris: First shot at qdev for CRIS interrupts.Edgar E. Iglesias6-48/+114
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-18etrax: Don't keep the passed irq pointer.Edgar E. Iglesias1-3/+3
Copy passed irq object at channel connect. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-18etrax: Remove unused eth irq line.Edgar E. Iglesias4-10/+6
The ethernet blocks irq line to report errors is unimplemented in QEMU. Remove it for now. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-18Syborg virtio bindings.Paul Brook3-0/+293
Implement Syborg device bindings for virtio-net. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-18Separate virtio PCI codePaul Brook14-300/+474
Split the PCI host bindings from the VRing transport implementation. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-17Only shutdown video subsytem in sdl_cleanupmalc1-1/+1
Depending on the order in which atexit handlers are called SDL might try to join on an audio thread without said thread ever being notified that it must stop, hence QEMU will forever block in pthread_join call. Signed-off-by: malc <av1474@comtv.ru>
2009-05-17Consistently use uint64_t for int propertiesPaul Brook2-3/+3
I apparently failed to do this properly on the first attempt. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-16ETRAX-PIC: Untabify.Edgar E. Iglesias1-88/+88
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-16ETRAX-TIMER: qdevify.Edgar E. Iglesias4-39/+38
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-16ETRAX-TIMER: Untabify.Edgar E. Iglesias1-229/+229
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-16ETRAX-SER: Untabify.Edgar E. Iglesias1-93/+93
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-16ETRAX-SER: qdevify.Edgar E. Iglesias4-44/+34
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-16ETRAX: Simplify PIC interface.Edgar E. Iglesias4-48/+36
Instead of exporting a custom structure to represent different interrupt types, just export the irq array and have the top elements point to the NMI lines. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-16support ELF_HWCAP for PPPCNathan Froyd1-0/+58
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
2009-05-16linux-user: ppc signal handlingNathan Froyd3-0/+604
Implement setup_{,rt_}frame and do_{,rt_}sigreturn for PPC 32-bit. Use the same TARGET_QEMU_ESIGRETURN hack as for MIPS to avoid clobbering register state on a sigreturn. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
2009-05-16target-ppc: expose cpu capability flagsNathan Froyd3-138/+140
Do this so other pieces of code can make decisions based on the capabilities of the CPU we're emulating. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
2009-05-15ETRAX: Correct passing of kernel command line.Edgar E. Iglesias2-4/+4
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-15fix ARMv7 data processing instructionsJuha Riihimäki1-13/+26
ARMv7 defines a new behavior for ARM data processing instructions compared to earlier architecture revisions; when the destination register is R15, a Branch and Exchange operation is executed rather than a simple Branch to the target address. This patch corrects the behavior of the emulation for the aforementioned operations. To be applied after applying the previous patch in this patch set. Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com> Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-15fix ARMv7 data processing instructionsJuha Riihimäki1-77/+111
Modernize parts of target-arm/translate.c in preparation for the modifications in the subsequent patch in this patch set. This is done in order to avoid writing new code to target-arm/translate.c that would use deprecated methods and/or variables. Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com> Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14Fix module initialization when more than 1 class is in useAnthony Liguori2-36/+26
Now that we're using enums for module types, it makes no sense to bother keeping a list of module types when we know exactly how many they are. Switching to an array simplifies the code and eliminates the aforementioned bug. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-14Syborg (Symbian Virtual Platform) boardPaul Brook13-0/+2110
A virtual reference platform for SymbianOS development/debugging. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14Fix warning on WIN32Anthony Liguori1-1/+0
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-14Fix build on Solaris and WIN32Anthony Liguori2-4/+24
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-14PXA SSI qdev conversionPaul Brook9-214/+263
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14Stellaris SSI qdev conversionPaul Brook7-80/+95
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14SSP bus frameworkPaul Brook4-1/+95
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14Stellaris I2C qdev conversionPaul Brook1-7/+18
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14I2C cleanupPaul Brook2-26/+0
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14Remove bogus omap i2c slave codePaul Brook1-67/+0
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14SMBus qdev conversionPaul Brook5-51/+78
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14TOSC DAC i2c qdev voncersionPaul Brook1-7/+22
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14TWL92230 qdev conversionPaul Brook3-46/+30
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14WM8750 qdev coversionPaul Brook4-21/+24
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14TMP105 qdev conversionPaul Brook3-12/+20
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14PXA2xx I2C slave qdev conversionPaul Brook1-13/+42
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14LM832x qdev conversionPaul Brook3-16/+23
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14MAX7310 I2C qdev conversionPaul Brook3-12/+19
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-14SSD0303 qdev conversionPaul Brook3-11/+17
Signed-off-by: Paul Brook <paul@codesourcery.com>