]> git.proxmox.com Git - qemu.git/log
qemu.git
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>
14 years agogcc wants 1st static and then const
Juan Quintela [Tue, 22 Sep 2009 23:19:02 +0000 (01:19 +0200)]
gcc wants 1st static and then const

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoBring two last users of K&R definitions to ANSI c89
Juan Quintela [Tue, 22 Sep 2009 23:19:01 +0000 (01:19 +0200)]
Bring two last users of K&R definitions to ANSI c89

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agostatic and inline should came before the type of the functions
Juan Quintela [Tue, 22 Sep 2009 23:19:00 +0000 (01:19 +0200)]
static and inline should came before the type of the functions

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoUse proper typedef syntax
Juan Quintela [Tue, 22 Sep 2009 23:18:59 +0000 (01:18 +0200)]
Use proper typedef syntax

Why this ever compiled is a mistery to me.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoRevert "This files are compiled in libqemu.a now"
Blue Swirl [Fri, 25 Sep 2009 19:20:00 +0000 (19:20 +0000)]
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 <blauwirbel@gmail.com>
14 years agofix use after free
Glauber Costa [Fri, 25 Sep 2009 12:30:57 +0000 (08:30 -0400)]
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 <glommer@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agounbreak usb pass-through on linux.
Gerd Hoffmann [Fri, 25 Sep 2009 14:55:28 +0000 (16:55 +0200)]
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 <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoclean: remove ide/*.o files on clean
Juan Quintela [Mon, 21 Sep 2009 13:10:55 +0000 (15:10 +0200)]
clean: remove ide/*.o files on clean

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoARM host: fix generated blocks linking
Laurent Desnogues [Mon, 21 Sep 2009 12:27:59 +0000 (14:27 +0200)]
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 <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoFix spelling in comment
Stefan Weil [Thu, 17 Sep 2009 17:06:53 +0000 (19:06 +0200)]
Fix spelling in comment

replace Convery -> Convert

Cc: Paul Brook <paul@codesourcery.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoSuppress some variants of English in comments
Stefan Weil [Thu, 24 Sep 2009 15:53:10 +0000 (17:53 +0200)]
Suppress some variants of English in comments

Replace surpress, supress by suppress.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agosparc64-8bit-asi
Igor V. Kovalenko [Wed, 23 Sep 2009 19:39:51 +0000 (23:39 +0400)]
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.

- correct wrasi by masking lower 8 bits of xor result
- use lower 8 bits of ASI register in helpers

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotarget-mips: remove MAX_OP_PER_INSTR workaround
Aurelien Jarno [Tue, 22 Sep 2009 21:29:44 +0000 (23:29 +0200)]
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 <aurelien@aurel32.net>
14 years agoexec-all.h: increase OPC_BUF_SIZE
Aurelien Jarno [Tue, 22 Sep 2009 21:31:04 +0000 (23:31 +0200)]
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 <aurelien@aurel32.net>
14 years agoexec-all.h: increase MAX_OP_PER_INSTR to 96 from 64
Aurelien Jarno [Tue, 22 Sep 2009 21:26:21 +0000 (23:26 +0200)]
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.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoThis files are compiled in libqemu.a now
Juan Quintela [Tue, 22 Sep 2009 23:07:15 +0000 (01:07 +0200)]
This files are compiled in libqemu.a now

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

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoFix device tree compile broken by ca20cf32ab3d945155141ef737f5d08ebb373e1d
Blue Swirl [Tue, 22 Sep 2009 17:51:36 +0000 (17:51 +0000)]
Fix device tree compile broken by ca20cf32ab3d945155141ef737f5d08ebb373e1d

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix Sparse warning about invalid access past the end of 'mode'
Blue Swirl [Mon, 21 Sep 2009 20:21:53 +0000 (20:21 +0000)]
Fix Sparse warning about invalid access past the end of 'mode'

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix Sparse warning about obsolete struct initializer
Blue Swirl [Mon, 21 Sep 2009 19:50:05 +0000 (19:50 +0000)]
Fix Sparse warning about obsolete struct initializer

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoExport tables properly to avoid a Sparse warning
Blue Swirl [Mon, 21 Sep 2009 18:40:57 +0000 (18:40 +0000)]
Export tables properly to avoid a Sparse warning

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoAdd 'static' to please Sparse
Blue Swirl [Mon, 21 Sep 2009 18:39:26 +0000 (18:39 +0000)]
Add 'static' to please Sparse

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix Sparse warnings about using plain integer as NULL pointer
Blue Swirl [Mon, 21 Sep 2009 18:11:34 +0000 (18:11 +0000)]
Fix Sparse warnings about using plain integer as NULL pointer

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1
Blue Swirl [Mon, 21 Sep 2009 15:24:07 +0000 (15:24 +0000)]
Fix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoCompile host-utils only once
Blue Swirl [Sun, 20 Sep 2009 19:20:05 +0000 (19:20 +0000)]
Compile host-utils only once

See also facd2857783d58387885ad7cb1e4a8386f241738 and
34005a0060c176b3025a9e7c5d064615a9f80325.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoCompile TCG runtime library only once
Blue Swirl [Sun, 20 Sep 2009 19:06:34 +0000 (19:06 +0000)]
Compile TCG runtime library only once

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix spelling in comment
Stefan Weil [Sun, 20 Sep 2009 18:48:23 +0000 (20:48 +0200)]
Fix spelling in comment

registrs -> registers

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoCompile ne2000 only once
Blue Swirl [Sun, 20 Sep 2009 16:19:32 +0000 (16:19 +0000)]
Compile ne2000 only once

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoioports: remove unused env parameter and compile only once
Blue Swirl [Sun, 20 Sep 2009 16:05:47 +0000 (16:05 +0000)]
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 <blauwirbel@gmail.com>
14 years agoCompile msix only once
Blue Swirl [Sun, 20 Sep 2009 15:35:55 +0000 (15:35 +0000)]
Compile msix only once

Get page size in device init.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoCompile loader only once
Blue Swirl [Sun, 20 Sep 2009 14:58:02 +0000 (14:58 +0000)]
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.

Adjust callers. Also use target_phys_addr_t instead of target_ulong for
addresses: loader addresses aren't virtual.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoCompile qemu-config only once
Blue Swirl [Sun, 20 Sep 2009 08:28:29 +0000 (08:28 +0000)]
Compile qemu-config only once

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoCompile wdt_i6300esb only once
Blue Swirl [Sun, 20 Sep 2009 08:02:28 +0000 (08:02 +0000)]
Compile wdt_i6300esb only once

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix mingw32 compile
Blue Swirl [Sun, 20 Sep 2009 07:51:06 +0000 (07:51 +0000)]
Fix mingw32 compile

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoProbe for fdatasync()
Blue Swirl [Sun, 20 Sep 2009 06:56:26 +0000 (06:56 +0000)]
Probe for fdatasync()

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoPPC: make system bus parent of PCI bus
Blue Swirl [Sat, 19 Sep 2009 17:59:10 +0000 (17:59 +0000)]
PPC: make system bus parent of PCI bus

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agoFix indentation
Stefan Weil [Sat, 19 Sep 2009 09:39:29 +0000 (11:39 +0200)]
Fix indentation

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agoESP: convert to VMState
Blue Swirl [Sat, 19 Sep 2009 15:44:50 +0000 (15:44 +0000)]
ESP: convert to VMState

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
14 years agotarget-alpha: fix extlh instruction
Vince Weaver [Thu, 17 Sep 2009 19:28:52 +0000 (15:28 -0400)]
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 <vince@csl.cornell.edu>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
14 years agotarget-ppc: optimize slw/srw/sld/srd
Aurelien Jarno [Fri, 18 Sep 2009 14:56:30 +0000 (16:56 +0200)]
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 <aurelien@aurel32.net>
14 years agoaudio: use correct email address
malc [Fri, 18 Sep 2009 07:52:45 +0000 (11:52 +0400)]
audio: use correct email address

Signed-off-by: malc <av1474@comtv.ru>
14 years agoaudio: internal API change
malc [Fri, 18 Sep 2009 07:37:39 +0000 (11:37 +0400)]
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.

Signed-off-by: malc <av1474@comtv.ru>
14 years agosdlaudio: use correct function names in sdl_XXX calls
malc [Fri, 18 Sep 2009 07:19:00 +0000 (11:19 +0400)]
sdlaudio: use correct function names in sdl_XXX calls

Signed-off-by: malc <av1474@comtv.ru>
14 years agooss: use audio_pcm_hw_clip_out
malc [Fri, 18 Sep 2009 06:59:54 +0000 (10:59 +0400)]
oss: use audio_pcm_hw_clip_out

Signed-off-by: malc <av1474@comtv.ru>
14 years agoalsa: use audio_pcm_hw_clip_out
malc [Fri, 18 Sep 2009 06:59:50 +0000 (10:59 +0400)]
alsa: use audio_pcm_hw_clip_out

Signed-off-by: malc <av1474@comtv.ru>
14 years agoaudio: introduce audio_pcm_hw_clip_out helper function
malc [Fri, 18 Sep 2009 06:59:38 +0000 (10:59 +0400)]
audio: introduce audio_pcm_hw_clip_out helper function

Signed-off-by: malc <av1474@comtv.ru>
14 years agoaudio: use muldiv64 where it makes sense
malc [Fri, 18 Sep 2009 04:16:03 +0000 (08:16 +0400)]
audio: use muldiv64 where it makes sense

Signed-off-by: malc <av1474@comtv.ru>