OSDN Git Service
malc [Sun, 28 Sep 2008 02:43:18 +0000 (02:43 +0000)]
Fix dots per clock value, cleanup and "optimize"
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5338
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Sun, 28 Sep 2008 00:42:15 +0000 (00:42 +0000)]
Fix more r5087 breakage
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5337
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Sun, 28 Sep 2008 00:42:12 +0000 (00:42 +0000)]
Optional "precise" VGA retrace support
Selected via: -vga <name>,retrace=precise
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5336
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Sun, 28 Sep 2008 00:42:05 +0000 (00:42 +0000)]
Change the way video graphics adapter is selected
Instead of having (current)three command line switches -std-vga,
-cirrusvga and -vmwarevga, provide one -vga switch which takes
an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmware
Update documentation accordingly.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5335
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 27 Sep 2008 20:58:43 +0000 (20:58 +0000)]
Make compatfd fallback more robust
Be more friendly when signalfd() fails, and also add configure checks to detect
that syscall(SYS_signalfd) actually works. malc pointed out that some installs
do not have /usr/include/linux headers that are in sync with the glibc headers
so why SYS_signalfd is defined, it's #defined to _NR_signalfd which is not
defined in the /usr/include/linux header.
While this is a distro bug, it doesn't hurt to do a more thorough job in
detection.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5334
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 27 Sep 2008 20:41:11 +0000 (20:41 +0000)]
Fix whitespace damage in compatfd
Spotted by malc.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5333
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 27 Sep 2008 19:43:18 +0000 (19:43 +0000)]
Add mmu tlb demap support (Igor Kovalenko)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5332
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sat, 27 Sep 2008 15:32:41 +0000 (15:32 +0000)]
Allocate code gen buffer properly on FreeBSD
Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5331
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Fri, 26 Sep 2008 21:03:37 +0000 (21:03 +0000)]
Fix definition of EMX bit in cpuid (Jens Axboe).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5330
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 26 Sep 2008 19:48:58 +0000 (19:48 +0000)]
Add a generic Niagara machine
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5329
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 26 Sep 2008 18:07:24 +0000 (18:07 +0000)]
Implement some UA2007 block ASIs
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5328
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 26 Sep 2008 18:05:23 +0000 (18:05 +0000)]
Implement UA2005 hypervisor traps
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5327
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Fri, 26 Sep 2008 18:02:48 +0000 (18:02 +0000)]
Move also DEBUG_PCALL (see r5085)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5326
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 26 Sep 2008 16:12:14 +0000 (16:12 +0000)]
Really fix the BSD build this time
struct aioinit isn't defined on BSD it appears so we need to guard everything
in an #if defined(__linux__).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5325
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 26 Sep 2008 16:04:40 +0000 (16:04 +0000)]
Fix build on non-Linux unices
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5324
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 26 Sep 2008 15:59:29 +0000 (15:59 +0000)]
Implement an fd pool to get real AIO with posix-aio
This patch implements a simple fd pool to allow many AIO requests with
posix-aio. The result is significantly improved performance (identical to that
reported for linux-aio) for both cache=on and cache=off.
The fundamental problem with posix-aio is that it limits itself to one thread
per-file descriptor. I don't know why this is, but this patch provides a simple
mechanism to work around this (duplicating the file descriptor).
This isn't a great solution, but it seems like a reasonable intermediate step
between posix-aio and a custom thread-pool to replace it.
Ryan Harper will be posting some performance analysis he did comparing posix-aio
with fd pooling against linux-aio. The size of the posix-aio thread pool and
the fd pool were largely determined by him based on this analysis.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5323
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 26 Sep 2008 15:52:17 +0000 (15:52 +0000)]
Fix build on FreeBSD
__GLIBC_PREREQ is defined in such a way that the ! cannot be used in front of
it on FreeBSD. Also, -lpthread is not implied by the build and we definitely
use it for compatfd support.
While at it, I added a default initialization for posix-aio that seems to
perform well in our testing.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5322
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 25 Sep 2008 20:24:19 +0000 (20:24 +0000)]
Revert r5274 which breaks savevm/loadvm
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5321
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 18:41:28 +0000 (18:41 +0000)]
Add a simple SSSE3 test.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5320
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 18:31:12 +0000 (18:31 +0000)]
Add Atom (x86) cpu identification.
Also add SSSE3 to Core2 features.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5319
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 18:16:18 +0000 (18:16 +0000)]
SYSENTER/SYSEXIT IA-32e implementation (Alexander Graf).
On Intel CPUs, sysenter and sysexit are valid in 64-bit mode. This patch
makes both 64-bit aware and enables them for Intel CPUs.
Add cpu save/load for 64-bit wide sysenter variables.
Signed-off-by: Alexander Graf <agraf@suse.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5318
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 18:11:30 +0000 (18:11 +0000)]
Core 2 Duo specification (Alexander Graf).
This patch adds a Core 2 Duo CPU to the available CPU types. The CPU
definition tries to resemble a real CPU as good as possible, whilst not
exposing features qemu does not implement.
The patch also includes some minor additions that Core 2 Duo CPUs have:
- New MSR: MSR_IA32_PERF_STATUS
- CPUID up to level 5 (cache info and mwait)
Signed-off-by: Alexander Graf <agraf@suse.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5317
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 18:08:05 +0000 (18:08 +0000)]
Clean up vendor identification (Alexander Graf).
Right now CPU vendor identification contains a lot of magic numbers. The
patch cleans them up to defines, so we can identify the CPU later on
without copying magic numbers.
Signed-off-by: Alexander Graf <agraf@suse.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5316
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 18:01:46 +0000 (18:01 +0000)]
Implement x86 SSSE3 instructions.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5315
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Thu, 25 Sep 2008 03:47:59 +0000 (03:47 +0000)]
Use qemu_free() on env instead of free.
Fixes a glibc Abort on qemu-x86_64 -cpu foo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5314
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 24 Sep 2008 16:52:15 +0000 (16:52 +0000)]
fix bug in block-qcow2.c:alloc_cluster_offset() (Shahar Frank)
During the debugging of the new revision of the zero dedup patch I
stepped on the following bug in block-qcow2.c:alloc_cluster_offset(). I
am not sure what the exact damage this bug can do, but it may be very
nasty because you way not notice it effects until you will do some
snapshot operations or similar actions that rely on the reference
counting.
The bug is easy to spot using the new "check" verb I added to the
qemu-img in one of the previous patches. I will resend the qemu-img
patch again with the new version of the zero dedup.
Signed-off-by: Shahar Frank <shaharf@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5313
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Wed, 24 Sep 2008 15:17:57 +0000 (15:17 +0000)]
Fix compiler warning when _VNC_DEBUG isn't defined.
Signed-off-by: Thiemo Seufer <ths@networkno.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5312
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Wed, 24 Sep 2008 14:33:07 +0000 (14:33 +0000)]
pflash: Add missing parenthesis in error message.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5311
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 24 Sep 2008 14:10:36 +0000 (14:10 +0000)]
64 bit truncation in code_gen_buffer_size calculation (Jes Sorensen)
Don't truncate code_gen_buffer_size calculation to int, as it will give
unpredicted results on 64 bit systems when booting large guests.
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5310
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Wed, 24 Sep 2008 03:32:33 +0000 (03:32 +0000)]
Reintroduce TEXT_CONSOLE_FIXED_SIZE and TEXT_CONSOLE for resizable vc's.
This partially reverts r4812 to fix an issue highlighted by Ryan Harper
with all vc's being fixed size which prevented backends with resizable
window (curses) from displaying okay.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5309
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Wed, 24 Sep 2008 02:21:24 +0000 (02:21 +0000)]
Don't use ds->dpy_copy directly from hw/ (Jan Niehusmann).
I left a TODO in the code because this still doesn't definitely
fix all issues.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5308
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 24 Sep 2008 01:13:40 +0000 (01:13 +0000)]
Add missing dependencies for qemu-doc.* (Stefan Weil)
This patch fixes some items in Makefile:
* remove duplicate entries from .PHONY
* add missing entries to .PHONY
* sort entries in .PHONY alphabetically
* add missing dependencies for qemu-doc.* targets
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5307
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Tue, 23 Sep 2008 22:31:10 +0000 (22:31 +0000)]
Fix tcg_gen_concat32_i64 on 64-bit hosts.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5306
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 23 Sep 2008 13:38:44 +0000 (13:38 +0000)]
scsi-generic: decode correctly SCSI tape commands (Laurent Vivier)
This patch allows to use a "real" SCSI tape with qemu using
"-drive /dev/sgX,if=scsi".
It allows to decode correctly transfer length when the type of the
device is a tape.
Some issues remain when the application reading the tape tries to go
beyond the end of the stream (but they must be corrected at the SCSI
controller level).
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@5305
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Tue, 23 Sep 2008 02:57:00 +0000 (02:57 +0000)]
Relax posix-aio restrictions on newer glibcs
RedHat 9 shipped glibc 2.3. Modern versions of glibc do not have the aio thread
exit issue that the comment references. This patch adjusts the check to only
limit aio_init on glibc versions < 2.4.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5304
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Mon, 22 Sep 2008 21:54:00 +0000 (21:54 +0000)]
Use concet TCG instructions in the MIPS target.
Signed-off-by: Thiemo Seufer <ths@networkno.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5303
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Mon, 22 Sep 2008 20:51:28 +0000 (20:51 +0000)]
CRIS: Improve ASID related TLB flushes.
* Speedup and correct ASID (PID) related TLB flushes.
* Use 64bit tcg load/stores to emulate movem.
* Remove unused helpers and other minor cleanups.
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5302
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 20:41:57 +0000 (20:41 +0000)]
Fix formatting of documentation (Stefan Weil)
Fix formatting for documentation of nbd command line options.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5301
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Mon, 22 Sep 2008 20:34:18 +0000 (20:34 +0000)]
ETRAX-FS: Correct ethernet PHY diagnostics register reads.
* Correct ethernet PHY diagnostics register reads.
* Add friendly names for the speed/duplex fields.
* Report duplex mismatches between MAC and PHY.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5300
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 22 Sep 2008 19:50:28 +0000 (19:50 +0000)]
Add software and timer interrupt support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5299
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 19:45:36 +0000 (19:45 +0000)]
fixing keymap for Windows keys (Stefano Stabellini)
Fixing Windows keys mapping (CS 15446 form xen-unstable).
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Junko Ichino <ichino.junko@jp.fujitsu.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5298
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 19:17:18 +0000 (19:17 +0000)]
Refactor AIO to allow multiple AIO implementations
This patch refactors the AIO layer to allow multiple AIO implementations. It's
only possible because of the recent signalfd() patch.
Right now, the AIO infrastructure is pretty specific to the block raw backend.
For other block devices to implement AIO, the qemu_aio_wait function must
support registration. This patch introduces a new function,
qemu_aio_set_fd_handler, which can be used to register a file descriptor to be
called back. qemu_aio_wait() now polls a set of file descriptors registered
with this function until one becomes readable or writable.
This patch should allow the implementation of alternative AIO backends (via a
thread pool or linux-aio) and AIO backends in non-traditional block devices
(like NBD).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5297
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 22 Sep 2008 16:52:28 +0000 (16:52 +0000)]
Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5296
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Mon, 22 Sep 2008 16:30:29 +0000 (16:30 +0000)]
Add comment to windows SCSI hack.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5295
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Mon, 22 Sep 2008 16:29:18 +0000 (16:29 +0000)]
Remove unnecessary call to qemu_aio_init (called from bdrv_init)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5294
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 16:04:16 +0000 (16:04 +0000)]
LSI SCSI: raise UDC on infinite loop (Marcelo Tosatti)
Raise UDC (Unexpected Disconnect) when a large enough number of
instructions has been executed by the SCRIPTS processor. This "solution"
is much simpler than temporarily interrupting execution.
This remedies the situation with Windows which downloads SCRIPTS code
that busy loops on guest main memory. Their drivers _do_ handle UDC
appropriately (at least XP and 2003).
It would be nicer to actually detect infinite loops, but until then,
this bandaid seems acceptable.
Since the situation seems to be rare enough, raise the number
of instructions to 10000 (previously 1000).
Three people other than myself had success with this patch.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5293
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 15:30:26 +0000 (15:30 +0000)]
scsi-generic: correct 6-bytes commands transfer length (Laurent Vivier)
According to SCSI documentation, for 6 bytes commands (READ(6),
WRITE(6)), if transfer length is 0 it specifies 256 blocks.
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@5292
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 15:27:54 +0000 (15:27 +0000)]
scsi-generic: correct usage of memset() (Laurent Vivier)
void *memset(void *s, int c, size_t n);
DESCRIPTION
The memset() function fills the first n bytes of the
memory area
pointed to by s with the constant byte c."
Reported by Dietmar Maurer.
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@5291
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 15:04:31 +0000 (15:04 +0000)]
Don't use sprintf() or strcpy()
They are unsafe. The current code is correct, but to be safer, we should pass
an explicit size.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5290
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Sep 2008 14:49:01 +0000 (14:49 +0000)]
Do not allow AIO to be inited multiple times
This prevents two signalfd() threads from being spawned. This problem was
originally spotted by Blue Swirl.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5289
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Mon, 22 Sep 2008 01:39:29 +0000 (01:39 +0000)]
Support out-of-the-tree building of tests
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5288
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Mon, 22 Sep 2008 01:08:08 +0000 (01:08 +0000)]
Avoid clobbering input register in qemu_ld64+bswap+useronly case
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5287
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Mon, 22 Sep 2008 00:52:42 +0000 (00:52 +0000)]
Fix ARM NEON vdup and vtbl bugs.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5286
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Sun, 21 Sep 2008 23:15:38 +0000 (23:15 +0000)]
Fix neon encoding comment.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5285
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Sun, 21 Sep 2008 21:21:26 +0000 (21:21 +0000)]
Fix Xcontext fill, by Here Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5284
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 21 Sep 2008 18:43:17 +0000 (18:43 +0000)]
Use the new concat_tl_i64 op for std and stda
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5283
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 21 Sep 2008 18:32:28 +0000 (18:32 +0000)]
Add concat32_i64 and concat_tl_i64 ops
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5282
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 21 Sep 2008 14:49:09 +0000 (14:49 +0000)]
Use the new concat_i32_i64 op for std and stda
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5281
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Sun, 21 Sep 2008 13:48:32 +0000 (13:48 +0000)]
Add concat_i32_i64 op.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5280
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sun, 21 Sep 2008 02:39:45 +0000 (02:39 +0000)]
Band-aid vfork() emulation (Kirill Shutemov).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5279
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sun, 21 Sep 2008 02:34:50 +0000 (02:34 +0000)]
Fix TEST_BSX operands in test-i386.c (Zeev Tarantov).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5278
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sun, 21 Sep 2008 02:31:19 +0000 (02:31 +0000)]
Enable same-arch consistency check on x86-64, print syscall name on error.
Also disable testing instructions unsupported by 64-bit binutils in
test-i386.c
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5277
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 20 Sep 2008 09:05:49 +0000 (09:05 +0000)]
Move signal handler prototype back to cpu.h
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5276
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 20 Sep 2008 08:07:15 +0000 (08:07 +0000)]
Suppress gcc 4.x -Wpointer-sign (included in -Wall) warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5275
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sat, 20 Sep 2008 08:04:11 +0000 (08:04 +0000)]
Add signed versions of save/load functions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5274
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 03:18:07 +0000 (03:18 +0000)]
Fix QADD / QSUB decoding on ARM (Torbjörn Andersson).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5273
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 03:14:14 +0000 (03:14 +0000)]
Fix pread() and pwrite() syscall on ARM EABI (Kirill Shutemov).
pread() and pwrite() have differences in arguments between ARM EABI and
OABI.
See arch/arm/kernel/entry-common.S in Linux kernel source for
additional information.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5272
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 03:03:09 +0000 (03:03 +0000)]
Add MTIOCTOP, MTIOCGET and MTIOCPOS ioctls (Kirill Shutemov).
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5271
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 02:29:38 +0000 (02:29 +0000)]
Fix building with 2.6.27 kernel headers (Kirill Shutemov).
<linux/dirent.h> unexported since 2.6.27
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5270
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 02:25:39 +0000 (02:25 +0000)]
Implement the futimesat() syscall (by Kirill Shutemov).
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5269
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 02:23:36 +0000 (02:23 +0000)]
Implement fstatat64() syscall (by Kirill Shutemov).
Move the transformation of struct stat64 into a separate function and
implement fstatat64() using it.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5268
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 02:12:08 +0000 (02:12 +0000)]
Swap only altered elements of the grouplist in getgroups() (Kirill Shutemov).
getgroups() returns the number of supplementary group IDs, so it's
unnessary to swap the entire array. It can dramatically speed up
the syscall: on recent Linux kernels NGROUPS_MAX=65536.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5267
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 02:08:13 +0000 (02:08 +0000)]
Fix getgroups() with zero size parameter (Kirill Shutemov).
According to man page getgroups(2):
If size is zero, list is not modified, but the total number of
supplementary group IDs for the process is returned.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5266
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 01:32:07 +0000 (01:32 +0000)]
Use a QEMUBH when an OMAP timer must expire immediately.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5265
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 01:15:04 +0000 (01:15 +0000)]
Add a comment about masking of CTI interrupt in 16550A UART.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5264
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Sat, 20 Sep 2008 01:10:32 +0000 (01:10 +0000)]
Allow attaching devices to OMAP UARTs.
Also avoid two signedness warnings in hw/omap2.c.
The API to attach new devices to serials is fine, bu the implementation
is a hack.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5263
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 19:41:28 +0000 (19:41 +0000)]
Update OpenBIOS images to SVN r237.
Changes:
r219: Fix #size-cells for HelenOS, add /openprom/version node
r220: Fix typo
r221: More realistic mmu_translate
r222: Fix device names to allow Net/OpenBSD to boot
r223: add set-callback for Aurora 2.0
r224: Switch keyboard controller to translated mode so it works as expected
r225: Add mmu release (claim added in r219)
r226: Set variable defaults before nvram_init also for Sparc64 (cf. r136)
r227: Use nvram boot-args and boot-device variables also for Sparc64 (cf. r137)
r228: Fix compilation on OpenBSD: avoid accidental system include file use
r229: Rename /packages/client-iface to /openprom/client-services
r230
From Igor V. Kovalenko:
This openbios-grubfs-ext2fs-block.patch fixes a problem where inode
pointer is truncated to 32bit integer and then sign-extended to 64bit
integer while passing second pointer argument to ext2_rdfsb.
r231: Fix pad alignment
r232: Remove package finding code that finds unrelated packages
r233: Fix virtual to physical address translation (Igor Kovalenko)
r234: Implement itlb/dtlb directed writes (Igor Kovalenko)
r235: Fix warnings that would be caused by ld flag --warn-common
r236: Enable ld flag --warn-common
r237: Use the firmware device introduced in Qemu SVN r5256
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5262
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 18:34:28 +0000 (18:34 +0000)]
Add Sparc32 display depth to firmware configuration
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5261
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 18:33:18 +0000 (18:33 +0000)]
Add common keys to firmware configuration
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5260
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 18:31:52 +0000 (18:31 +0000)]
Add UUID to firmware configuration info (Gleb Natapov)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5259
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 18:30:20 +0000 (18:30 +0000)]
Add "info uuid" command to monitor (Gleb Natapov)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5258
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 18:29:08 +0000 (18:29 +0000)]
Add -uuid command line option (Gleb Natapov)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5257
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Thu, 18 Sep 2008 18:27:29 +0000 (18:27 +0000)]
Key/value based qemu<->guest firmware communication mechanism (Gleb Natapov)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5256
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 15:31:27 +0000 (15:31 +0000)]
target-alpha: switch most load/store ops to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5255
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 13:45:14 +0000 (13:45 +0000)]
target-alpha: convert remaining arith3 functions to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5254
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Thu, 18 Sep 2008 11:59:03 +0000 (11:59 +0000)]
Use TCG registers for most CPU register accesses.
Signed-off-by: Thiemo Seufer <ths@networkno.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5253
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Thu, 18 Sep 2008 11:57:27 +0000 (11:57 +0000)]
Move the active FPU registers into env again, and use more TCG registers
to access them.
Signed-off-by: Thiemo Seufer <ths@networkno.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5252
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 10:13:19 +0000 (10:13 +0000)]
target-alpha: fix one more literal sign issue
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5251
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 10:11:26 +0000 (10:11 +0000)]
target-alpha: instruction decoding simplification
Use a litteral value of 0 when rb31 is used. This reduces the tests
in the instruction decoding. Also remove almost unused corner cases.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5250
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 09:24:25 +0000 (09:24 +0000)]
target-alpha: convert cmp* instructions to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5249
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 09:17:13 +0000 (09:17 +0000)]
alpha: fix a missing literal sign issue
Reported by Tristan Gingold
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5248
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Sep 2008 00:02:17 +0000 (00:02 +0000)]
target-alpha: switch a few helpers to TCG
Switch a few helpers to TCG and implement RC and RS instructions
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5247
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 17 Sep 2008 22:04:52 +0000 (22:04 +0000)]
target-alpha: convert byte manipulation instructions to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5246
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 17 Sep 2008 22:04:44 +0000 (22:04 +0000)]
alpha: convert cmov and bcond to TCG
Patch mostly by Tristan Gingold
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5245
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 17 Sep 2008 22:04:37 +0000 (22:04 +0000)]
alpha: improve testsuite
misc tiny patches:
* add a 'check' target to the Makefile
* split code in crt.s to create the _exit syscall; also use the value of
main() as exit status
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@5244
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 17 Sep 2008 22:04:29 +0000 (22:04 +0000)]
[PATCH] alpha: fix linux syscall convention
According to linux kernel sources, register a3 is set in case of failure
(and cleared in case of success) while register v0 contains the result
(or -errno in case of error).
The convention was not followed which results in weird behaviour.
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@5243
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Wed, 17 Sep 2008 22:04:21 +0000 (22:04 +0000)]
[PATCH] usb-serial: Fix data corruption with usb serial emulation
* Remove the unused send_buf variable and its constant.
* Fix a math error
The variables recv_ptr and recv_used are not large enough to hold
the constant 384, which causes data corruption when the pointer is
reset with: s->recv_ptr = (s->recv_ptr + len) % RECV_BUF;
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5242
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 17 Sep 2008 19:05:19 +0000 (19:05 +0000)]
Enable ld flag --warn-common
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5241
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 17 Sep 2008 19:04:14 +0000 (19:04 +0000)]
Fix warnings that would be caused by ld flag --warn-common
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5240
c046a42c-6fe2-441c-8c8c-
71466251a162
balrog [Wed, 17 Sep 2008 00:21:05 +0000 (00:21 +0000)]
16550A UART: RHR irq enable bit also masks the Rx timeout irq.
The "Rx timeout" (aka. Character Timeout Indication) has no separate mask
bit in the IER register and according to the specs reading RHR is the only
way to reset the irq. However on the hardware (tested on OMAP2 UART which
is an extended 16550A) the RHR_IT bit in IER disables the irc, too. Linux
bluetooth serial dongle driver for N800 depends on this behavior.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5239
c046a42c-6fe2-441c-8c8c-
71466251a162