OSDN Git Service

qmiga/qemu.git
14 years agotwl92230: change pwrbtn_state to uint8_t
Juan Quintela [Tue, 29 Sep 2009 20:48:39 +0000 (22:48 +0200)]
twl92230: change pwrbtn_state to uint8_t

its value is always the level of an interrupt, 0 or 1

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port tmp105 device
Juan Quintela [Tue, 29 Sep 2009 20:48:38 +0000 (22:48 +0200)]
vmstate: port tmp105 device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agotmp105: change len and alorm to uint8_t
Juan Quintela [Tue, 29 Sep 2009 20:48:37 +0000 (22:48 +0200)]
tmp105: change len and alorm to uint8_t

They were using only with very small integers, and they are sent/read as
bytes.  They can't become negative as far as I can see

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: create VMSTATE_INT16_ARRAY
Juan Quintela [Tue, 29 Sep 2009 20:48:36 +0000 (22:48 +0200)]
vmstate: create VMSTATE_INT16_ARRAY

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port ssd0303 device
Juan Quintela [Tue, 29 Sep 2009 20:48:35 +0000 (22:48 +0200)]
vmstate: port ssd0303 device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port pxa2xx_i2c device
Juan Quintela [Tue, 29 Sep 2009 20:48:34 +0000 (22:48 +0200)]
vmstate: port pxa2xx_i2c device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: create VMSTATE_STRUCT_POINTER
Juan Quintela [Tue, 29 Sep 2009 20:48:33 +0000 (22:48 +0200)]
vmstate: create VMSTATE_STRUCT_POINTER

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port max7310 device
Juan Quintela [Tue, 29 Sep 2009 20:48:32 +0000 (22:48 +0200)]
vmstate: port max7310 device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port wm8750 device
Juan Quintela [Tue, 29 Sep 2009 20:48:31 +0000 (22:48 +0200)]
vmstate: port wm8750 device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: create VMSTATE_I2C_SLAVE
Juan Quintela [Tue, 29 Sep 2009 20:48:30 +0000 (22:48 +0200)]
vmstate: create VMSTATE_I2C_SLAVE

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: add uint8 array
Juan Quintela [Tue, 29 Sep 2009 20:48:29 +0000 (22:48 +0200)]
vmstate: add uint8 array

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port i2c_slave device
Juan Quintela [Tue, 29 Sep 2009 20:48:28 +0000 (22:48 +0200)]
vmstate: port i2c_slave device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: port i2c_bus device
Juan Quintela [Tue, 29 Sep 2009 20:48:27 +0000 (22:48 +0200)]
vmstate: port i2c_bus device

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoi2c: addresses are load/save as uint8_t values, change types to reflect this
Juan Quintela [Tue, 29 Sep 2009 20:48:26 +0000 (22:48 +0200)]
i2c: addresses are load/save as uint8_t values, change types to reflect this

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoqdev: Add support for uint8_t
Juan Quintela [Tue, 29 Sep 2009 20:48:25 +0000 (22:48 +0200)]
qdev: Add support for uint8_t

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Add support for sending partial arrays
Juan Quintela [Tue, 29 Sep 2009 20:48:24 +0000 (22:48 +0200)]
vmstate: Add support for sending partial arrays

This one is needed for changees happening on fdc.  It allows you to send
arrays of structs whose size we want to send it is another field with type
uint8_t.  (If you have been able to read the whole sentence without
stoping for breathing, you can use it.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: remove ps2_kbd_load_old()
Juan Quintela [Tue, 29 Sep 2009 20:48:23 +0000 (22:48 +0200)]
vmstate: remove ps2_kbd_load_old()

Now that we have version_id on post_load() we don't need the old load
function

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: remove const from pre_save() functions
Juan Quintela [Tue, 29 Sep 2009 20:48:22 +0000 (22:48 +0200)]
vmstate: remove const from pre_save() functions

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: add version_id argument to post_load
Juan Quintela [Tue, 29 Sep 2009 20:48:21 +0000 (22:48 +0200)]
vmstate: add version_id argument to post_load

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: remove const for put operations
Juan Quintela [Tue, 29 Sep 2009 20:48:20 +0000 (22:48 +0200)]
vmstate: remove const for put operations

In a later patch, we introduce pre_save() and post_save() functions.
The whole point of that operation is to change things in the state.
Without this patch, we have to remove the const qualifier in each
use with a cast

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: move back dirty_log functions to vga.c
Juan Quintela [Mon, 21 Sep 2009 12:35:18 +0000 (14:35 +0200)]
vga: move back dirty_log functions to vga.c

They are needed there on qemu-kvm.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agocirrus_vga: also assign gr0/1 when writting shadow_gr0/1
Juan Quintela [Mon, 21 Sep 2009 12:35:17 +0000 (14:35 +0200)]
cirrus_vga: also assign gr0/1 when writting shadow_gr0/1

This is a regression/bug caused by previous vga_cleanup.  This fixes
Ubuntu installer reported by:
 Pierre Riteau

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoRevert "eepro100: Remove unused device status entries"
Aurelien Jarno [Mon, 5 Oct 2009 14:29:33 +0000 (16:29 +0200)]
Revert "eepro100: Remove unused device status entries"

This reverts commit 3031efabd0bb744126a53f32c5426580b5d394d5.

14 years agotarget-i386: Fix exceptions for fxsave/fxrstor
Kevin Wolf [Fri, 2 Oct 2009 20:28:57 +0000 (22:28 +0200)]
target-i386: Fix exceptions for fxsave/fxrstor

This patch corrects the following aspects of exception generation in
fxsave/fxrstor:

* Generate #GP if the operand is not aligned to a 16 byte boundary
* Generate #UD if the LOCK prefix is used
* For CR0.EM = 1 #NM is generated, not #UD

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotcg: allocate s->op_dead_iargs dynamically
Aurelien Jarno [Sun, 4 Oct 2009 13:30:44 +0000 (15:30 +0200)]
tcg: allocate s->op_dead_iargs dynamically

Similarly to what is already done in tcg_liveness_analysis() when
USE_LIVENESS_ANALYSIS is not set.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotcg: remove dead code
Aurelien Jarno [Sun, 4 Oct 2009 13:16:46 +0000 (15:16 +0200)]
tcg: remove dead code

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agobsd-user: fix "#if 0"'d printf()
Paul Bolle [Sun, 4 Oct 2009 12:49:54 +0000 (14:49 +0200)]
bsd-user: fix "#if 0"'d printf()

Make an "#if 0"'d printf() in load_elf_binary() reflect what the actual
code does (see commit 3bc0bdcaadef1100ce2413af818d9c8e2f6319fc).

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoeepro100: Add more i825xx devices
Stefan Weil [Sat, 19 Sep 2009 11:02:09 +0000 (13:02 +0200)]
eepro100: Add more i825xx devices

The new devices added here are still not functional -
partially because some patches are still missing,
partially because I cannot test them. Nevertheless
they belong to the same family and will be supported
by this driver some day.

As soon as they work, they will also be added to hw/pci.c.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoeepro100: Remove unused device status entries
Stefan Weil [Sat, 19 Sep 2009 11:41:15 +0000 (13:41 +0200)]
eepro100: Remove unused device status entries

A lot of entries are unused (they were added by copy + paste
from other drivers during development of eepro100.c).

Removing them from nic_save, nic_load makes any
old saved status incompatible, so a new version
for the virtual machine data was needed, too.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-i386: add RDTSCP support
Andre Przywara [Fri, 18 Sep 2009 22:30:49 +0000 (00:30 +0200)]
target-i386: add RDTSCP support

RDTSCP reads the time stamp counter and atomically also the content
of a 32-bit MSR, which can be freely set by the OS. This allows CPU
local data to be queried by userspace.
Linux uses this to allow a fast implementation of the getcpu()
syscall, which uses the vsyscall page to avoid a context switch.
AMD CPUs since K8RevF and Intel CPUs since Nehalem support this
instruction.
RDTSCP is guarded by the RDTSCP CPUID bit (Fn8000_0001:EDX[27]).

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-i386: add SSE4a instruction support
Andre Przywara [Fri, 18 Sep 2009 22:30:48 +0000 (00:30 +0200)]
target-i386: add SSE4a instruction support

This adds support for the AMD Phenom/Barcelona's SSE4a instructions.
Those include insertq and extrq, which are doing shift and mask on
XMM registers, in two versions (immediate shift/length values and
stored in another XMM register).
Additionally it implements movntss, movntsd, which are scalar
non-temporal stores (avoiding cache trashing). These are implemented
as normal stores, though.
SSE4a is guarded by the SSE4A CPUID bit (Fn8000_0001:ECX[6]).

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-i386: add lock mov cr0 = cr8
Andre Przywara [Fri, 18 Sep 2009 22:30:47 +0000 (00:30 +0200)]
target-i386: add lock mov cr0 = cr8

AMD CPUs featuring a shortcut to access CR8 even from 32-bit mode.
If you use the LOCK prefix with "mov CR0", it accesses CR8 instead.
This behavior is guarded by the CR8_LEGACY CPUID bit
(Fn8000_0001:ECX[1]).

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotcg/i386: add support for ext{8,16}u_i32 TCG ops
Aurelien Jarno [Fri, 2 Oct 2009 18:55:24 +0000 (20:55 +0200)]
tcg/i386: add support for ext{8,16}u_i32 TCG ops

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotcg/x86_64: add support for ext{8,16,32}u_i{32,64} TCG ops
Aurelien Jarno [Wed, 30 Sep 2009 21:44:51 +0000 (23:44 +0200)]
tcg/x86_64: add support for ext{8,16,32}u_i{32,64} TCG ops

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotcg: add ext{8,16,32}u_i{32,64} TCG ops
Aurelien Jarno [Wed, 30 Sep 2009 21:09:35 +0000 (23:09 +0200)]
tcg: add ext{8,16,32}u_i{32,64} TCG ops

Currently zero extensions ops are implemented by a and op with a
constant. This is then catched in some backend, and replaced by
a zero extension instruction. While this works well on RISC
machines, this adds a useless register move on non-RISC machines.

Example on x86:
  ext16u_i32 r1, r2
is translated into
  mov    %eax,%ebx
  movzwl %bx, %ebx
while the optimized version should be:
  movzwl %ax, %ebx

This patch adds ext{8,16,32}u_i{32,64} TCG ops that can be
implemented in the backends to avoid emitting useless register
moves.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agolinux-user: fix "#if 0"'d printf()
Paul Bolle [Fri, 2 Oct 2009 12:06:47 +0000 (14:06 +0200)]
linux-user: fix "#if 0"'d printf()

Make an "#if 0"'d printf() in load_elf_binary(), probably left to aid in
debugging, reflect what the actual code does. The current printf() will
only confuse those who "#if 1" it (it certainly confused me enough to
write this trivial patch).

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoCheck availability of uuid header / library
Stefan Weil [Thu, 1 Oct 2009 18:10:37 +0000 (20:10 +0200)]
Check availability of uuid header / library

If available, the Universally Unique Identifier library
is used by the vdi block driver.

Other parts of QEMU (vl.c) could also use it.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agohw/omap_dma: add matching {} in if 0
Michael S. Tsirkin [Thu, 1 Oct 2009 17:30:49 +0000 (19:30 +0200)]
hw/omap_dma: add matching {} in if 0

MULTI_REQ is never defined, so it doesn't matter much, but since
we have an if statement there, let's add {} to clarify what it
should do if it's uncommented, and indent the code properly.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agooss/alsa: Do not invoke UB described in 7.15.1.1 (this time for ADC)
malc [Fri, 2 Oct 2009 23:30:06 +0000 (03:30 +0400)]
oss/alsa: Do not invoke UB described in 7.15.1.1 (this time for ADC)

Signed-off-by: malc <av1474@comtv.ru>
14 years agolibuser is a generated directory
Juan Quintela [Fri, 2 Oct 2009 09:13:43 +0000 (11:13 +0200)]
libuser is a generated directory

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoUse GNU ld to link roms on OpenSolaris
Blue Swirl [Fri, 2 Oct 2009 19:38:25 +0000 (19:38 +0000)]
Use GNU ld to link roms on OpenSolaris

OpenSolaris ld seems to miss the equivalent of GNU ld's "-Ttext 0".

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix warning about undefined madvise() on OpenSolaris
Blue Swirl [Fri, 2 Oct 2009 19:32:12 +0000 (19:32 +0000)]
Fix warning about undefined madvise() on OpenSolaris

OpenSolaris headers can't export madvise() with a sane set of #defines.
For background, see MySQL bug #7156 (http://bugs.mysql.com/bug.php?id=7156)
for discussion about Solaris header problems.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agolinux-user: fix up oversealous nitpicking
Michael S. Tsirkin [Fri, 2 Oct 2009 17:59:12 +0000 (17:59 +0000)]
linux-user: fix up oversealous nitpicking

Looks like linux-user code was correct, just unreadable: what it wanted
to do with "-=" was really assign a negative number, not decrement.  Fix
up accordingly.

Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotests: missing ; in if 0
Michael S. Tsirkin [Fri, 2 Oct 2009 17:59:10 +0000 (17:59 +0000)]
tests: missing ; in if 0

Fix missing ; in commented out code

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoalsa: Change default buffer/period size
malc [Thu, 1 Oct 2009 23:19:30 +0000 (03:19 +0400)]
alsa: Change default buffer/period size

Increase buffer size but do not rely on ALSA picking up default period
size.

Signed-off-by: malc <av1474@comtv.ru>
14 years agooss/alsa: Do not invoke UB described in 7.15.1.1
malc [Thu, 1 Oct 2009 22:37:40 +0000 (02:37 +0400)]
oss/alsa: Do not invoke UB described in 7.15.1.1

Additional argument (whether to try poll mode) is only passed with
VOICE_ENABLE command.

Thanks to Markus Armbruster for noticing the potential breakage.

14 years agoRevert "Get rid of _t suffix"
Anthony Liguori [Thu, 1 Oct 2009 21:12:16 +0000 (16:12 -0500)]
Revert "Get rid of _t suffix"

In the very least, a change like this requires discussion on the list.

The naming convention is goofy and it causes a massive merge problem.  Something
like this _must_ be presented on the list first so people can provide input
and cope with it.

This reverts commit 99a0949b720a0936da2052cb9a46db04ffc6db29.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoGet rid of _t suffix
malc [Thu, 1 Oct 2009 18:20:47 +0000 (22:20 +0400)]
Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <av1474@comtv.ru>
14 years agoInclude microblaze binaries in tarbin.
Edgar E. Iglesias [Thu, 1 Oct 2009 13:18:36 +0000 (15:18 +0200)]
Include microblaze binaries in tarbin.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
14 years agotarget-mips: make sure constants are in the second argument
Aurelien Jarno [Mon, 28 Sep 2009 21:40:59 +0000 (23:40 +0200)]
target-mips: make sure constants are in the second argument

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agox86: use globals for CPU registers
Laurent Desnogues [Tue, 29 Sep 2009 09:58:04 +0000 (11:58 +0200)]
x86: use globals for CPU registers

Use globals for the 8 or 16 CPU registers on i386 and x86_64.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agomips: Fix spelling in comment
Stefan Weil [Mon, 28 Sep 2009 21:27:33 +0000 (23:27 +0200)]
mips: Fix spelling in comment

inofficial -> unofficial

Thanks to Blue Swirl.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoescc: fix another coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 18:56:44 +0000 (18:56 +0000)]
escc: fix another coding style nit

Fix another place with =- to be "= -".
to avoid confusion with old-style "-="
(which we also have, and needs to be fixed).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoslirp: fix unmatched bracket in if 0
Michael S. Tsirkin [Wed, 30 Sep 2009 18:56:44 +0000 (18:56 +0000)]
slirp: fix unmatched bracket in if 0

Fix unmatched bracket in commented out code

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agonet: fix coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 18:56:44 +0000 (18:56 +0000)]
net: fix coding style nit

Put space between = and - assigning a negative number
to avoid confusion with old-style "-="
(which we also have, and need to be fixed).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agolinux-user: fix coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 18:56:44 +0000 (18:56 +0000)]
linux-user: fix coding style nit

Put space between = and & when taking a pointer,
to avoid confusion with old-style "&=".

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotarget-mips: unmatched brackets in if 0
Michael S. Tsirkin [Wed, 30 Sep 2009 17:44:26 +0000 (19:44 +0200)]
target-mips: unmatched brackets in if 0

Fix unmatched braket in commented out code

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agolinux-user: fix old style decrement usage
Michael S. Tsirkin [Wed, 30 Sep 2009 17:44:18 +0000 (19:44 +0200)]
linux-user: fix old style decrement usage

Modern compilers do not parse "=-" as decrement:
you must use "-=" for that.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotwl92230: fix old style increment/decrement usage
Michael S. Tsirkin [Wed, 30 Sep 2009 17:44:11 +0000 (19:44 +0200)]
twl92230: fix old style increment/decrement usage

Modern compilers do not parse "=-" as decrement:
you must use "-=" for that. Same for "=+"/"+=".

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoomap_dma: fix unbalanced { in commented out code
Michael S. Tsirkin [Wed, 30 Sep 2009 17:44:03 +0000 (19:44 +0200)]
omap_dma: fix unbalanced { in commented out code

Fix unbalanced {} in commented out code.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoescc: fix coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 17:43:55 +0000 (19:43 +0200)]
escc: fix coding style nit

Put space between = and - assigning a negative number
to avoid confusion with old-style "-="
(which we also have, and needs to be fixed).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agogdbstub: fix coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 17:43:47 +0000 (19:43 +0200)]
gdbstub: fix coding style nit

Put space between = and * when dereferencing a pointer,
to avoid confusion with old-style "*="

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoelfload: fix coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 17:43:38 +0000 (19:43 +0200)]
elfload: fix coding style nit

Put space between = and * when dereferencing a pointer,
to avoid confusion with old-style "*="

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agovvfat: fix coding style nit
Michael S. Tsirkin [Wed, 30 Sep 2009 17:43:31 +0000 (19:43 +0200)]
vvfat: fix coding style nit

Put space between = and & when taking a pointer,
to avoid confusion with old-style "&=".

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agosdlaudio: make it suck less
malc [Wed, 30 Sep 2009 12:25:55 +0000 (16:25 +0400)]
sdlaudio: make it suck less

Signed-off-by: malc <av1474@comtv.ru>
14 years agoRevert part of 6692b043198d58a12317009edb98654c6839f043
Aurelien Jarno [Wed, 30 Sep 2009 12:16:12 +0000 (14:16 +0200)]
Revert part of 6692b043198d58a12317009edb98654c6839f043

Committed by accident.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoFix build with profiler enabled
Aurelien Jarno [Wed, 30 Sep 2009 12:09:52 +0000 (14:09 +0200)]
Fix build with profiler enabled

Broken by 4a1418e07bdcfaa3177739e04707ecaec75d89e1

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoTCG: fix DEF2 macro
Aurelien Jarno [Tue, 29 Sep 2009 15:00:28 +0000 (17:00 +0200)]
TCG: fix DEF2 macro

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-ppc: log instructions start in TCG code
Aurelien Jarno [Mon, 28 Sep 2009 11:39:08 +0000 (13:39 +0200)]
target-ppc: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-mips: log instructions start in TCG code
Aurelien Jarno [Mon, 28 Sep 2009 11:03:30 +0000 (13:03 +0200)]
target-mips: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoWin32: avoid a warning
Blue Swirl [Sun, 27 Sep 2009 20:03:56 +0000 (20:03 +0000)]
Win32: avoid a warning

GetLastError() returns a DWORD.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoBSD user: suppress a warning
Blue Swirl [Sun, 27 Sep 2009 19:30:56 +0000 (19:30 +0000)]
BSD user: suppress a warning

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoBSD user: implement GUEST_BASE
Blue Swirl [Sun, 27 Sep 2009 19:30:51 +0000 (19:30 +0000)]
BSD user: implement GUEST_BASE

Based on 379f6698d73f476de38682b3ff96ecb226728c43.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotcg/i386: generates dec/inc instead of sub/add when possible
Aurelien Jarno [Sun, 27 Sep 2009 17:57:43 +0000 (19:57 +0200)]
tcg/i386: generates dec/inc instead of sub/add when possible

We must take care that dec/inc do not compute CF, which is needed by
add2/sub2.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotcg/i386: optimize and $0xff(ff), reg
Aurelien Jarno [Sun, 27 Sep 2009 17:36:05 +0000 (19:36 +0200)]
tcg/i386: optimize and $0xff(ff), reg

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoCompile some user files only once for all targets
Blue Swirl [Sun, 27 Sep 2009 16:26:02 +0000 (16:26 +0000)]
Compile some user files only once for all targets

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotcg/x86_64: generated dec/inc instead of sub/add when possible
Aurelien Jarno [Sun, 27 Sep 2009 16:08:16 +0000 (18:08 +0200)]
tcg/x86_64: generated dec/inc instead of sub/add when possible

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoDon't compile roms if not building system targets
Blue Swirl [Sun, 27 Sep 2009 14:35:44 +0000 (14:35 +0000)]
Don't compile roms if not building system targets

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix user emulator breakage
Blue Swirl [Sun, 27 Sep 2009 13:56:55 +0000 (13:56 +0000)]
Fix user emulator breakage

Fix breakage in the following conditions:
- use in-tree building
- build user targets after system targets

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotcg/ppc: always use tcg_out_call
malc [Sun, 27 Sep 2009 10:39:48 +0000 (14:39 +0400)]
tcg/ppc: always use tcg_out_call

Signed-off-by: malc <av1474@comtv.ru>
14 years agovl: Add failure check for SetEvent
malc [Sun, 27 Sep 2009 10:38:18 +0000 (14:38 +0400)]
vl: Add failure check for SetEvent

Signed-off-by: malc <av1474@comtv.ru>
14 years agovl: Do not use perror after failed Win32 API calls
malc [Sun, 27 Sep 2009 10:30:33 +0000 (14:30 +0400)]
vl: Do not use perror after failed Win32 API calls

Signed-off-by: malc <av1474@comtv.ru>
14 years agoposix-aio-compat: avoid signal race when spawning a thread
malc [Thu, 24 Sep 2009 20:20:44 +0000 (00:20 +0400)]
posix-aio-compat: avoid signal race when spawning a thread

Signed-off-by: malc <av1474@comtv.ru>
14 years agotarget-i386: kill a tmp register
Aurelien Jarno [Sat, 26 Sep 2009 22:56:22 +0000 (00:56 +0200)]
target-i386: kill a tmp register

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-i386: use subfi instead of sub with a non-freed constant
Aurelien Jarno [Sat, 26 Sep 2009 22:48:05 +0000 (00:48 +0200)]
target-i386: use subfi instead of sub with a non-freed constant

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoeepro100: Fix format strings in debug messages
Stefan Weil [Sat, 19 Sep 2009 10:37:51 +0000 (12:37 +0200)]
eepro100: Fix format strings in debug messages

size_t arguments need %zu instead of %d.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoeepro100: Replace sprintf by snprintf
Stefan Weil [Sat, 19 Sep 2009 10:29:59 +0000 (12:29 +0200)]
eepro100: Replace sprintf by snprintf

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoeepro100: Remove unused code
Stefan Weil [Sat, 19 Sep 2009 10:15:35 +0000 (12:15 +0200)]
eepro100: Remove unused code

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoeepro100: Enhanced logging and comments
Stefan Weil [Sat, 19 Sep 2009 10:11:36 +0000 (12:11 +0200)]
eepro100: Enhanced logging and comments

* Use TRACE macro to allow different logging flags.
* Add new debugging messages and clean existing ones.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agofix -daemonize with kvm
Marcelo Tosatti [Fri, 18 Sep 2009 05:41:23 +0000 (02:41 -0300)]
fix -daemonize with kvm

Otherwise fork might not inherit state initialized by kvm_init().

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoSet SDL icon_title when using `-name XXX` for proper gnome-panel window list integration
Dominic Evans [Thu, 24 Sep 2009 11:13:56 +0000 (12:13 +0100)]
Set SDL icon_title when using `-name XXX` for proper gnome-panel window list integration

qemu: improve sdl title information

Include the `-name XXX` commandline param in the gnome-panel window list
via icon_title.

https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/423076

Signed-off-by: Dominic Evans <oldmanuk@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoqemu-option: rename bool -> boolean
Juan Quintela [Mon, 21 Sep 2009 11:08:34 +0000 (13:08 +0200)]
qemu-option: rename bool -> boolean

We need this to allow the use of <stdbool.h>

Signed-off-by: Juan Quintela <quintela@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoARM back-end: Use sxt[bh] instructions for ext{8, 6}s
Laurent Desnogues [Sun, 13 Sep 2009 12:27:31 +0000 (14:27 +0200)]
ARM back-end: Use sxt[bh] instructions for ext{8, 6}s

This patch uses sxtb for ext8s_i32 and sxth for ext16s_i32 in ARM back-end.

Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoFix and improve qint_from_int64_test
Pierre Riteau [Tue, 8 Sep 2009 09:53:37 +0000 (11:53 +0200)]
Fix and improve qint_from_int64_test

Use a long long integer constant to fix a compilation error (integer
constant is too large for 'long' type).

Use a better value for testing, as -1 makes the test pass even if
qi->value is of type uint32_t, float or double. This was suggested by
Reimar Döffinger <Reimar.Doeffinger@gmx.de>.

Also, make the test fail when qi->value is of type double or float by
casting qi->value to int64_t, to avoid value being promoted to the type
of qi->value.

Signed-off-by: Pierre Riteau <Pierre.Riteau@irisa.fr>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agomonitor: Fix do_wav_capture() argument type
Luiz Capitulino [Fri, 4 Sep 2009 19:23:07 +0000 (16:23 -0300)]
monitor: Fix do_wav_capture() argument type

Currently do_wav_capture() path's argument type is 's' (string),
but it should be 'F' (filename), this way 'wavcapture' gets
command completion.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agomonitor: Fix do_commit() argument type
Luiz Capitulino [Fri, 4 Sep 2009 19:23:06 +0000 (16:23 -0300)]
monitor: Fix do_commit() argument type

Currently do_commit() argument type is 's' (string), but it
should be 'B' (block), this way 'commit' gets command completion.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoDon't redefine NULL, please
Juan Quintela [Fri, 28 Aug 2009 17:23:28 +0000 (19:23 +0200)]
Don't redefine NULL, please

Compiled (on linux) all the targets, and it compiled as expected.
What platform needs this redefinition?

Later, Juan.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoFix coding style issue
Mark McLoughlin [Wed, 23 Sep 2009 10:24:05 +0000 (11:24 +0100)]
Fix coding style issue

Replace:

  if (-1 == foo())

with:

  if (foo() == -1)

While this coding style is not in direct contravention of our currently
ratified CODING_STYLE treaty, it could be argued that the Article 3 of
the European Convention on Human Rights (prohibiting torture and "inhuman
or degrading treatment") reads on the matter.

[This commit message was brought to you without humour, as is evidenced
by the absence of any emoticons]

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoRemove PARAMS() macro
Juan Quintela [Tue, 22 Sep 2009 23:19:05 +0000 (01:19 +0200)]
Remove PARAMS() macro

Only two disassemblers (alpha and sh4) were still using it. Just remove its
use there, and its aparations in dis-asm.h

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years ago__thread should be before real type
Juan Quintela [Tue, 22 Sep 2009 23:19:03 +0000 (01:19 +0200)]
__thread should be before real type

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>