aurel32 [Mon, 9 Feb 2009 18:28:36 +0000 (18:28 +0000)]
Remove unused code from dyngen-exec.h
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6579
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 18:14:31 +0000 (18:14 +0000)]
Make qemu-img argument handling POSIX compliant
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6578
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 17:00:41 +0000 (17:00 +0000)]
Fix displaystate (r6344) regression in blizzard
Testcase:
qemu-system-arm -M n810 -kernel /dev/null -m 130
Without this patch, we get a segfault.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6577
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:50:00 +0000 (16:50 +0000)]
target-ppc: Model e500v{1,2} CPUs more accurately
The e500v1 chips only have single-precision floating point; don't say we
support the double-precision floating-point instructions on such chips.
Also add an e500v1 -cpu argument for a generic e500v1.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6576
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:49:50 +0000 (16:49 +0000)]
target-ppc: Model SPE floating-point instructions more accurately
Single-precision and double-precision floating-point instructions should
be separated into their own categories, since some chips only support
single-precision instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6575
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:49:40 +0000 (16:49 +0000)]
target-ppc: Add vrsqrtefp instruction
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6574
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:49:29 +0000 (16:49 +0000)]
target-ppc: Add vrefp instruction
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6573
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:49:20 +0000 (16:49 +0000)]
target-ppc: Add vct{u,s}xs instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6572
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:49:10 +0000 (16:49 +0000)]
target-ppc: Add vcmp{eq, ge, gt, b}fp{, .} instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6571
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:48:59 +0000 (16:48 +0000)]
target-ppc: Add vmaddfp and vnmsubfp instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6570
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:48:51 +0000 (16:48 +0000)]
target-ppc: Add v{add,sub}fp instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6569
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 9 Feb 2009 16:48:39 +0000 (16:48 +0000)]
target-ppc: Add v{max,min}fp instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6568
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 9 Feb 2009 15:50:36 +0000 (15:50 +0000)]
KVM: Get all cpuid values from function 2 (Amit Shah)
cpuid function 2 can have multiple values to describe cache behaviour.
Loop till we have fetched all the values.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6567
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 9 Feb 2009 15:50:31 +0000 (15:50 +0000)]
KVM: Fetch sub-leaf cpuid values for functions 4, 0xb, 0xd. (Amit Shah)
CPUID functions 4, 0xb and 0xd have sub-leaf values which depend on the
input value of ECX. Store these values as well.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6566
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 9 Feb 2009 15:50:08 +0000 (15:50 +0000)]
KVM: CPUID takes ecx as input value for some functions (Amit Shah)
The CPUID instruction takes the value of ECX as an input parameter
in addition to the value of EAX as the count for functions 4, 0xb
and 0xd. Make sure we pass the value to the instruction.
Also convert to the qemu-style whitespace for the surrounding code.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6565
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 17:17:52 +0000 (17:17 +0000)]
Remove GenOpFunc typedefs
This patch removes the GenOpFunc typedefs from exec-all.h, which are no
longer needed, now that dyngen has been removed.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6564
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 16:08:08 +0000 (16:08 +0000)]
Update Sparc images
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6563
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 16:01:38 +0000 (16:01 +0000)]
Fix UniNorth
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6562
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 16:01:01 +0000 (16:01 +0000)]
Use Mac NVRAM
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6561
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 15:59:36 +0000 (15:59 +0000)]
Switch Mac99 to OpenBIOS
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6560
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 8 Feb 2009 15:53:20 +0000 (15:53 +0000)]
QEMU Microsoft serial mouse emulation
Adds "msmouse" character device, which emulates a serial mouse.
Use it with -serial msmouse.
Signed-Off-By: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6559
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 8 Feb 2009 14:56:04 +0000 (14:56 +0000)]
Add load/save capability to rc4030 chipset
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6558
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 8 Feb 2009 14:51:19 +0000 (14:51 +0000)]
Additional VGA options for MIPS Malta
Support all kinds of pci vga cards (including none)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6557
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 8 Feb 2009 14:46:17 +0000 (14:46 +0000)]
fix use of host serial port
Signed-off-by: David Ahern <daahern@cisco.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6556
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 13:05:12 +0000 (13:05 +0000)]
Use CMD646 IDE for now
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6555
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 12:50:56 +0000 (12:50 +0000)]
Load 32 bit ELF BIOS images also on PPC64
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6554
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 8 Feb 2009 12:49:13 +0000 (12:49 +0000)]
Rename ppc_chrp.c to ppc_newworld.c
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6553
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 7 Feb 2009 15:20:14 +0000 (15:20 +0000)]
Fix bug in omap_sx1.c introduced by r6344
This patch changes the QEMUMachine init function not to take a
DisplayState as an argument because is not needed any more;
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6552
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 7 Feb 2009 15:19:40 +0000 (15:19 +0000)]
Fix tosa_dac_recv warning
This patch fixes:
/scratch/froydnj/qemu.git/hw/tosa.c:176: warning: no previous prototype for 'tosa_dac_recv'
by making the function static.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6551
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 7 Feb 2009 15:19:20 +0000 (15:19 +0000)]
Fix cpu_arm_handle_mmu_fault warning
This patch fixes:
/scratch/froydnj/qemu.git/target-arm/helper.c:451: warning: no previous prototype for 'cpu_arm_handle_mmu_fault'
by moving the declaration of the function to cpu.h from exec.h. cpu.h
seems to be the place most other ports declare the corresponding
function.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6550
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 7 Feb 2009 15:18:47 +0000 (15:18 +0000)]
SH4: fix TMU init
Init the TMU and the ptimer with the correct cpu reset value
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6549
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 7 Feb 2009 15:18:14 +0000 (15:18 +0000)]
SH7750/51: add register BCR3, BCR4, PCR, RTCOR, RTCNT, RTCSR, SDMR2, SDMR3 and fix BCR2 support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6548
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 7 Feb 2009 10:48:26 +0000 (10:48 +0000)]
Add it_shift
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6547
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 7 Feb 2009 09:51:59 +0000 (09:51 +0000)]
Fix VGA RAM offsets
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6546
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 6 Feb 2009 21:37:40 +0000 (21:37 +0000)]
Fix SIGSEGV crash in slirp networking code
Fix SIGSEGV crash in networking code (bug was introduced in r6288).
Thanks to Gleb Natapov for finding this fix.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6545
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 6 Feb 2009 21:30:02 +0000 (21:30 +0000)]
Add savevm and reset support for OpenPic
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6544
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 6 Feb 2009 00:49:42 +0000 (00:49 +0000)]
Revert part of 6531, fix build failure
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6543
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 6 Feb 2009 00:19:42 +0000 (00:19 +0000)]
Replace exit() in oom_check with abort()
So that we can get a core dump with a stack trace.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6542
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 6 Feb 2009 00:15:19 +0000 (00:15 +0000)]
Revert changes to fmopl.c
fmopl.c was taken from MAME and doesn't include QEMU header files so we cannot
use qemu_malloc in it. It happens to build because C is a silly language.
Unfortunately, it doesn't play nicely with the QEMU headers so lets just revert
the changes that were made to it.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6541
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:32 +0000 (22:36 +0000)]
qemu:virtio-net: Add VLAN filtering (Alex Williamson)
Use the control virtqueue to allow the guest to enable and manipulate
a VLAN filter table. This allows us to drop more packets the guest
doesn't want to see. We define a new VLAN class for the control
virtqueue with commands ADD and DEL with usage defined in virtio-net.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6540
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:28 +0000 (22:36 +0000)]
qemu:virtio-net: Add additional MACs via a filter table (Alex Williamson)
Create a filter table and allow the guest to populate it with the
MAC class control commands. We manage the size and usage of the
filter table including enabling promiscuous and all-multi modes
as necessary. The guest should therefore assume the table is
infinite. Eventually this might allow us to bind directly to a
hardware NIC and manipulate a physical MAC filter.
The specifics of the TABLE_SET command are documented in
virtio-net.h. Separate buffers in the same command are used
for unicaste and multicast addresses for priority and
sychronization. With this we can export the VIRTIO_NET_F_CTRL_RX
feature bit.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6539
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:24 +0000 (22:36 +0000)]
qemu:virtio-net: Enable filtering based on MAC, promisc, broadcast and allmulti (Alex Williamson)
Make use of the new RX_MODE control virtqueue class by dropping
packets the guest doesn't want to see.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6538
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:20 +0000 (22:36 +0000)]
qemu:virtio-net: Add promiscuous and all-multicast mode bits (Alex Williamson)
Add a new RX_MODE control virtqueue class with commands PROMISC and
ALLMULTI and usage documented in virtio-net.h allowing the guest to
manipulate packet receiving options. We don't export a feature for
this until we also add the MAC filter table.
Note, for compatibility with older guest drivers we need to default
to promiscuous.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6537
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:16 +0000 (22:36 +0000)]
qemu:virtio-net: Add a virtqueue for control commands from the guest (Alex Williamson)
This will be used for RX mode, MAC table, VLAN table control, etc...
The control transaction consists of one or more "out" sg entries and
one or more "in" sg entries. The first out entry contains a header
defining the class and command. Additional out entries may provide
data for the command. A response via the ack entry is required
and the guest will typically be waiting for it.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6536
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:12 +0000 (22:36 +0000)]
qemu:virtio-net: Define ETH_ALEN for use when manipulating MAC addresses (Alex Williamson)
Makes it much easier to search too.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6535
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:08 +0000 (22:36 +0000)]
qemu:virtio-net: Allow setting the MAC address via set_config (Alex Williamson)
Allow the guest to write to the MAC address config space and update
the network info string when it does. Rename get_config for symmetry.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6534
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:36:04 +0000 (22:36 +0000)]
qemu:virtio-net: Save status and add some save infrastructure (Alex Williamson)
The status register should probably be saved since its guest visible.
Also add a little bit if infrastructure for handling various save
revisions.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6533
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 5 Feb 2009 22:33:36 +0000 (22:33 +0000)]
target-ppc: change instruction name vrlogefp into vlogefp
Thanks to Nathan Froyd for noticing that.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6532
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:06:18 +0000 (22:06 +0000)]
toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6531
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:06:11 +0000 (22:06 +0000)]
targets: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6530
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:06:05 +0000 (22:06 +0000)]
hw: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6529
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:05:58 +0000 (22:05 +0000)]
audio: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6528
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:05:53 +0000 (22:05 +0000)]
block: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6527
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 22:05:49 +0000 (22:05 +0000)]
Terminate emulation on memory allocation failure (Avi Kivity)
Memory allocation failures are a very rare condition on virtual-memory
hosts. They are also very difficult to handle correctly (especially in a
hardware emulation context). Because of this, it is better to gracefully
terminate emulation rather than executing untested or even unwritten recovery
code paths.
This patch changes the qemu memory allocation routines to terminate emulation
if an allocation failure is encountered.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6526
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 21:24:02 +0000 (21:24 +0000)]
Convert IDE to use new dma helpers (Avi Kivity)
Use the new dma block helpers to perform dma disk I/O.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6525
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 21:23:58 +0000 (21:23 +0000)]
Introduce block dma helpers (Avi Kivity)
These helpers perform read/write requests on entire scatter/gather lists,
relieving the device emulation code from mapping and unmapping physical
memory, and from looping when map resources are exhausted.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6524
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 21:23:54 +0000 (21:23 +0000)]
Add qemu_iovec_reset() (Avi Kivity)
Add a helper to zero out an existing iovec. Removes the need to deallocate
and reallocate it.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6523
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 5 Feb 2009 21:23:50 +0000 (21:23 +0000)]
Add a scatter-gather list type and accessors (Avi Kivity)
Scatter-gather lists are used extensively in dma-capable devices; a
single data structure allows more code reuse later on.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6522
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 5 Feb 2009 20:22:07 +0000 (20:22 +0000)]
Add debug, savevm and reset support for UniNorth
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6521
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 5 Feb 2009 20:20:29 +0000 (20:20 +0000)]
Use qemu_ram_alloc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6520
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 5 Feb 2009 13:42:57 +0000 (13:42 +0000)]
target-ppc: add vrlogefp instruction
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6519
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 5 Feb 2009 13:42:47 +0000 (13:42 +0000)]
soft-float: add float32_log2() and float64_log2()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6518
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Wed, 4 Feb 2009 20:39:09 +0000 (20:39 +0000)]
Properly initialize len argument of sysctl and include stdio.h (perror)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6517
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 4 Feb 2009 14:08:08 +0000 (14:08 +0000)]
target-ppc: fix previous commit
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6516
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 4 Feb 2009 13:52:39 +0000 (13:52 +0000)]
target-ppc: use the new float constants
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6515
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 4 Feb 2009 13:52:27 +0000 (13:52 +0000)]
softfloat: add a 1.0 constant for float32 and float64
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6514
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 4 Feb 2009 13:52:17 +0000 (13:52 +0000)]
Add vcf{u,s}x instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6513
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 4 Feb 2009 13:52:03 +0000 (13:52 +0000)]
Add vrfi{m,n,p,z} instructions
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6512
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 4 Feb 2009 09:05:53 +0000 (09:05 +0000)]
Add various NaN-handling macros
These simplify the implementation of the floating-point Altivec
instructions and reduce clutter.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6511
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Tue, 3 Feb 2009 23:06:34 +0000 (23:06 +0000)]
Partialy fix mmap at EOF for large pagesize targets in user-mode.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6510
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 3 Feb 2009 22:45:00 +0000 (22:45 +0000)]
Remove accidental addition of local patch.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6509
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:56:09 +0000 (19:56 +0000)]
Make mtvscr use a helper
Do this so we can set float statuses once per mtvscr, rather than once
per Altivec instruction.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6508
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:55:59 +0000 (19:55 +0000)]
Add calls to initialize VSCR on appropriate machines
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6507
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:55:51 +0000 (19:55 +0000)]
Rename spe_status to vec_status
Only one of Altivec and SPE will be available on a given chip.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6506
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:55:43 +0000 (19:55 +0000)]
Add f field to ppc_avr_t
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6505
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:55:35 +0000 (19:55 +0000)]
SH4: Fix warning when compiling sh7750_regnames.c
This patch fixes a warning when compiling sh7750_regnames.c which is
caused by sh7750_regnames.h (which contains the prototype of regname())
not being included.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6504
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:55:26 +0000 (19:55 +0000)]
linux-user: Remove incorrect break;
Reported-By: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6503
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Tue, 3 Feb 2009 19:55:13 +0000 (19:55 +0000)]
Fix compilation of PPC64 targets with DEBUG_TCGV enabled
The attached patch fixes compilation of PPC64 targets with DEBUG_TCGV
enabled.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6502
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 17:10:57 +0000 (17:10 +0000)]
Add phenom CPU descriptor (Alexander Graf)
As part of my ongoing effort to make nested SVM useful, I started working to get
VMware ESX run inside KVM.
VMware couples itself pretty tightly to the CPUID, so it's a good idea to emulate
a machine that officially supports SVM and should thus exploit the powers of
nested virtualization.
This patch adds a Phenom CPU identifier, that resembles a real-world phenom
CPU as closely as possible.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6501
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 17:10:52 +0000 (17:10 +0000)]
Implement FFXSR (Alexander Graf)
Newer AMD CPUs have the FFXSR capability. This leaves out XMM
register in FXSAVE/FXRESTORE when in CPL=0 and 64-bit mode.
This is required for Hyper-V.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6500
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:54 +0000 (15:58 +0000)]
Add zlib encoding support (Alexander Graf)
This patch adds zlib encoding support for VNC. It basically runs
the raw traffic through zlib, providing a pretty good compression
ratio.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6499
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:51 +0000 (15:58 +0000)]
Move the framebuffer update package out (Alexander Graf)
Currently the send_framebuffer_update_raw and send_framebuffer_update_hextile
respectively send a send_framebuffer_update packet themselves. We need to reuse
send_framebuffer_update_raw for zlib encoding though, so let's move it out.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6498
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:47 +0000 (15:58 +0000)]
Move buffer functions up (Alexander Graf)
We will need to use buffer functions in code that will end up being
below the current buffer functions. In order to not introduce any
function stub defines, let's just move them up.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6497
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:43 +0000 (15:58 +0000)]
Add some tight awareness to vnc.c (Alexander Graf)
This patch enables the vnc server to understand fundamental tight extensions.
It changes from a "Hextile or not" scheme when sending framebuffer updates to
a "preferred encoding", namely the last one set.
While this is not perfect, as actually a list of "preferred encodings" should
be kept, it's good enough for now.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6496
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:38 +0000 (15:58 +0000)]
Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf)
While running with debugging enabled, I found an #if testing for
an undefined value, not defined(value). This patch fixes that.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6495
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:29 +0000 (15:58 +0000)]
Use VNC protocol defines (Alexander Graf)
Now that we have nice defines for all sorts of constants, let's
use them!
This patch also takes the "feature variables", currently called has_*
into a single feature int. This way adding new features is a lot
easier and doesn't clutter the VncState struct.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6494
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 2 Feb 2009 15:58:25 +0000 (15:58 +0000)]
Split VNC defines to vnc.h (Alexander Graf)
The VNC protocol contains quite some constants, some of which are
currently hardcoded in the vnc.c code. This is not exactly pretty.
Let's move all those constants out to vnc.h, so they are clearly
separated. While at it, I also included other defines that will be
used later in this patch series.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6493
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Sun, 1 Feb 2009 22:19:27 +0000 (22:19 +0000)]
Replace noreturn with QEMU_NORETURN
Thanks to Robert Riebisch for analysis [1]
[1] http://marc.info/?l=qemu-devel&m=
123352293319271&w=2
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6492
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 1 Feb 2009 19:26:20 +0000 (19:26 +0000)]
Add and use #defines for PCI device classes
This patch adds and uses #defines for PCI device classes and subclases,
using a new pci_config_set_class() function, similar to the recently
added pci_config_set_vendor_id() and pci_config_set_device_id().
Change since v1: fixed compilation of hw/sun4u.c
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6491
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 1 Feb 2009 12:01:04 +0000 (12:01 +0000)]
Update #defines for PCI vendor and device IDs from OpenBIOS and Linux
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6490
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 20:39:41 +0000 (20:39 +0000)]
PowerPC: IDE DB-DMA support
This patches allows powermac IDE interface to use DB-DMA.
This implementation uses only synchronous I/O.
Signed-off-by: Laurent Vivier <Laurent@lvivier.info>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6489
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 20:39:32 +0000 (20:39 +0000)]
PowerPC: mac-io DB-DMA support
This patch adds powermac Descriptor-Based DMA.
It is used by mac-io based IDE, ethernet, sounds and serial devices.
Signed-off-by: Laurent Vivier <Laurent@lvivier.info>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6488
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 20:15:41 +0000 (20:15 +0000)]
pl031: remove unused variable
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6487
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 20:15:32 +0000 (20:15 +0000)]
linux-user: fix signal.c warning
This patch fixes:
linux-user/signal.c:1403: warning: no previous prototype for 'do_sigreturn_v1'
linux-user/signal.c:1473: warning: no previous prototype for 'do_sigreturn_v2'
linux-user/signal.c:1511: warning: no previous prototype for 'do_rt_sigreturn_v1'
linux-user/signal.c:1552: warning: no previous prototype for 'do_rt_sigreturn_v2'
by making the appropriate functions static.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6486
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 20:09:01 +0000 (20:09 +0000)]
linux-user: identify running binary in /proc/self/exe
Some applications like to test /proc/self/exe to find
out who they are. Fake the result of readlink() for
them. Use realpath() to return full path to binary
(which the links /proc/self/exe are)
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6485
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 19:59:17 +0000 (19:59 +0000)]
linux-user: Add generic env variable handling
Adds support for qemu to modify target process environment
variables using -E and -U commandline switches. This replaces
eventually the -drop-ld-preload flag.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6484
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 19:48:32 +0000 (19:48 +0000)]
target-ppc: Fix struct target_stat64 for 32-bit host
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6483
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 19:48:24 +0000 (19:48 +0000)]
target-sh4: Fix struct target_stat64 for 64-bit host
Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6482
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 19:48:17 +0000 (19:48 +0000)]
linuw-user fix: read() and acct() on NULL arguments
Returning efault in these cases is not correct. Originally
proposed by Thayne Harbaugh in 2007:
http://www.mail-archive.com/qemu-devel@nongnu.org/msg14658.html
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6481
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 30 Jan 2009 19:48:07 +0000 (19:48 +0000)]
linux-user: don't crash with null name
From Thayne Harbaugh.
path() may be called with null string, don't bother trying to
remap in that case.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6480
c046a42c-6fe2-441c-8c8c-
71466251a162