aliguori [Mon, 11 Aug 2008 14:17:04 +0000 (14:17 +0000)]
Upgrade emulated UART to 16550A (Stefano Stabellini)
This patch upgrades the emulated UART to 16550A, the code comes from
xen-unstable. The main improvement was introduced with the following patch and
subsequent email thread:
http://lists.xensource.com/archives/html/xen-devel/2007-12/msg00129.html
The changes compared to previous version are:
- change clock_gettime to qemu_get_clock
- no token bucket anymore;
- fixed a small bug handling IRQs; this was the problem that prevented
kgdb to work over the serial (thanks to Jason Wessel for the help
spotting and reproducing this bug).
- many many style fixes;
- savevm version number increased;
- not including termios.h and sys/ioctl.h anymore, declaring static
constants in qemu-char.h instead;
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4993
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 6 Aug 2008 19:50:16 +0000 (19:50 +0000)]
Fix faligndata (Vince Weaver)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4992
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 6 Aug 2008 18:16:08 +0000 (18:16 +0000)]
Fix I/D MMU tag reads
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4991
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 6 Aug 2008 18:13:54 +0000 (18:13 +0000)]
Fix Sparc64 shifts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4990
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 6 Aug 2008 16:55:50 +0000 (16:55 +0000)]
Fix gnutls autodetection when using a cross-compiler.
It is not enough to check for pkg-config gnutls. You may be using a
cross-compiler and have gnutls available on the host but not for the target.
This patch changes the detection to try and build an application using gnutls
and whatever compiler is available.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4989
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 6 Aug 2008 15:28:20 +0000 (15:28 +0000)]
Fix offset handling for ASI loads and stores (Vince Weaver)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4988
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 6 Aug 2008 14:11:44 +0000 (14:11 +0000)]
only check RCTL_EN in e1000_can_receive()
e1000_receive() has code to raise a receive overflow interrupt when the receive
buffer head and tail match. However, with the present implementation of
e1000_can_receive(), this code is unreachable -- and etherboot breaks as a
result.
Signed-off-by: Charles Duffy <charles_duffy@messageone.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4987
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Wed, 6 Aug 2008 08:37:17 +0000 (08:37 +0000)]
Add qemu_realloc(), by Gerd Hoffmann.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4986
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Sun, 3 Aug 2008 19:04:11 +0000 (19:04 +0000)]
Account for MacOS X ABI reserved space in linkage area (Andreas Faerber)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4985
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Sun, 3 Aug 2008 19:04:07 +0000 (19:04 +0000)]
Preliminary MacOS X on PPC32 support
Big thanks to BlueSwirl for Sparc failure analysis.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4984
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 2 Aug 2008 11:18:40 +0000 (11:18 +0000)]
Update OpenBIOS images to SVN revision 218. Changes:
r186: Revert broken r161, fix identification string printing (Igor Kovalenko)
r187: Fix NetBSD reset problem
r188: Add a TODO for Sparc
r189: Fix some Sparc32 compile warnings
r190: Fix some Sparc64 compile warnings
r191: Add prototypes for [v]snprintf
r192: Add a common header file for libgcc functions
r193: Implement obmem for NetBSD loader
r194: Add Make dependencies for some files, unify Sparc32/64 build.xml files
r195: Remove debug messages
r196: Add a.out support for SILO
r198: Add a CPU node
r199: Add (bogus) memory nodes
r200: Add idprom node
r201: Make serial console usable
r202: Add MMU node and ops
r203: Add trap table setting function to client interface
r204: Fix MMU translation
r205: Handle 32 bit windows, remove now unused files
r206: Support for simple boot device selection
r207: Fix TLB entry generation
r208: Fix printing of exception messages
r209: Set up tick_cmpr, update assembly flags
r210: Add a clock-frequency node
r211:
Fix available and total memory
Implement a static list of mmu translations
Map more pages
Add a fake unmap method
r212: Fix builtin.c dependencies
r213: Add FCode boot loader for Solaris etc.
r214: Add correct reset vectors
r215: Add T1 and T2 CPUs
r216: Fix wrong translations
r217: Add bootargs property for kernel command line
r218:
Finally fix the very obscure problem which prevented normal and especially
FCode boot: too small heap (used for Forth memory)!
Remove forced arch_init and boot hacks
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4983
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 2 Aug 2008 01:57:02 +0000 (01:57 +0000)]
Fix compilation of nbd on Solaris (Andreas Faerber)
Compilation of QEMU is currently broken on Solaris due to nbd's use of _IO and
due to network libraries not being linked into qemu-img.
The attached patch adds the appropriate libraries (copied from Makefile.target)
and includes an additional Sun-specific header for _IO.
With these fixes it compiles okay, on OpenSolaris snv_93 (amd64).
Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4982
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Fri, 1 Aug 2008 17:14:35 +0000 (17:14 +0000)]
Delete unused variable.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4981
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 1 Aug 2008 15:13:58 +0000 (15:13 +0000)]
Handle wrapped registers correctly when saving
Fix typo
Save and load interrupt_index and pil_in
Original patch by Luis Pureza
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4980
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 1 Aug 2008 15:12:34 +0000 (15:12 +0000)]
Set focus to monitor to ask password if line is multiplexed (Laurent Vivier)
This patch allows to display the "Password:" prompt if we use encrypted
disk with "-nographic" option.
It also modifies management of "-nographic" to not override user's
choices for "-serial", "-parallel" and "-monitor".
When qemu has to ask a password with "-nographic" with a multiplexed
serial interface, it forces the focus to the monitor and restore
original focus after.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4979
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 1 Aug 2008 15:04:00 +0000 (15:04 +0000)]
Revert 4977. Laurent asked for this not to be applied but I mistakenly applied
it.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4978
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 1 Aug 2008 15:00:04 +0000 (15:00 +0000)]
qemu-img: set encrypted disk image password (Laurent Vivier)
This patch modify qemu-img to ask and set a password when an encrypted
disk image is created.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Anthony Liguori <anthony@codemonkey.ws>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4977
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 1 Aug 2008 14:51:02 +0000 (14:51 +0000)]
Ask password when encrypted disk image is used (Laurent Vivier)
This patch repairs the management of encrypted disk images and allows to
enter the password.
Changelog:
v2:
- move read_password() before do_loadvm()
- really start monitor if output is stdio.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4976
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 29 Jul 2008 20:08:37 +0000 (20:08 +0000)]
Move audio/sys-queue.h => sys-queue.h
This makes it easier to reuse in other parts of QEMU.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4975
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Tue, 29 Jul 2008 20:08:17 +0000 (20:08 +0000)]
On ppc32 make tb_set_jmp_target1 behave like it does on a ppc64
Avoids nasty warnings about flush_icache_range from gcc4 and inability
to compile [cpu-]exec.c with gcc3 and -O, also the function is much
too large to be candidate for inlining anyway.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4974
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 29 Jul 2008 20:00:31 +0000 (20:00 +0000)]
Update sys-queue.h (Gerd Hoffmann)
- got recent copy from netbsd.
- deleted debug code.
- deleted some list implementations, left in only the ones which
qemu already has.
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@4973
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 29 Jul 2008 19:41:19 +0000 (19:41 +0000)]
e1000: use common checksumming code
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@4972
c046a42c-6fe2-441c-8c8c-
71466251a162
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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