Statistics
| Branch: | Revision:

root @ c227f099

# Date Author Comment
c227f099 10/02/2009 12:12 am Anthony Liguori

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...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

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

Signed-off-by: malc <>

bc6291a1 10/01/2009 04:18 pm Edgar E. Iglesias

Include microblaze binaries in tarbin.

Signed-off-by: Edgar E. Iglesias <>

941694d0 10/01/2009 12:12 am Aurelien Jarno

target-mips: make sure constants are in the second argument

Signed-off-by: Aurelien Jarno <>

cc739bb0 09/30/2009 11:53 pm Laurent Desnogues

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 <>

a0d700e4 09/30/2009 10:07 pm Stefan Weil

mips: Fix spelling in comment

inofficial -> unofficial

Thanks to Blue Swirl.

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

e8bbe36c 09/30/2009 09:56 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

acedcfbf 09/30/2009 09:56 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

65528b19 09/30/2009 09:56 pm Michael S. Tsirkin

slirp: fix unmatched bracket in if 0

Fix unmatched bracket in commented out code

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Blue Swirl <>

084bd071 09/30/2009 09:56 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

6ab00cee 09/30/2009 09:45 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

6ece4df6 09/30/2009 09:45 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

8f4bee23 09/30/2009 09:45 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

a0d98a71 09/30/2009 09:45 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

f90554ad 09/30/2009 09:45 pm Michael S. Tsirkin

omap_dma: fix unbalanced { in commented out code

Fix unbalanced {} in commented out code.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Blue Swirl <>

bdd7e1bc 09/30/2009 09:45 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

5d024825 09/30/2009 09:45 pm Michael S. Tsirkin

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 <>
Signed-off-by: Blue Swirl <>

58caed6d 09/30/2009 09:45 pm Michael S. Tsirkin

target-mips: unmatched brackets in if 0

Fix unmatched braket in commented out code

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Blue Swirl <>

4839abe7 09/30/2009 03:34 pm malc

sdlaudio: make it suck less

Signed-off-by: malc <>

d6859202 09/30/2009 03:16 pm Aurelien Jarno

Revert part of 6692b043198d58a12317009edb98654c6839f043

Committed by accident.

Signed-off-by: Aurelien Jarno <>

e9a6625e 09/30/2009 03:11 pm Aurelien Jarno

Fix build with profiler enabled

Broken by 4a1418e07bdcfaa3177739e04707ecaec75d89e1

Signed-off-by: Aurelien Jarno <>

6692b043 09/30/2009 03:10 pm Aurelien Jarno

TCG: fix DEF2 macro

Signed-off-by: Aurelien Jarno <>

731c54f8 09/28/2009 02:40 pm Aurelien Jarno

target-ppc: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <>

618b0fe9 09/28/2009 02:03 pm Aurelien Jarno

target-mips: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <>

20889d4e 09/27/2009 11:03 pm Blue Swirl

Win32: avoid a warning

GetLastError() returns a DWORD.

Signed-off-by: Blue Swirl <>

032e51d7 09/27/2009 10:30 pm Blue Swirl

BSD user: suppress a warning

Signed-off-by: Blue Swirl <>

2fa5d9ba 09/27/2009 10:30 pm Blue Swirl

BSD user: implement GUEST_BASE

Based on 379f6698d73f476de38682b3ff96ecb226728c43.

Signed-off-by: Blue Swirl <>

17cf428f 09/27/2009 09:00 pm Aurelien Jarno

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 <>

b70650cb 09/27/2009 09:00 pm Aurelien Jarno

tcg/i386: optimize and $0xff(ff), reg

Signed-off-by: Aurelien Jarno <>

add16157 09/27/2009 07:26 pm Blue Swirl

Compile some user files only once for all targets

Signed-off-by: Blue Swirl <>

a4b18c6d 09/27/2009 07:08 pm Aurelien Jarno

tcg/x86_64: generated dec/inc instead of sub/add when possible

Signed-off-by: Aurelien Jarno <>

b461cdc9 09/27/2009 05:35 pm Blue Swirl

Don't compile roms if not building system targets

Signed-off-by: Blue Swirl <>

05d00df4 09/27/2009 04:56 pm Blue Swirl

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 <>

de1c90cf 09/27/2009 01:41 pm malc

vl: Add failure check for SetEvent

Signed-off-by: malc <>

d9370327 09/27/2009 01:41 pm malc

tcg/ppc: always use tcg_out_call

Signed-off-by: malc <>

705e83f6 09/27/2009 01:41 pm malc

vl: Do not use perror after failed Win32 API calls

Signed-off-by: malc <>

ee399306 09/27/2009 03:16 am malc

posix-aio-compat: avoid signal race when spawning a thread

Signed-off-by: malc <>

bedda79c 09/27/2009 01:57 am Aurelien Jarno

target-i386: kill a tmp register

Signed-off-by: Aurelien Jarno <>

5b207c00 09/27/2009 01:57 am Aurelien Jarno

target-i386: use subfi instead of sub with a non-freed constant

Signed-off-by: Aurelien Jarno <>

067d01de 09/27/2009 12:48 am Stefan Weil

eepro100: Fix format strings in debug messages

size_t arguments need %zu instead of %d.

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

41cbc23c 09/27/2009 12:48 am Stefan Weil

eepro100: Replace sprintf by snprintf

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

fd9ae2ec 09/27/2009 12:48 am Stefan Weil

eepro100: Remove unused code

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

aac443e6 09/27/2009 12:48 am Stefan Weil

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 <>
Signed-off-by: Aurelien Jarno <>

214910a7 09/27/2009 12:39 am Marcelo Tosatti

fix -daemonize with kvm

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

Signed-off-by: Marcelo Tosatti <>
Signed-off-by: Aurelien Jarno <>

b4ed5d18 09/27/2009 12:35 am Dominic Evans

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...

1f5c1775 09/26/2009 10:34 pm Juan Quintela

qemu-option: rename bool -> boolean

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

Signed-off-by: Juan Quintela <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Aurelien Jarno <>

7990496d 09/26/2009 10:29 pm Laurent Desnogues

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 <>
Signed-off-by: Aurelien Jarno <>

02c068c3 09/26/2009 10:26 pm Pierre Riteau

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...

e0fed6cc 09/26/2009 10:25 pm Luiz Capitulino

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 <>
Signed-off-by: Aurelien Jarno <>

075e36b8 09/26/2009 10:25 pm Luiz Capitulino

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 <>
Signed-off-by: Aurelien Jarno <>

6c58e80f 09/26/2009 10:22 pm Juan Quintela

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 <>
Signed-off-by: Aurelien Jarno <>

3df04ac3 09/25/2009 10:57 pm Mark McLoughlin

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...

9262f384 09/25/2009 10:53 pm Juan Quintela

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 <>
Signed-off-by: Blue Swirl <>

dfd3f85c 09/25/2009 10:53 pm Juan Quintela

__thread should be before real type

Signed-off-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

38972938 09/25/2009 10:52 pm Juan Quintela

gcc wants 1st static and then const

Signed-off-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

668a38fc 09/25/2009 10:51 pm Juan Quintela

Bring two last users of K&R definitions to ANSI c89

Signed-off-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

86178a57 09/25/2009 10:51 pm Juan Quintela

static and inline should came before the type of the functions

Signed-off-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

2b321d69 09/25/2009 10:51 pm Juan Quintela

Use proper typedef syntax

Why this ever compiled is a mistery to me.

Signed-off-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

3f600fa0 09/25/2009 10:21 pm Blue Swirl

Revert "This files are compiled in libqemu.a now"

This reverts commit fe6549dfd76c278dbcd788b3c15c5e6e5ed32190.

tcg-runtime and host-utils are needed on 32 bit host and they are not part
of libqemu.a.

Thanks to Stefan Weil for reporting.

Signed-off-by: Blue Swirl <>

5d95ac5b 09/25/2009 07:26 pm Glauber Costa

fix use after free

We are using the vs structure when it was just freed. Classic use after free,
fix it.

Signed-off-by: Glauber Costa <>
Signed-off-by: Aurelien Jarno <>

22f84e73 09/25/2009 06:40 pm Gerd Hoffmann

unbreak usb pass-through on linux.

Changes: * Re-add the 'dev->fd = fd;' line which the qdev patches dropped
by mistake. * call qdev_init() so the newly created usb device is plugged into
a usb port and thus actually visible to the guest.

Signed-off-by: Gerd Hoffmann <>...

befb0316 09/25/2009 06:28 pm Juan Quintela

clean: remove ide/*.o files on clean

Signed-off-by: Juan Quintela <>
Signed-off-by: Aurelien Jarno <>

87b78ad1 09/25/2009 06:25 pm Laurent Desnogues

ARM host: fix generated blocks linking

This patch fixes the linking of generated blocks on an ARM host.
No need to say this brings a very nice speedup :-)

Signed-off-by: Laurent Desnogues <>
Signed-off-by: Aurelien Jarno <>

979ba184 09/25/2009 05:34 pm Stefan Weil

Fix spelling in comment

replace Convery -> Convert

Cc: Paul Brook <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

d89c682f 09/25/2009 05:31 pm Stefan Weil

Suppress some variants of English in comments

Replace surpress, supress by suppress.

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

01b5d4e5 09/23/2009 11:00 pm Igor V. Kovalenko

sparc64-8bit-asi

Sparc64 alternate space load/store helpers expect 8 bit ASI value,
while wrasi implementation sign-extends ASI operand causing
for example 0x80 to appear as 0xFFFFFF80. Resulting value falls
out of switch in helpers and causes obscure load/store faults....

b689c622 09/23/2009 10:25 am Aurelien Jarno

exec-all.h: increase MAX_OP_PER_INSTR to 96 from 64

The x86_64 ror instruction on a 32-bit host can generate up to 77 TCG
ops. Some more space should be left for opc that are added at the end
of the translation.

Thanks to Laurent Desnogues for the debugging help....

6db73509 09/23/2009 10:25 am Aurelien Jarno

exec-all.h: increase OPC_BUF_SIZE

Increase OPC_BUF_SIZE to compensate the MAX_OP_PER_INSTR's increase.

Signed-off-by: Aurelien Jarno <>

d42320c2 09/23/2009 10:25 am Aurelien Jarno

target-mips: remove MAX_OP_PER_INSTR workaround

Now that MAX_OP_PER_INSTR has been increased to a safer value, removed
the target-mips specific workaround.

Signed-off-by: Aurelien Jarno <>

fe6549df 09/23/2009 10:25 am Juan Quintela

This files are compiled in libqemu.a now

This fixes compilation of linux-user with today qemu, please apply.

Signed-off-by: Juan Quintela <>
Signed-off-by: Aurelien Jarno <>

39b7f20e 09/23/2009 09:41 am Blue Swirl

Fix device tree compile broken by ca20cf32ab3d945155141ef737f5d08ebb373e1d

Signed-off-by: Blue Swirl <>

16d55035 09/21/2009 11:21 pm Blue Swirl

Fix Sparse warning about invalid access past the end of 'mode'

Signed-off-by: Blue Swirl <>

284b08f1 09/21/2009 10:50 pm Blue Swirl

Fix Sparse warning about obsolete struct initializer

Signed-off-by: Blue Swirl <>

d4fa8d90 09/21/2009 09:40 pm Blue Swirl

Export tables properly to avoid a Sparse warning

Signed-off-by: Blue Swirl <>

6f4fc367 09/21/2009 09:39 pm Blue Swirl

Add 'static' to please Sparse

Signed-off-by: Blue Swirl <>

b9d38e95 09/21/2009 09:11 pm Blue Swirl

Fix Sparse warnings about using plain integer as NULL pointer

Signed-off-by: Blue Swirl <>

52d94620 09/21/2009 06:24 pm Blue Swirl

Fix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1

Signed-off-by: Blue Swirl <>

c2b023b6 09/20/2009 10:20 pm Blue Swirl

Compile host-utils only once

See also facd2857783d58387885ad7cb1e4a8386f241738 and
34005a0060c176b3025a9e7c5d064615a9f80325.

Signed-off-by: Blue Swirl <>

96e132e2 09/20/2009 10:06 pm Blue Swirl

Compile TCG runtime library only once

Signed-off-by: Blue Swirl <>

cc5f688d 09/20/2009 10:05 pm Stefan Weil

Fix spelling in comment

registrs -> registers

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

bd390e64 09/20/2009 07:19 pm Blue Swirl

Compile ne2000 only once

Signed-off-by: Blue Swirl <>

afcea8cb 09/20/2009 07:05 pm Blue Swirl

ioports: remove unused env parameter and compile only once

The CPU state parameter is not used, remove it and adjust callers. Now we
can compile ioport.c once for all targets.

Signed-off-by: Blue Swirl <>

5e520a7d 09/20/2009 06:35 pm Blue Swirl

Compile msix only once

Get page size in device init.

Signed-off-by: Blue Swirl <>

ca20cf32 09/20/2009 05:58 pm Blue Swirl

Compile loader only once

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....

a333cd71 09/20/2009 11:28 am Blue Swirl

Compile qemu-config only once

Signed-off-by: Blue Swirl <>

9801c7b4 09/20/2009 11:02 am Blue Swirl

Compile wdt_i6300esb only once

Signed-off-by: Blue Swirl <>

8756aa72 09/20/2009 10:51 am Blue Swirl

Fix mingw32 compile

Signed-off-by: Blue Swirl <>

5f6b9e8f 09/20/2009 09:56 am Blue Swirl

Probe for fdatasync()

Signed-off-by: Blue Swirl <>

cdd0935c 09/19/2009 08:59 pm Blue Swirl

PPC: make system bus parent of PCI bus

Signed-off-by: Blue Swirl <>

50da01ed 09/19/2009 07:43 pm Stefan Weil

Fix indentation

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

cc9952f3 09/19/2009 06:44 pm Blue Swirl

ESP: convert to VMState

Signed-off-by: Blue Swirl <>

dbf95805 09/18/2009 06:22 pm Vince Weaver

target-alpha: fix extlh instruction

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 <>
Signed-off-by: Aurelien Jarno <>

7fd6bf7d 09/18/2009 05:57 pm Aurelien Jarno

target-ppc: optimize slw/srw/sld/srd

Remove a temp local variable and a jump by computing a mask with shifts.

Signed-off-by: Aurelien Jarno <>

4f4cc0ef 09/18/2009 01:04 pm malc

audio: use muldiv64 where it makes sense

Signed-off-by: malc <>

ddabec73 09/18/2009 01:04 pm malc

audio: introduce audio_pcm_hw_clip_out helper function

Signed-off-by: malc <>

541ba4e7 09/18/2009 01:04 pm malc

alsa: use audio_pcm_hw_clip_out

Signed-off-by: malc <>

9d168976 09/18/2009 01:04 pm malc

oss: use audio_pcm_hw_clip_out

Signed-off-by: malc <>

3fd7f635 09/18/2009 01:04 pm malc

sdlaudio: use correct function names in sdl_XXX calls

Signed-off-by: malc <>

bdff253c 09/18/2009 01:04 pm malc

audio: internal API change

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....

155a8ad3 09/18/2009 01:04 pm malc

audio: use correct email address

Signed-off-by: malc <>