sdk/emulator/qemu.git
16 years agoAdd IP checksumming functions to qemu (Gerd Hoffmann)
aliguori [Tue, 29 Jul 2008 19:40:04 +0000 (19:40 +0000)]
Add IP checksumming functions to qemu (Gerd Hoffmann)

This can be shared between the e1000, virtio-net, and xennet.

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

16 years agoFix cmp/subcc/addcc op bugs reported by Vince Weaver
blueswir1 [Tue, 29 Jul 2008 18:11:20 +0000 (18:11 +0000)]
Fix cmp/subcc/addcc op bugs reported by Vince Weaver

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

16 years agoCorrect audio api usage in OMAP EAC (spotted by malc).
balrog [Tue, 29 Jul 2008 17:29:41 +0000 (17:29 +0000)]
Correct audio api usage in OMAP EAC (spotted by malc).

This is to improve the usage of audio API thanks to explanation from malc.
Functionally may not be better.

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

16 years agoFill in WLAN and BT platform data in CAL area as expected by Maemo.
balrog [Tue, 29 Jul 2008 14:19:16 +0000 (14:19 +0000)]
Fill in WLAN and BT platform data in CAL area as expected by Maemo.

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

16 years agoUnswap qemu-arm data and prefetch abort addresses (Laurent Desnogues).
balrog [Tue, 29 Jul 2008 14:09:57 +0000 (14:09 +0000)]
Unswap qemu-arm data and prefetch abort addresses (Laurent Desnogues).

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

16 years agoFix load width for slave address in i2c_bus_load (Chris Lalancette).
balrog [Tue, 29 Jul 2008 13:57:48 +0000 (13:57 +0000)]
Fix load width for slave address in i2c_bus_load (Chris Lalancette).

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

16 years agoSimplify -usbdevice net: syntax, allow VLANs with no NICs.
balrog [Tue, 29 Jul 2008 13:16:31 +0000 (13:16 +0000)]
Simplify -usbdevice net: syntax, allow VLANs with no NICs.

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

16 years agoFor consistncy with --target-list accept coma separated items in --audio-card/drv...
malc [Tue, 29 Jul 2008 12:58:44 +0000 (12:58 +0000)]
For consistncy with --target-list accept coma separated items in --audio-card/drv-list

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

16 years agoRemove dyngen leftovers.
edgar_igl [Tue, 29 Jul 2008 07:46:53 +0000 (07:46 +0000)]
Remove dyngen leftovers.

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

16 years agoImmediate versions of some operations
malc [Mon, 28 Jul 2008 23:46:06 +0000 (23:46 +0000)]
Immediate versions of some operations

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

16 years agoDo not try handle "special" arguments of and/or/xor/shl/shr, upper level does it
malc [Mon, 28 Jul 2008 23:46:03 +0000 (23:46 +0000)]
Do not try handle "special" arguments of and/or/xor/shl/shr, upper level does it

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

16 years agoSet the L field of CMP[L][I] when dealing with 64 bit quantities
malc [Mon, 28 Jul 2008 19:42:23 +0000 (19:42 +0000)]
Set the L field of CMP[L][I] when dealing with 64 bit quantities

This (along with previous 2 commits) makes X86_64 work on ppc64 too.

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

16 years agoFix preprocessor guard condition
malc [Mon, 28 Jul 2008 19:42:20 +0000 (19:42 +0000)]
Fix preprocessor guard condition

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

16 years agoRemove leftover from previous way to load 64 bit constants
malc [Mon, 28 Jul 2008 19:42:17 +0000 (19:42 +0000)]
Remove leftover from previous way to load 64 bit constants

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

16 years agovmware backdoor interface fix (Chris Lalancette)
aliguori [Mon, 28 Jul 2008 18:58:02 +0000 (18:58 +0000)]
vmware backdoor interface fix (Chris Lalancette)

VMWare backdoor interface should work with IN/OUT port ops, but
currently only IN is supported. BOCHS bios uses OUT to query UUID.
The patch adds OUT support.

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

16 years agoAttempt to detect unconnected ptys (Gerd Hoffman)
aliguori [Mon, 28 Jul 2008 18:55:32 +0000 (18:55 +0000)]
Attempt to detect unconnected ptys (Gerd Hoffman)

This patch moves the pty char device imlementation away from the generic
filehandle code.  It tries to detect as good as possible whenever there
is someone connected to the slave pty device and only send data down the
road in case someone is listening.  Unfortunaly we have to poll via
timer once in a while to check the status because we have to use read()
on the master pty to figure the status (returns -EIO when unconnected).

Poll intervall for an idle guest is one second, when the guest sends
data to the virtual device linked to the pty we check more frequently.

The point for all of this is to avoid qemu blocking and not responding
any more.  Writing to the master pty handle succeeds even when nobody is
connected to (and reading from) to the slave end of the pty.  The kernel
just bufferes the writes.  And as soon as the kernel buffer is full the
write() call blocks forever ...

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

16 years agoSpecial-case some paths inside tcg_out_tlb_read
malc [Sun, 27 Jul 2008 11:09:21 +0000 (11:09 +0000)]
Special-case some paths inside tcg_out_tlb_read

a. Use 32bit arithmetics in TARGET_LONG_BITS == 32 case
b. Optimize byte access case in TARGET_LONG_BITS == 64 case

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

16 years agoFix the opcode value of LWA
malc [Sun, 27 Jul 2008 10:28:15 +0000 (10:28 +0000)]
Fix the opcode value of LWA

That should teach one to not blindly trust documentation that will
(out of the blue) use decimal and binary representation for numbers in
the same chart for no apparent reason and without any prefixes, sigh..

Unbreaks MIPS.

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

16 years agoTry to avoid glibc global register mangling, again
blueswir1 [Sat, 26 Jul 2008 17:19:35 +0000 (17:19 +0000)]
Try to avoid glibc global register mangling, again

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

16 years agoAdd e1000 etherboot ROM from http://www.rom-o-matic.net
aliguori [Sat, 26 Jul 2008 16:53:22 +0000 (16:53 +0000)]
Add e1000 etherboot ROM from www.rom-o-matic.net

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

16 years agoMap code buffers below 2G on Sparc64
blueswir1 [Sat, 26 Jul 2008 15:05:57 +0000 (15:05 +0000)]
Map code buffers below 2G on Sparc64

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

16 years agoRelax memory operations constraints
malc [Sat, 26 Jul 2008 11:21:03 +0000 (11:21 +0000)]
Relax memory operations constraints

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

16 years agoFix qemu_ld64 constraint list
malc [Sat, 26 Jul 2008 11:21:00 +0000 (11:21 +0000)]
Fix qemu_ld64 constraint list

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

16 years agoUse proper offset for LR save slot
malc [Sat, 26 Jul 2008 11:20:57 +0000 (11:20 +0000)]
Use proper offset for LR save slot

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

16 years agoReduce amount of space reserved for tb jump
malc [Sat, 26 Jul 2008 11:20:54 +0000 (11:20 +0000)]
Reduce amount of space reserved for tb jump

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

16 years agoFix and improve 64 bit immediate loading
malc [Sat, 26 Jul 2008 11:20:50 +0000 (11:20 +0000)]
Fix and improve 64 bit immediate loading

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

16 years agoFix EXTSW arguments
malc [Sat, 26 Jul 2008 11:20:44 +0000 (11:20 +0000)]
Fix EXTSW arguments

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

16 years agoCRIS: Correct condition for when to apply fast move flags evaluation. Correct single...
edgar_igl [Fri, 25 Jul 2008 21:20:21 +0000 (21:20 +0000)]
CRIS: Correct condition for when to apply fast move flags evaluation. Correct single-stepping over branches.

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

16 years agoFix OMAP GPMC register offsets and SYSCTL 8bit io (Kyungmin Park).
balrog [Fri, 25 Jul 2008 21:07:21 +0000 (21:07 +0000)]
Fix OMAP GPMC register offsets and SYSCTL 8bit io (Kyungmin Park).

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

16 years agoMake MAXTL dynamic, bounds check tl when indexing
blueswir1 [Fri, 25 Jul 2008 07:42:14 +0000 (07:42 +0000)]
Make MAXTL dynamic, bounds check tl when indexing

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

16 years agoUse proper value for TCG_TARGET_CALL_STACK_OFFSET
malc [Thu, 24 Jul 2008 22:56:21 +0000 (22:56 +0000)]
Use proper value for TCG_TARGET_CALL_STACK_OFFSET

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

16 years agoDo exit if test for hostlongbits on ppc64 fails
malc [Thu, 24 Jul 2008 17:51:36 +0000 (17:51 +0000)]
Do exit if test for hostlongbits on ppc64 fails

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

16 years agoEmit and use adhoc function descriptor for code_gen_prologue on PPC64
malc [Thu, 24 Jul 2008 17:37:09 +0000 (17:37 +0000)]
Emit and use adhoc function descriptor for code_gen_prologue on PPC64

Thus avoiding fragile inline assembly hackery to call into generated
code.

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

16 years agoSparc32: save/load all MMU registers, Sparc64: add CPU save/load
blueswir1 [Thu, 24 Jul 2008 11:28:51 +0000 (11:28 +0000)]
Sparc32: save/load all MMU registers, Sparc64: add CPU save/load

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

16 years agoFix 24 bit mode
blueswir1 [Thu, 24 Jul 2008 11:26:38 +0000 (11:26 +0000)]
Fix 24 bit mode

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

16 years agoFix detection of 15 bit display depth
blueswir1 [Thu, 24 Jul 2008 11:25:30 +0000 (11:25 +0000)]
Fix detection of 15 bit display depth

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

16 years agoRemove neg_i32 debugging leftover
malc [Wed, 23 Jul 2008 20:01:27 +0000 (20:01 +0000)]
Remove neg_i32 debugging leftover

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

16 years agoProvide extNs_M instructions
malc [Wed, 23 Jul 2008 20:01:23 +0000 (20:01 +0000)]
Provide extNs_M instructions

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

16 years agoRemove stray "i" from mul_i64
malc [Wed, 23 Jul 2008 20:01:19 +0000 (20:01 +0000)]
Remove stray "i" from mul_i64

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

16 years agoPreliminary PPC64/Linux host support
malc [Wed, 23 Jul 2008 19:17:46 +0000 (19:17 +0000)]
Preliminary PPC64/Linux host support

ppc64.ld from Heikki Lindholm's patch
http://marc.info/?l=qemu-devel&m=114086179024634&w=2

Issues:
x86_64 tripple faults shortly after decompressing the kernel
No immediate versions of most 64 bit operations
More...

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

16 years agoEnable VDE by default if library is present.
aliguori [Wed, 23 Jul 2008 18:14:33 +0000 (18:14 +0000)]
Enable VDE by default if library is present.

VDE isn't used unless the user explicitly asks for it so if the library is
present on the system, we should include support for it.

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

16 years agoAdd OneNAND Unlock All command (Kyungmin Park).
balrog [Wed, 23 Jul 2008 16:35:45 +0000 (16:35 +0000)]
Add OneNAND Unlock All command (Kyungmin Park).

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

16 years agoUse plain standard inline.
ths [Wed, 23 Jul 2008 16:16:31 +0000 (16:16 +0000)]
Use plain standard inline.

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

16 years agoLess hardcoding of TARGET_USER_ONLY.
ths [Wed, 23 Jul 2008 16:14:22 +0000 (16:14 +0000)]
Less hardcoding of TARGET_USER_ONLY.

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

16 years agoSave 3MB ioport table memory (Samuel Thibault)
aliguori [Wed, 23 Jul 2008 15:19:59 +0000 (15:19 +0000)]
Save 3MB ioport table memory (Samuel Thibault)

Save 1.5MB (32bit) or 3MB (64bit) memory by keeping ioport tables
sparse and use a test against NULL instead.

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

16 years agoFix task register type after reset (Avi Kivity)
aliguori [Wed, 23 Jul 2008 13:29:23 +0000 (13:29 +0000)]
Fix task register type after reset (Avi Kivity)

Obvious typo that breaks reboots.

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

16 years agoFix SDL problems with BGR displays (Avi Kivity)
aliguori [Wed, 23 Jul 2008 13:24:33 +0000 (13:24 +0000)]
Fix SDL problems with BGR displays (Avi Kivity)

revert qemu's sdl.c rev 1.40

this fixes problems with bgr displays.

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

16 years agoFix -daemonize option
aliguori [Wed, 23 Jul 2008 00:58:33 +0000 (00:58 +0000)]
Fix -daemonize option

When using -daemonize, we want to avoid chdir() until after we've opened the
block devices.  It's also perfectly fine to use -dameonize along with SDL.

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

16 years agoAdd T1 and T2 CPUs, add a Sun4v machine
blueswir1 [Tue, 22 Jul 2008 07:07:34 +0000 (07:07 +0000)]
Add T1 and T2 CPUs, add a Sun4v machine

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

16 years agoFix a bad comparison, spotted by Paul Brook.
balrog [Tue, 22 Jul 2008 01:57:42 +0000 (01:57 +0000)]
Fix a bad comparison, spotted by Paul Brook.

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

16 years agoA bunch of minor code improvements in the MIPS target.
ths [Mon, 21 Jul 2008 21:38:04 +0000 (21:38 +0000)]
A bunch of minor code improvements in the MIPS target.

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

16 years agoHandle on-chip DMA controllers in one place, convert OMAP DMA to use it.
balrog [Mon, 21 Jul 2008 20:40:22 +0000 (20:40 +0000)]
Handle on-chip DMA controllers in one place, convert OMAP DMA to use it.

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

16 years agoOmap DPLL & APLL locking logic.
balrog [Mon, 21 Jul 2008 19:52:54 +0000 (19:52 +0000)]
Omap DPLL & APLL locking logic.

Reset I2C fifo on new transfers.

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

16 years agoUse MMU globals for some MMU traps
blueswir1 [Mon, 21 Jul 2008 18:43:32 +0000 (18:43 +0000)]
Use MMU globals for some MMU traps

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

16 years agoFix reset vector
blueswir1 [Mon, 21 Jul 2008 11:17:23 +0000 (11:17 +0000)]
Fix reset vector

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

16 years agoFix logging output for MIPS HI, LO registers, by Stefan Weil.
ths [Mon, 21 Jul 2008 07:46:03 +0000 (07:46 +0000)]
Fix logging output for MIPS HI, LO registers, by Stefan Weil.

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

16 years agoFix compiler warning, by Stefan Weil.
ths [Sun, 20 Jul 2008 19:13:19 +0000 (19:13 +0000)]
Fix compiler warning, by Stefan Weil.

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

16 years agoAdd missing const, by Stefan Weil.
ths [Sun, 20 Jul 2008 18:55:00 +0000 (18:55 +0000)]
Add missing const, by Stefan Weil.

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

16 years agoSimplify conditional FP moves.
ths [Sun, 20 Jul 2008 18:48:42 +0000 (18:48 +0000)]
Simplify conditional FP moves.

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

16 years agoPrint default and available CPU features separately
blueswir1 [Sun, 20 Jul 2008 18:23:50 +0000 (18:23 +0000)]
Print default and available CPU features separately

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

16 years agoMake UA200x features selectable, add MMU types
blueswir1 [Sun, 20 Jul 2008 18:22:16 +0000 (18:22 +0000)]
Make UA200x features selectable, add MMU types

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

16 years agoFix debug message address formats
blueswir1 [Sun, 20 Jul 2008 15:22:46 +0000 (15:22 +0000)]
Fix debug message address formats

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

16 years agoFix wrong function names in debug messages (Stefan Weil)
blueswir1 [Sun, 20 Jul 2008 15:21:50 +0000 (15:21 +0000)]
Fix wrong function names in debug messages (Stefan Weil)

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

16 years agoRemove unused variable
blueswir1 [Sat, 19 Jul 2008 18:35:29 +0000 (18:35 +0000)]
Remove unused variable

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

16 years agoImprove the audio driver check
malc [Sat, 19 Jul 2008 16:57:30 +0000 (16:57 +0000)]
Improve the audio driver check

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

16 years agoReject invalid audio drivers
malc [Sat, 19 Jul 2008 16:15:16 +0000 (16:15 +0000)]
Reject invalid audio drivers

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

16 years agoRevert "QEMU keyboard issue with Gujin-2.2" (Avi Kivity).
balrog [Sat, 19 Jul 2008 14:16:20 +0000 (14:16 +0000)]
Revert "QEMU keyboard issue with Gujin-2.2" (Avi Kivity).

This reverts commit r3421, which kills the mouse in SuSE Linux 9.1 (there
were other reports of breakage earlier also).

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

16 years agoRevert "fix power management timer overflow handling" (Avi Kivity).
balrog [Sat, 19 Jul 2008 14:11:22 +0000 (14:11 +0000)]
Revert "fix power management timer overflow handling" (Avi Kivity).

The fix is bogus, causing sci to be deferred for longer and longer.

Noticed by Alex Williamson.

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

16 years agoForce screen resize if no buffer set (Avi Kivity).
balrog [Sat, 19 Jul 2008 14:09:20 +0000 (14:09 +0000)]
Force screen resize if no buffer set (Avi Kivity).

This is a hack to get screen_dump to work, we should start using a global
screen_dump method.

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

16 years agoImplement nucleus quad ldda
blueswir1 [Sat, 19 Jul 2008 13:25:28 +0000 (13:25 +0000)]
Implement nucleus quad ldda

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

16 years agoPretend to be the active console while a screendump takes place (Avi Kivity).
balrog [Sat, 19 Jul 2008 13:04:26 +0000 (13:04 +0000)]
Pretend to be the active console while a screendump takes place (Avi Kivity).

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

16 years agoARMv6: fix SIMD add/sub carry flags (Vincent Palatin).
balrog [Sat, 19 Jul 2008 10:46:13 +0000 (10:46 +0000)]
ARMv6: fix SIMD add/sub carry flags (Vincent Palatin).

After a quick code review, it seems to be a bad cut-n-paste between
16-bit and 8-bit UADD/USUB, indeed UADD8/USUB8 tries to set GE bits by
pair instead of one at a time.
Besides, the addition operations (UADD8/UADD16) set GE bits to "NOT
carry" instead of "carry" (probably once again due to a copy of the
substraction code which sets flags to "NOT borrow")

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

16 years agoARM: fix CPS masks (Vincent Palatin).
balrog [Sat, 19 Jul 2008 10:34:35 +0000 (10:34 +0000)]
ARM: fix CPS masks (Vincent Palatin).

According to ARM Reference Manual (DDI0100 A4.1.16),
bit 5 is fixed to 0 (bit 4 is the MSB of the mode), so the instruction mask
should be  0x0ff10020 not 0x0ff10010.
Besides, mmod flag is bit 17 (b14 is SBZ)

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

16 years agoFix smlald, smlsld, pkhtp, pkhbt, ssat, usat, umul, smul... (Laurent Desnogues).
balrog [Sat, 19 Jul 2008 10:12:22 +0000 (10:12 +0000)]
Fix smlald, smlsld, pkhtp, pkhbt, ssat, usat, umul, smul... (Laurent Desnogues).

helper.c
 - copy reference c0_c2 to runtime c0_c2 and not c0_c1

op_helper.c
 - remove old code (PARAM1, probably some left over from old dyngen)
   that broke do_[us]sat

translate.c
 - gen_smul_dual should sign-extend from 16 bit to 32 bit and not from
   8 to 32
 - disas_arm_insn:
   * smlalxy:  that was completely wrong;  now the addition is
     performed as for smlald
   * pkhtb:  optional ASR not taken into account (similar
   * to [us]sat)
   * pkhtb/pkhbt: tmp2 is dead
   * smlald, smlsld, smuad, smusd, smlad, smlsd: rd
   * and rn swapped

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

16 years agoUpdate TLB miss addresses
blueswir1 [Sat, 19 Jul 2008 10:04:48 +0000 (10:04 +0000)]
Update TLB miss addresses

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

16 years agoAdd Virtual Distributed Ethernet native support, by Luca Bigliardi.
ths [Sat, 19 Jul 2008 09:56:24 +0000 (09:56 +0000)]
Add Virtual Distributed Ethernet native support, by Luca Bigliardi.

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

16 years agolinux-user: Fix target_statfs[64] on 64-bit hosts
balrog [Sat, 19 Jul 2008 09:38:52 +0000 (09:38 +0000)]
linux-user: Fix target_statfs[64] on 64-bit hosts

Testing qemu-x86_64, I happen to run df and came across these mistakes
in the target_statfs/target_statfs64 structure definitions (reference:
linux/include/asm-x86/statfs.h).

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4895 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSpecial Mask Mode for i8259 PIC (Sebastian Reichelt).
balrog [Sat, 19 Jul 2008 09:18:48 +0000 (09:18 +0000)]
Special Mask Mode for i8259 PIC (Sebastian Reichelt).

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

16 years agoAllow qemu-nbd --version to show the application name dynamically, by
ths [Fri, 18 Jul 2008 18:06:23 +0000 (18:06 +0000)]
Allow qemu-nbd --version to show the application name dynamically, by
Carlo Marcelo Arenas Belon.

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

16 years agoVarious NICs: Fix suspend/resume of multiple instances, by Jan Kiszka.
ths [Fri, 18 Jul 2008 18:02:34 +0000 (18:02 +0000)]
Various NICs: Fix suspend/resume of multiple instances, by Jan Kiszka.

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

16 years agoSmall cleanup of gen_intermediate_code(_internal), by Laurent Desnogues.
ths [Fri, 18 Jul 2008 18:01:29 +0000 (18:01 +0000)]
Small cleanup of gen_intermediate_code(_internal), by Laurent Desnogues.

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

16 years agoide: enable single word DMA, by Stefano Stabellini.
ths [Fri, 18 Jul 2008 16:49:42 +0000 (16:49 +0000)]
ide: enable single word DMA, by Stefano Stabellini.

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

16 years agoDo not call fcntl(, O_NONBLOCK) pointlessly, by Ian Jackson.
ths [Fri, 18 Jul 2008 16:35:27 +0000 (16:35 +0000)]
Do not call fcntl(, O_NONBLOCK) pointlessly, by Ian Jackson.

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

16 years agoDo not disturb old fd flags (eg O_APPEND) when setting nonblock, by
ths [Fri, 18 Jul 2008 16:34:43 +0000 (16:34 +0000)]
Do not disturb old fd flags (eg O_APPEND) when setting nonblock, by
Ian Jackson.

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

16 years agowrhpr hstick_cmpr is a store, not a load
blueswir1 [Fri, 18 Jul 2008 10:26:07 +0000 (10:26 +0000)]
wrhpr hstick_cmpr is a store, not a load

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

16 years agoOMAP2 EAC module.
balrog [Fri, 18 Jul 2008 07:50:20 +0000 (07:50 +0000)]
OMAP2 EAC module.

Not yet hooked up to any CODEC.

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

16 years agoRemove the NIC from vlan on usb destroy.
balrog [Thu, 17 Jul 2008 21:00:05 +0000 (21:00 +0000)]
Remove the NIC from vlan on usb destroy.

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

16 years agoAdd CDC-Ethernet usb NIC (original patch from Thomas Sailer).
balrog [Thu, 17 Jul 2008 20:47:13 +0000 (20:47 +0000)]
Add CDC-Ethernet usb NIC (original patch from Thomas Sailer).

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

16 years agoFix saving and loading of trap state
blueswir1 [Thu, 17 Jul 2008 19:17:19 +0000 (19:17 +0000)]
Fix saving and loading of trap state

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

16 years agoSupport for address masking
blueswir1 [Thu, 17 Jul 2008 12:53:05 +0000 (12:53 +0000)]
Support for address masking

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

16 years agoFix MMU registers, add more E-cache ASIs
blueswir1 [Wed, 16 Jul 2008 16:58:49 +0000 (16:58 +0000)]
Fix MMU registers, add more E-cache ASIs

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

16 years agoFix MMU miss traps
blueswir1 [Wed, 16 Jul 2008 16:55:52 +0000 (16:55 +0000)]
Fix MMU miss traps

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

16 years agoDisable OMAP2 combined-io-entries hack now that more regions are allowed.
balrog [Wed, 16 Jul 2008 13:06:53 +0000 (13:06 +0000)]
Disable OMAP2 combined-io-entries hack now that more regions are allowed.

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

16 years agoe1000: only use TSE if enabled for current packet (Anthony Xu).
balrog [Wed, 16 Jul 2008 12:39:45 +0000 (12:39 +0000)]
e1000: only use TSE if enabled for current packet (Anthony Xu).

Previously, all data descriptors used TSE context descriptor by default,
It's not correct, per spec, data descriptor uses TSE bit to indicate
whether use TSE,
Legacy data descripter never use TSE.
This patch fixed this bug.

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

16 years agoFix a bunch of type mismatch-related warnings (Jan Kiszka).
balrog [Wed, 16 Jul 2008 12:13:52 +0000 (12:13 +0000)]
Fix a bunch of type mismatch-related warnings (Jan Kiszka).

Fix a typo in my previous comming (spotted by Laurent Desnouges).

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

16 years agoFlushw can generate exceptions, so save PC & NPC
blueswir1 [Wed, 16 Jul 2008 11:51:15 +0000 (11:51 +0000)]
Flushw can generate exceptions, so save PC & NPC

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

16 years agoRemove unintended dereference, kills a warning (Jan Kiszka).
balrog [Wed, 16 Jul 2008 11:31:11 +0000 (11:31 +0000)]
Remove unintended dereference, kills a warning (Jan Kiszka).

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

16 years agoProperly byte-swap values in VMware SVGA (malc).
balrog [Wed, 16 Jul 2008 04:45:12 +0000 (04:45 +0000)]
Properly byte-swap values in VMware SVGA (malc).

Makes PPC host happy.  Also use the right type for a memory offset.

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

16 years agoMake Bochs VBE work with VMWare SVGA (malc).
balrog [Wed, 16 Jul 2008 04:38:32 +0000 (04:38 +0000)]
Make Bochs VBE work with VMWare SVGA (malc).

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

16 years agoDon't overwrite VMwareSVGA's memory region start addresses (malc).
balrog [Wed, 16 Jul 2008 04:36:48 +0000 (04:36 +0000)]
Don't overwrite VMwareSVGA's memory region start addresses (malc).

This was correct also in the Anthony Liguori's patch, but not in mine.

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