summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update SaveVM versionsJuan Quintela2009-09-041-15/+25
| | | | | | | | | | Now that we have all fields belonging to a PCIDevice, save each field on the device that it belongs. This means moving pci_irq_levels from PCII440FXState to PIIX3State. Old formats are loaded, but we only save on the new saner format. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pci_irq_levels[] belong to PIIX3StateJuan Quintela2009-09-041-7/+6Star
| | | | | | | With previous cleanups, now it is possible to put it where it belongs Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Save irq_state into PCII440FXStateJuan Quintela2009-09-041-0/+2
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* We can add piix3_dev now to PIIX3IrqStateJuan Quintela2009-09-041-6/+6
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fold piix3_init() intto i440fx_initJuan Quintela2009-09-043-16/+8Star
| | | | | | | i440fx_init will now work properly if we don't setup piix3 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Introduce PIIX3IrqState for piix3 irq's stateJuan Quintela2009-09-041-3/+9
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Create PIIX3State instead of using PCIDevice for PIIX3Juan Quintela2009-09-041-9/+14
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* We want the argument pass to set_irq to be opaqueJuan Quintela2009-09-0413-19/+37
| | | | | | | piix_pci want to pass more things that the pic Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Move smm_enabled and isa_memory_mappings to PCII440FXStateJuan Quintela2009-09-041-10/+10
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Use PCII440FXState instead of generic PCIDeviceJuan Quintela2009-09-043-27/+38
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* low_set_irq is not used anywhereJuan Quintela2009-09-041-2/+0Star
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Split piix4 support from piix_pci.cJuan Quintela2009-09-044-73/+130
| | | | | | | Now mips_malta uses piix4 and pc's use piix_pci definitions Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* piix4 don't use pci_irq_levels at allJuan Quintela2009-09-041-2/+0Star
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* microblaze: Trap on illegal load/store sizes.Edgar E. Iglesias2009-09-041-0/+13
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Correct FPU decoding masks.Edgar E. Iglesias2009-09-041-2/+2
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Compute masks for alignment checks at translation time.Edgar E. Iglesias2009-09-032-15/+6Star
| | | | | Thanks to Blue Swirl for reporting. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Trap on bus accesses to unmapped areas.Edgar E. Iglesias2009-09-033-6/+36
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: MMU shows more respect to synthesis config.Edgar E. Iglesias2009-09-033-6/+67
| | | | | | | The microblaze MMU can be synthesized in different configurations. Have the MMU model show more respect to the chosen configuration. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Trap on unaligned data accesses.Edgar E. Iglesias2009-09-033-2/+45
| | | | | | Untested... Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Trap on divizions by zero.Edgar E. Iglesias2009-09-032-2/+6
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Correct mfs into r0.Edgar E. Iglesias2009-09-031-0/+4
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Catch illegal insns and privilege violations.Edgar E. Iglesias2009-09-032-1/+111
| | | | | | | | | Raise illegal instruction exceptions when executing instructions that require units not available on the particulare microblaze configuration. Also trap priviliege violations made by userspace. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Add infrastructure for supporting hw exceptions.Edgar E. Iglesias2009-09-032-3/+49
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Clear exception in dslot ESR bit if not in dslot.Edgar E. Iglesias2009-09-031-0/+1
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Correct MMU debug log.Edgar E. Iglesias2009-09-031-1/+1
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* Fix warning on x86_64Kirill A. Shutemov2009-09-021-2/+2
| | | | | | | | | | | | audio/esdaudio.c: In function 'qesd_thread_out': audio/esdaudio.c:136: error: format '%d' expects type 'int', but argument 3 has type 'ssize_t' audio/esdaudio.c: In function 'qesd_thread_in': audio/esdaudio.c:366: error: format '%d' expects type 'int', but argument 3 has type 'ssize_t' Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: malc <av1474@comtv.ru>
* Sparc32: port sun4c interrupt controller to VMState designBlue Swirl2009-08-311-22/+12Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port timers to VMState designBlue Swirl2009-08-311-37/+25Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: timer field is never NULLBlue Swirl2009-08-311-30/+12Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add VMState support for ptimersBlue Swirl2009-08-312-0/+28
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* esp (sparc32) Extra scsi data.Artyom Tarasenko2009-08-311-1/+2
| | | | | | | | | | | | | | | | > ESP: Message Accepted (12) > ESP: Transfer status (sense=0) > ESP: read reg[5]: 0x20 > ESP: read reg[4]: 0x07 > ESP: read reg[7]: 0x02 > Extra scsi data. Fatal error. It looks like "Message Accepted" shouldn't write a response. At least ESP_RFLAGS must definetely be 0. With the following fix OBP goes one step further: Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix compiler warningsStefan Weil2009-08-311-2/+2
| | | | | | | | | | | | | | | | | | | | Starting with commit df7a86ed735eafefbd046c8cad7134652fe3f600, mingw32 builds result in a compiler warning for dns_addr: CC slirp/slirp.o /home/stefan/src/qemu/savannah/qemu/slirp/slirp.c:50: warning: missing braces around initializer /home/stefan/src/qemu/savannah/qemu/slirp/slirp.c:50: warning: (near initialization for ‘dns_addr.S_un’) Removing the assignment fixes the warning without the need of special code for mingw32 (and also saves some bytes in the resulting binary). To fix another potential compiler warning, the missing 'static' attribute was added. The same changes were applied to dns_addr_time. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix breakage due to __threadBlue Swirl2009-08-311-1/+1
| | | | | | Thread-local storage is not supported on all hosts. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix gcc 3 warning: comparison is always true due to limited range of data typeBlue Swirl2009-08-291-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix gcc 3 warning about uninitialized variableBlue Swirl2009-08-291-1/+1
| | | | | | If nb_sectors is 0, cluster_offset will not be initialized. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port Slavio misc devices to VMState designBlue Swirl2009-08-291-38/+19Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port ECC memory controller to VMState designBlue Swirl2009-08-291-33/+13Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port IOMMU to VMState designBlue Swirl2009-08-281-25/+12Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port DMA controller to VMState designBlue Swirl2009-08-281-22/+11Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port TCX to VMState designBlue Swirl2009-08-281-33/+21Star
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Sparc32: port interrupt controller to VMState designBlue Swirl2009-08-281-25/+28
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Update OpenBIOS images to r569Blue Swirl2009-08-284-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Suppress kraxelismsBlue Swirl2009-08-282-3/+5
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparc64 breakage: add dummy ISA irqsBlue Swirl2009-08-281-0/+8
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix merge of 59f2a78793b6d17634f39646d604e84af51e0919Blue Swirl2009-08-281-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Don't compile aio code if CONFIG_LINUX_AIO is undefinedStefan Weil2009-08-281-1/+7
| | | | | | | | | This patch fixes linker errors when building QEMU without Linux AIO support. It is based on suggestions from malc and Kevin Wolf. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix sb16 breakage due to unassigned s->irqmalc2009-08-281-0/+1
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Fix formattingmalc2009-08-282-2/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Merge commit 'linux-user/linux-user-for-upstream' into stagingAnthony Liguori2009-08-285-59/+510
|\
| * linux-user: Rewrite mmap_find_vma() to work fine on 64-bit hosts with 32-bit ↵Kirill A. Shutemov2009-08-251-36/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | targets qemu's page table can be incomple if /proc/self/maps is unavailable or host allocating a memory with mmap(), so we can't use it to find free memory area. New version mmap_find_vma() uses mmap() without MAP_FIXED to find free memory. Tested-by: Martin Mohring <martin.mohring@opensuse.org> : quite some time ago this patch had been sent by Kirill to the QEMU ml. At that time, the patch was rejected. Now we found out why the current user mode memory allocator sometimes fails: - Kernel Bug linux/fs/proc/task_mmu.c (fixed after 2.6.27) http://bugzilla.kernel.org/attachment.cgi?id=17219 - use of proc file system to find memory mappings => bad idea So I please apply the attached patch from Kirill to qemu to fix this longstanding bug, because it causes all older linux distros (using kernel 2.6.26 or older) to fail the QEMU memory allocator in user mode. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>