sdk/emulator/qemu.git
15 years agotarget-alpha: lower parent irq when irq is lowered.
aurel32 [Wed, 15 Apr 2009 14:42:30 +0000 (14:42 +0000)]
target-alpha: lower parent irq when irq is lowered.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7108 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: mark zero register as unused.
aurel32 [Wed, 15 Apr 2009 14:42:00 +0000 (14:42 +0000)]
target-mips: mark zero register as unused.

Suggested by Stuart Brady.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7107 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: variable names consistency
aurel32 [Wed, 15 Apr 2009 14:41:44 +0000 (14:41 +0000)]
target-mips: variable names consistency

Use a consistent naming of arguments and TCG variables across the whole
file, the same as in tcg/tcg-op.h:
- arg1, arg2, ... for arguments
- t0, t1, t2, ... for variables

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7106 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd a --enable-debug-tcg option to configure
aurel32 [Mon, 13 Apr 2009 18:45:38 +0000 (18:45 +0000)]
Add a --enable-debug-tcg option to configure

This patch allows DEBUG_TCGV to be defined (and also prevents NDEBUG
from being defined) when passing an option to the configure script.
This should help to prevent any accidental changes that enable
DEBUG_TCGV in tcg/tcg.h from being committed in future, and may
help to encourage testing 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@7105 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoProbe via #define check for OpenBSD and *Solaris
blueswir1 [Mon, 13 Apr 2009 17:19:26 +0000 (17:19 +0000)]
Probe via #define check for OpenBSD and *Solaris

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7104 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static'
blueswir1 [Mon, 13 Apr 2009 16:31:01 +0000 (16:31 +0000)]
Fix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static'

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7103 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix OpenSolaris softfloat warnings
blueswir1 [Mon, 13 Apr 2009 16:27:08 +0000 (16:27 +0000)]
Fix OpenSolaris softfloat warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7102 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoSkip KVM probe for OpenSolaris
blueswir1 [Mon, 13 Apr 2009 16:23:22 +0000 (16:23 +0000)]
Skip KVM probe for OpenSolaris

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7101 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoProbe for OpenSolaris curses missing resize_term
blueswir1 [Mon, 13 Apr 2009 16:18:34 +0000 (16:18 +0000)]
Probe for OpenSolaris curses missing resize_term

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7100 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix ppc-softmmu warnings on OpenBSD host
blueswir1 [Mon, 13 Apr 2009 16:06:19 +0000 (16:06 +0000)]
Fix ppc-softmmu warnings on OpenBSD host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7099 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRecognise evdev(xx)_aliases(yy) and xfree86(xx)_aliases(yy) as keymap names.
balrog [Mon, 13 Apr 2009 11:33:46 +0000 (11:33 +0000)]
Recognise evdev(xx)_aliases(yy) and xfree86(xx)_aliases(yy) as keymap names.

Newer Xorg use these with non-default kemaps (such as the ThinkPad keymap).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7097 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: fix commits 7040 and 7042
aurel32 [Mon, 13 Apr 2009 08:53:12 +0000 (08:53 +0000)]
target-mips: fix commits 7040 and 7042

CPU state should also be saved for helpers that in fine call
cpu_unlink_tb(). Reported by Stefan Weil.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7096 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: fix commit 7046
aurel32 [Sun, 12 Apr 2009 08:32:45 +0000 (08:32 +0000)]
target-mips: fix commit 7046

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7095 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: don't map zero register as a TCG global
aurel32 [Sat, 11 Apr 2009 18:43:20 +0000 (18:43 +0000)]
target-mips: don't map zero register as a TCG global

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7094 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_ldst()
aurel32 [Sat, 11 Apr 2009 18:42:55 +0000 (18:42 +0000)]
target-mips: optimize gen_ldst()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7093 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_arith_imm()
aurel32 [Sat, 11 Apr 2009 18:42:17 +0000 (18:42 +0000)]
target-mips: optimize gen_arith_imm()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7092 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd named initializers.
pbrook [Sat, 11 Apr 2009 17:41:32 +0000 (17:41 +0000)]
Add named initializers.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7091 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove redundant ram_require machine properly.
pbrook [Sat, 11 Apr 2009 17:33:00 +0000 (17:33 +0000)]
Remove redundant ram_require machine properly.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7090 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove more redundant ram size checks.
pbrook [Sat, 11 Apr 2009 17:24:39 +0000 (17:24 +0000)]
Remove more redundant ram size checks.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7089 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoImplement dynamic guest ram allocation.
pbrook [Sat, 11 Apr 2009 17:15:54 +0000 (17:15 +0000)]
Implement dynamic guest ram allocation.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7088 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix/remove bogus ram size checks.
pbrook [Sat, 11 Apr 2009 17:01:42 +0000 (17:01 +0000)]
Fix/remove bogus ram size checks.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7087 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAllocate enough vram for 24-bit planes.
pbrook [Sat, 11 Apr 2009 16:55:44 +0000 (16:55 +0000)]
Allocate enough vram for 24-bit planes.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7086 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove code phys_ram_base uses.
pbrook [Sat, 11 Apr 2009 14:47:08 +0000 (14:47 +0000)]
Remove code phys_ram_base uses.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7085 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoBSD user: initial support for i386 and x86_64 targets
blueswir1 [Sat, 11 Apr 2009 11:09:31 +0000 (11:09 +0000)]
BSD user: initial support for i386 and x86_64 targets

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7084 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoCompile target independent files only once
blueswir1 [Sat, 11 Apr 2009 09:04:44 +0000 (09:04 +0000)]
Compile target independent files only once

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7083 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove reserved registers from tcg_target_reg_alloc_order
malc [Sat, 11 Apr 2009 08:19:50 +0000 (08:19 +0000)]
Remove reserved registers from tcg_target_reg_alloc_order

Noticed by Andreas Faerber

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7082 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoWhack [LS]MW
malc [Sat, 11 Apr 2009 07:39:04 +0000 (07:39 +0000)]
Whack [LS]MW

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7081 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove reserved registers from tcg_target_reg_alloc_order
malc [Sat, 11 Apr 2009 07:38:56 +0000 (07:38 +0000)]
Remove reserved registers from tcg_target_reg_alloc_order

Noticed by Andreas Faerber

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7080 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agomips malta: fix commit 7064
aurel32 [Sat, 11 Apr 2009 07:02:25 +0000 (07:02 +0000)]
mips malta: fix commit 7064

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7079 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: fix commit r7076
aurel32 [Fri, 10 Apr 2009 21:56:32 +0000 (21:56 +0000)]
target-mips: fix commit r7076

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7078 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_movcf_d()
aurel32 [Fri, 10 Apr 2009 21:42:18 +0000 (21:42 +0000)]
target-mips: optimize gen_movcf_d()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7077 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize a few tcg_temp_free()
aurel32 [Fri, 10 Apr 2009 21:41:53 +0000 (21:41 +0000)]
target-mips: optimize a few tcg_temp_free()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7076 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: remove amask helper
aurel32 [Fri, 10 Apr 2009 21:27:48 +0000 (21:27 +0000)]
target-alpha: remove amask helper

The direct use of helper_amask in translate.c was bogus (as env is not
assigned).  Directly code amask in tcg and remove the helper.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7075 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: remove helper_load_implver
aurel32 [Fri, 10 Apr 2009 21:27:31 +0000 (21:27 +0000)]
target-alpha: remove helper_load_implver

There is no need to use an helper.  Directly load the value with tcg code.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7074 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: overflow condition for sublv and subqv
aurel32 [Fri, 10 Apr 2009 21:27:15 +0000 (21:27 +0000)]
target-alpha: overflow condition for sublv and subqv

The conditions to detect overflow in sub operations was wrong.

This patch is necessary to boot Tru64.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7073 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoClean up rc4030 init function
aurel32 [Fri, 10 Apr 2009 21:26:55 +0000 (21:26 +0000)]
Clean up rc4030 init function

At the moment, rc4030 init function is returning some function pointers.
Mark them non-static and define them in header file instead.
Export also a function to read/write DMA memory, it will be required by
the netcard.

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@7072 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoMake PCI config status register read-only
aliguori [Fri, 10 Apr 2009 20:48:17 +0000 (20:48 +0000)]
Make PCI config status register read-only

From the documentation I can find, this register is supposed to be read-only.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7070 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoWean device tree code off phys_ram_base.
pbrook [Fri, 10 Apr 2009 16:23:59 +0000 (16:23 +0000)]
Wean device tree code off phys_ram_base.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7068 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoYet more phys_ram_base elimination.
pbrook [Fri, 10 Apr 2009 14:29:45 +0000 (14:29 +0000)]
Yet more phys_ram_base elimination.

Signed-off-by: Paul Brook <paul@cofdesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7067 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoBSD user: add support for OpenBSD/amd64 host
blueswir1 [Fri, 10 Apr 2009 13:00:29 +0000 (13:00 +0000)]
BSD user: add support for OpenBSD/amd64 host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7066 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoBSD user: add support for OpenBSD/i386 host
blueswir1 [Fri, 10 Apr 2009 07:29:34 +0000 (07:29 +0000)]
BSD user: add support for OpenBSD/i386 host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7065 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoMore phys_ram_base elimination.
pbrook [Fri, 10 Apr 2009 03:36:49 +0000 (03:36 +0000)]
More phys_ram_base elimination.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7064 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoClean up VGA ram allocation.
pbrook [Fri, 10 Apr 2009 02:24:36 +0000 (02:24 +0000)]
Clean up VGA ram allocation.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7063 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix RTC breakage from r7031.
pbrook [Fri, 10 Apr 2009 02:19:52 +0000 (02:19 +0000)]
Fix RTC breakage from r7031.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7062 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoMusicpal ram access cleanup.
pbrook [Fri, 10 Apr 2009 01:24:26 +0000 (01:24 +0000)]
Musicpal ram access cleanup.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7061 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoMore phys_ram_base removal.
pbrook [Fri, 10 Apr 2009 00:26:15 +0000 (00:26 +0000)]
More phys_ram_base removal.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7060 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoCleanup SPARC/TCX framebuffer allocation.
pbrook [Thu, 9 Apr 2009 22:21:07 +0000 (22:21 +0000)]
Cleanup SPARC/TCX framebuffer allocation.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7059 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse cpu_physical_memory_write_rom instead of memcpy.
pbrook [Thu, 9 Apr 2009 21:02:04 +0000 (21:02 +0000)]
Use cpu_physical_memory_write_rom instead of memcpy.

Signed-off-by: Glauber Costa <glommer@redhat.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7058 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRegister a single area for vga bios and option roms
pbrook [Thu, 9 Apr 2009 20:59:05 +0000 (20:59 +0000)]
Register a single area for vga bios and option roms

Those guys are not different in nature. They're all roms,
not blessed with the graces of being written to. So there's
not need to issue multiple requests to memory registration areas:
just treat them as brothers, and put them all in the same
region.

It also has the nice side effect of improving the loading code
a little bit. Besides some of the ugliness going away, we're now
avoiding phys_ram_base dependencies in option rom code.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7057 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse load_image_targphys and avoid phys_ram_base.
pbrook [Thu, 9 Apr 2009 20:05:49 +0000 (20:05 +0000)]
Use load_image_targphys and avoid phys_ram_base.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7056 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoMore phys_ram_base removal.
pbrook [Thu, 9 Apr 2009 17:48:30 +0000 (17:48 +0000)]
More phys_ram_base removal.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7055 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse load_image_targphys.
pbrook [Thu, 9 Apr 2009 17:30:32 +0000 (17:30 +0000)]
Use load_image_targphys.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7054 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse guest memory access functions when setting up arm boorloader.
pbrook [Thu, 9 Apr 2009 17:19:47 +0000 (17:19 +0000)]
Use guest memory access functions when setting up arm boorloader.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7053 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse qemu_ram_alloc.
pbrook [Thu, 9 Apr 2009 17:15:18 +0000 (17:15 +0000)]
Use qemu_ram_alloc.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7052 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoEnable generic accepts-anything cpu by default for usermode emulation.
pbrook [Thu, 9 Apr 2009 15:20:50 +0000 (15:20 +0000)]
Enable generic accepts-anything cpu by default for usermode emulation.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7051 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agolinux-user: fix fstatat64()/newfstatat() syscall implementation
aurel32 [Wed, 8 Apr 2009 23:07:05 +0000 (23:07 +0000)]
linux-user: fix fstatat64()/newfstatat() syscall implementation

There are two different syscall names for the same goal.

On systems with sizeof(long) == 64 it calls newfstatat.
On systems with sizeof(long) == 32 it calls fstatat64.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
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@7050 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agopcnet: Avoid double conversion via PHYSADDR
aurel32 [Wed, 8 Apr 2009 22:56:33 +0000 (22:56 +0000)]
pcnet: Avoid double conversion via PHYSADDR

rdra and tdra are already kept converted in the pcnet state structure.
Avoid converting derivatives a second time. The same case with the local
variable xmit_cxda: it already contains a converted cxda address. This
issue only causes troubles when using the pcnet in 16-bit legacy mode.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7049 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoapic: Fix access to non-existent APIC
aurel32 [Wed, 8 Apr 2009 22:56:26 +0000 (22:56 +0000)]
apic: Fix access to non-existent APIC

When running with -M isapc, there is no env->apic_state. Fix
cpu_get/set_apic_* helpers to handle this corner case gracefully.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7048 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUse stdint.h for integral data types and definitions
aurel32 [Wed, 8 Apr 2009 22:56:19 +0000 (22:56 +0000)]
Use stdint.h for integral data types and definitions

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@7047 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_farith()
aurel32 [Wed, 8 Apr 2009 21:48:27 +0000 (21:48 +0000)]
target-mips: optimize gen_farith()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7046 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_flt3_arith()
aurel32 [Wed, 8 Apr 2009 21:48:18 +0000 (21:48 +0000)]
target-mips: optimize gen_flt3_arith()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7045 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_flt3_ldst()
aurel32 [Wed, 8 Apr 2009 21:48:10 +0000 (21:48 +0000)]
target-mips: optimize gen_flt3_ldst()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7044 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_arith()
aurel32 [Wed, 8 Apr 2009 21:48:02 +0000 (21:48 +0000)]
target-mips: optimize gen_arith()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7043 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize decode_opc()
aurel32 [Wed, 8 Apr 2009 21:47:55 +0000 (21:47 +0000)]
target-mips: optimize decode_opc()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7042 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_cp1()
aurel32 [Wed, 8 Apr 2009 21:47:44 +0000 (21:47 +0000)]
target-mips: optimize gen_cp1()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7041 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: optimize gen_cp0()
aurel32 [Wed, 8 Apr 2009 21:47:35 +0000 (21:47 +0000)]
target-mips: optimize gen_cp0()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7040 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agofactor out setting pc in gdbstub
aurel32 [Wed, 8 Apr 2009 21:29:37 +0000 (21:29 +0000)]
factor out setting pc in gdbstub

The code for handling the c and s packets both contain code for setting
the pc.  Move that code out to a common function.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7039 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agolinux-user: fix problems with inotify syscalls
aurel32 [Wed, 8 Apr 2009 21:29:30 +0000 (21:29 +0000)]
linux-user: fix problems with inotify syscalls

The sys_inotify* calls are defined if the target supports them and the
host supports the necessary syscalls.  But the syscalls are handled if
the target supports them.  This situation leads to compilation failures
when the host doesn't support the necessary syscalls, as the linker will
complain about undefined functions.

Fix this state of affairs by making the handling conditions the same as
the call definition conditions.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Acked-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@7038 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUpdate the version information to 0.10.50 to signify development branch
aliguori [Wed, 8 Apr 2009 13:14:12 +0000 (13:14 +0000)]
Update the version information to 0.10.50 to signify development branch

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7037 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd --with-pkgversion.
pbrook [Tue, 7 Apr 2009 23:17:49 +0000 (23:17 +0000)]
Add --with-pkgversion.
Allows distributors to identify their builds without needing to hack the
sources.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7036 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoImplement --version.
pbrook [Tue, 7 Apr 2009 22:58:45 +0000 (22:58 +0000)]
Implement --version.

Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7035 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-arm: don't use T[x] in helper
aurel32 [Tue, 7 Apr 2009 22:48:36 +0000 (22:48 +0000)]
target-arm: don't use T[x] in helper

(Torbjörn Andersson)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7034 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: fix palcode mask for user pal calls
aurel32 [Tue, 7 Apr 2009 22:31:34 +0000 (22:31 +0000)]
target-alpha: fix palcode mask for user pal calls

(Also 6 bits for unprivileged calls)

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7033 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: document more registers used by 21264
aurel32 [Tue, 7 Apr 2009 22:31:26 +0000 (22:31 +0000)]
target-alpha: document more registers used by 21264

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7032 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agomc146818: add square wave output support
aurel32 [Tue, 7 Apr 2009 22:28:50 +0000 (22:28 +0000)]
mc146818: add square wave output support

This is necessary for es40 as the sqw output is directly connected to the
core chipset.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7031 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agorc4030 registers improvements
aurel32 [Tue, 7 Apr 2009 22:03:44 +0000 (22:03 +0000)]
rc4030 registers improvements

Attached patch documents some registers and simplifies one hack.

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@7030 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: set target page size to 13 bits
aurel32 [Tue, 7 Apr 2009 21:47:34 +0000 (21:47 +0000)]
target-alpha: set target page size to 13 bits

(As defined by the alpha arch ref).

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7029 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAllow 5 mmu indexes.
aurel32 [Tue, 7 Apr 2009 21:47:27 +0000 (21:47 +0000)]
Allow 5 mmu indexes.

This is necessary for alpha because it has 4 protection levels and pal mode.

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7028 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-alpha: stop translation if too long
aurel32 [Tue, 7 Apr 2009 21:44:52 +0000 (21:44 +0000)]
target-alpha: stop translation if too long

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7027 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix crash on resolution change -> screen dump -> vga redraw (Avi Kivity)
aliguori [Tue, 7 Apr 2009 20:55:58 +0000 (20:55 +0000)]
Fix crash on resolution change -> screen dump -> vga redraw (Avi Kivity)

The vga screen dump function updates last_width and last_height,
but does not change the DisplaySurface that these variables describe.
A consequent vga_draw_graphic() will therefore fail to resize the
surface and crash.

Fix by invalidating the display state after a screen dump, forcing
vga_draw_graphic() to reallocate the DisplaySurface.

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@7026 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRevert r6989
aliguori [Tue, 7 Apr 2009 20:55:29 +0000 (20:55 +0000)]
Revert r6989

There is a much more elegant fix that will follow up after this commit.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7025 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotcg/tcg.h: fix a few typos
aurel32 [Tue, 7 Apr 2009 19:57:24 +0000 (19:57 +0000)]
tcg/tcg.h: fix a few typos

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7024 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoDocument some missing options in configure -h
aurel32 [Tue, 7 Apr 2009 19:57:17 +0000 (19:57 +0000)]
Document some missing options in configure -h

Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7023 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agovnc: Fix incorrect attempt to clear a flag
aurel32 [Tue, 7 Apr 2009 19:57:09 +0000 (19:57 +0000)]
vnc: Fix incorrect attempt to clear a flag

In vnc.c in pixel_format_message, the code tries to clear the
QEMU_ALLOCATED_FLAG from the client display surface, however
it uses the wrong operator and ends up enabling all other
flags. Most notably this enables the big endian flag and
causes some chaos.

Signed-off-by: Brian Kress <kressb@moose.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7022 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agonative preadv/pwritev support (Christoph Hellwig)
aliguori [Tue, 7 Apr 2009 18:43:28 +0000 (18:43 +0000)]
native preadv/pwritev support (Christoph Hellwig)

This ties up the preadv/pwritev syscalls to qemu if they are declared in
unistd.h.  This is the case currently on at least NetBSD and OpenBSD and
will hopefully soon be the case on Linux.

Thanks to Blue Swirl and Gerd Hoffmann for the configure autodetection
of preadv/pwritev.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7021 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agopush down vector linearization to posix-aio-compat.c (Christoph Hellwig)
aliguori [Tue, 7 Apr 2009 18:43:24 +0000 (18:43 +0000)]
push down vector linearization to posix-aio-compat.c (Christoph Hellwig)

Make all AIO requests vectored and defer linearization until the actual
I/O thread.  This prepares for using native preadv/pwritev.

Also enables asynchronous direct I/O by handling that case in the I/O thread.

Qcow and qcow2 propably want to be adopted to directly deal with multi-segment
requests, but that can be implemented later.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7020 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoremove bdrv_aio_read/bdrv_aio_write (Christoph Hellwig)
aliguori [Tue, 7 Apr 2009 18:43:20 +0000 (18:43 +0000)]
remove bdrv_aio_read/bdrv_aio_write (Christoph Hellwig)

Always use the vectored APIs to reduce code churn once we switch the BlockDriver
API to be vectored.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7019 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agomore BlockDriver C99 initializers (Christoph Hellwig)
aliguori [Tue, 7 Apr 2009 18:23:51 +0000 (18:23 +0000)]
more BlockDriver C99 initializers (Christoph Hellwig)

Looks like the two bdrv_raw instances were missed last time.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7018 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoDon't try to return result from a void function (spotted by Sparse)
blueswir1 [Tue, 7 Apr 2009 18:22:35 +0000 (18:22 +0000)]
Don't try to return result from a void function (spotted by Sparse)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7017 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix a few Sparse warnings
blueswir1 [Tue, 7 Apr 2009 17:57:09 +0000 (17:57 +0000)]
Fix a few Sparse warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoUpdate Changelog to reflect 0.10.2 release
aliguori [Tue, 7 Apr 2009 02:19:41 +0000 (02:19 +0000)]
Update Changelog to reflect 0.10.2 release

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7015 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove potentially offensive humor.
edgar_igl [Tue, 7 Apr 2009 02:10:16 +0000 (02:10 +0000)]
Remove potentially offensive humor.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7014 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoFix find_device_type() to correctly identify floppy disk devices; (Luca Tettamanti)
aliguori [Tue, 7 Apr 2009 01:24:53 +0000 (01:24 +0000)]
Fix find_device_type() to correctly identify floppy disk devices; (Luca Tettamanti)
they are reported as DRIVE_REMOVABLE by win32.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7010 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotarget-mips: use the TCG_CALL_PURE and TCG_CALL_CONST for some helpers
aurel32 [Mon, 6 Apr 2009 12:34:07 +0000 (12:34 +0000)]
target-mips: use the TCG_CALL_PURE and TCG_CALL_CONST for some helpers

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7009 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotcg: add a CONST flag to TCG helpers
aurel32 [Mon, 6 Apr 2009 12:33:59 +0000 (12:33 +0000)]
tcg: add a CONST flag to TCG helpers

A const function only reads its arguments and does not use TCG
globals variables. Hence a call to such a function does not
save TCG globals variabes back to their canonical location.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7008 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotcg: improve comment about pure functions
aurel32 [Mon, 6 Apr 2009 12:33:51 +0000 (12:33 +0000)]
tcg: improve comment about pure functions

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7007 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoRemove WIN32 guard around -k
aliguori [Mon, 6 Apr 2009 00:35:08 +0000 (00:35 +0000)]
Remove WIN32 guard around -k

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7006 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agoAdd new command line option -singlestep for tcg single stepping.
aurel32 [Sun, 5 Apr 2009 20:08:59 +0000 (20:08 +0000)]
Add new command line option -singlestep for tcg single stepping.

This replaces a compile time option for some targets and adds
this feature to targets which did not have a compile time option.

Add monitor command to enable or disable single step mode.

Modify monitor command "info status" to display single step mode.

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@7004 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agotcg/x86_64: optimize register allocation order
aurel32 [Sun, 5 Apr 2009 20:08:50 +0000 (20:08 +0000)]
tcg/x86_64: optimize register allocation order

The beginning of the register allocation order list on the TCG x86_64
target matches the list of clobbered registers. This means that when an
helper is called, there is almost always clobbered registers that have
to be spilled.

The same way register %rsi and %rdi are at the top of the register
allocation order list, while they can't be used for load/store
operations. This means the data and/or address registers are very often
%rsi and %rdi, and their values have to be spilled, and then moved back
to another register.

This patches changes to the allocation order to avoid those effects.
It results in a 8% gain speed in qemu-x86_64 to compress a bzip2 file,
and a 6% gain in qemu-system-mips64 to compile a small application.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7003 c046a42c-6fe2-441c-8c8c-71466251a162

15 years agostop dirty tracking just at the end of migration (Glauber Costa)
aliguori [Sun, 5 Apr 2009 19:30:55 +0000 (19:30 +0000)]
stop dirty tracking just at the end of migration (Glauber Costa)

If there is still work to do, it is not safe to assume we
can end the dirty tracking. Specifically, kvm can update the dirty
tracking log inside ram_save_block(), leaving pages still out of sync
if we go with the current code.

Based on a patch by Yaniv Kamay

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6999 c046a42c-6fe2-441c-8c8c-71466251a162