OSDN Git Service
aurel32 [Sun, 4 Jan 2009 22:10:28 +0000 (22:10 +0000)]
Add GEN_VXFORM_SIMM macro for subsequent instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6172
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:10:09 +0000 (22:10 +0000)]
Add vsldoi instruction.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6171
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:09:52 +0000 (22:09 +0000)]
Add vrl{b,h,w} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6170
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:09:42 +0000 (22:09 +0000)]
Add lvs{l,r} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6169
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:09:31 +0000 (22:09 +0000)]
Add v{add,sub}cuw instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6168
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:09:19 +0000 (22:09 +0000)]
Add vs{l,r}o instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6167
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:09:08 +0000 (22:09 +0000)]
Add vsl{b,h,w} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6166
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:08:58 +0000 (22:08 +0000)]
Add vsr{,a}{b,h,w} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6165
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:08:48 +0000 (22:08 +0000)]
Add vmul{e,o}{s,u}{b,h} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6164
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:08:38 +0000 (22:08 +0000)]
Add vmrg{l,h}{b,h,w} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6163
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sun, 4 Jan 2009 22:05:52 +0000 (22:05 +0000)]
Update FSF address in GPL/LGPL boilerplate
The attached patch updates the FSF address in the GPL/LGPL boilerplate
in most GPL/LGPLed files, and also in COPYING.LIB.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6162
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Sun, 4 Jan 2009 15:45:17 +0000 (15:45 +0000)]
CRIS: Dont flush kernel protected pages when modifying $pid.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6161
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Sun, 4 Jan 2009 15:42:04 +0000 (15:42 +0000)]
CRIS: Remove unused pfn member from mmu translation results.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6160
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 4 Jan 2009 10:56:46 +0000 (10:56 +0000)]
Fix VGA screen dump
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6159
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 14:04:11 +0000 (14:04 +0000)]
Add vscr access macros.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6158
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:31:58 +0000 (13:31 +0000)]
Add v{min, max}{s, u}{b, h, w} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6157
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:31:49 +0000 (13:31 +0000)]
Add vavg{s,u}{b,h,w} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6156
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:31:40 +0000 (13:31 +0000)]
Add v{add,sub}u{b,h,w}m instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6155
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:31:30 +0000 (13:31 +0000)]
Add GEN_VXFORM macro for subsequent instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6154
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:31:19 +0000 (13:31 +0000)]
Add helper macros for later patches.
Remove N_ELEMS, VECTOR_FOR, and VECTOR_FOR_I macros. Retain the
VECTOR_FOR_INORDER_I macros as the clearest way of expressing the intent
of iterating over elements in their stored target-endian order.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6153
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:31:10 +0000 (13:31 +0000)]
Fix TCG error in gen_avr_ptr.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6152
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 13:14:52 +0000 (13:14 +0000)]
Fix qemu endless loop when raising a SIGSEGV/SIGBUS signal with gdbstub in user emulation
When a SIGSEGV signal is raised in user mode emulation the current
test to know whether the signal is sent by the kernel is wrong :
info->si_code == SI_KERNEL
according to /usr/include/bits/siginfo.h it should be
info->si_code > 0
Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6151
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 12:36:05 +0000 (12:36 +0000)]
tcg: remove tcg_global_reg2_new_hack()
This patch removes the unused tcg_global_reg2_new_hack() function, which
was added in r4438 to work around a register shortage problem regarding
dyngen. The only ever user of this function was removed in r4577.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6150
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 12:35:57 +0000 (12:35 +0000)]
Fix and rearrange 'tarbin' Makefile rule
This patch fixes the 'tarbin' Makefile rule (which was broken due to
a missing '\' for line-continuation), and also rearranges that rule to
match the ordering that is used in the configure script, so that the
list can be checked more easily, to avoid conflicts, etc.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6149
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 12:35:47 +0000 (12:35 +0000)]
TCG: Fix documentation of qemu_ld/st ops
The functions defined in tcg/tcg-op.h have no _i32 or _i64 suffix,
qemu_ld64 and qemu_st64 were missing from the list, and there are
no 'plain' qemu_ld/qemu_st ops.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6148
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 3 Jan 2009 12:35:38 +0000 (12:35 +0000)]
target-ppc: fix TGC type mismatch introduced by r6146
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6147
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 1 Jan 2009 14:09:05 +0000 (14:09 +0000)]
tcg_temp_local_new should take no parameter
This patch removes useless type information in some calls to
tcg_temp_local_new. It also removes the parameter from the
macro declaration; if a target has to use a specific non-default
size then it should use tcg_temp_local_new_{i32,i64}.
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6146
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 1 Jan 2009 13:03:36 +0000 (13:03 +0000)]
target-mips: DMA support for RC4030 chipset
Attached patch implements DMA support to RC4030 chipset and simplifies
jazz IO part (at 0xf0000000), where registers contain 16 bit values.
Config register has not a clear meaning (only one value is always valid,
and sometimes another one), so use a magic value instead.
The patch also wires DMA transfers for the SCSI adapter in the Jazz
emulation (Mips Magnum 4000 and Acer Pica 61).
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6145
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 31 Dec 2008 16:55:26 +0000 (16:55 +0000)]
Add Sparc define checks
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6144
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 30 Dec 2008 19:01:44 +0000 (19:01 +0000)]
VM load/save support for PPC CPU
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6143
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 30 Dec 2008 19:01:19 +0000 (19:01 +0000)]
VM load/save support for PPC devices
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6142
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 29 Dec 2008 17:14:15 +0000 (17:14 +0000)]
Parse --cc and --cross-prefix earlier and use CC to determine cpu and host
We have been relying on uname to determine the host cpu architecture and
operating system. This is totally broken for cross compilation. It was
workable in the past because you can manually override both settings but after
the host USB passthrough refactoring, cross host builds were broken.
This moves the parsing of --cc and --cross-prefix to before the probes for cpu
and host. Complation testing is used to determine the host and CPU types. I've
only added checks for i386, x86_64, Linux, and Windows since these are the only
platforms I have access to for testing. Everything else falls back to uname.
It should be relatively easy to add the right checks for other platforms and
eliminate uname altogether.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6141
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Mon, 29 Dec 2008 14:39:57 +0000 (14:39 +0000)]
CRIS: Remove CRIS specific do_unassigned_access.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6140
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 29 Dec 2008 09:47:11 +0000 (09:47 +0000)]
target-ppc: improve correctness of the fsel instruction
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6139
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Mon, 29 Dec 2008 09:46:58 +0000 (09:46 +0000)]
target-ppc: fix stsw/stswi instructions
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6138
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 28 Dec 2008 21:05:44 +0000 (21:05 +0000)]
Fix warning introduced by r6136
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6137
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 28 Dec 2008 18:27:10 +0000 (18:27 +0000)]
Register reset handlers
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6136
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 28 Dec 2008 15:45:20 +0000 (15:45 +0000)]
Suppress a -Werror=format-security warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6135
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 28 Dec 2008 13:14:48 +0000 (13:14 +0000)]
Fix -Werror=format-security warning (Frederik Himpe/Lennert Buytenhek)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6134
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 26 Dec 2008 23:05:23 +0000 (23:05 +0000)]
target-ppc: workaround OpenBIOS limitation
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6133
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Fri, 26 Dec 2008 23:05:15 +0000 (23:05 +0000)]
target-ppc: fix PowerMAC NVRAM emulation
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6132
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 24 Dec 2008 20:30:01 +0000 (20:30 +0000)]
Fix kernel loading
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6131
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 24 Dec 2008 20:29:16 +0000 (20:29 +0000)]
Use the firmware configuration device
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6130
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 24 Dec 2008 20:26:14 +0000 (20:26 +0000)]
Add support for -prom-env command line options
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6129
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 24 Dec 2008 20:23:51 +0000 (20:23 +0000)]
Use OpenBIOS for g3bw machine
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6128
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 24 Dec 2008 20:21:18 +0000 (20:21 +0000)]
Sun4m use 0 for nonexistent devices (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6127
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Wed, 24 Dec 2008 09:38:16 +0000 (09:38 +0000)]
Improve PPC device debugging
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6126
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 23 Dec 2008 15:30:50 +0000 (15:30 +0000)]
Add SuperSPARC MMU breakpoint registers (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6125
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 23 Dec 2008 15:08:13 +0000 (15:08 +0000)]
Implement hw/eccmemctl.c version differences (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6124
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 23 Dec 2008 15:06:35 +0000 (15:06 +0000)]
Better SuperSPARC emulation (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6123
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Tue, 23 Dec 2008 08:47:26 +0000 (08:47 +0000)]
Implement tick interrupt disable bits
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6122
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Mon, 22 Dec 2008 21:06:23 +0000 (21:06 +0000)]
Properly handle the case of SetPixelEncodings with a length of zero.
This commit addresses CORE-2008-1210/CVE-2008-2382.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6121
c046a42c-6fe2-441c-8c8c-
71466251a162
malc [Mon, 22 Dec 2008 20:33:55 +0000 (20:33 +0000)]
Use the ARRAY_SIZE() macro where appropriate.
Change from v1:
Avoid changing the existing coding style in certain files.
Signed-off-by: Stuart Brady <stuart.brady@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6120
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 21 Dec 2008 16:00:20 +0000 (16:00 +0000)]
hw/slavio_misc.c remove address from debug trace (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6119
c046a42c-6fe2-441c-8c8c-
71466251a162
blueswir1 [Sun, 21 Dec 2008 10:46:23 +0000 (10:46 +0000)]
add Arbiter Enable Register support to sparc iommu (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6118
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sun, 21 Dec 2008 01:37:01 +0000 (01:37 +0000)]
Update to latest Bochs BIOS
A number of our patches have been merged so we can now remove them from our
queue.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6117
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Sun, 21 Dec 2008 01:30:22 +0000 (01:30 +0000)]
Remove obsolete VGABIOS patch.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6116
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 20 Dec 2008 23:41:32 +0000 (23:41 +0000)]
softfloat-native: fix type of float_rounding_mode
fegetround() and fesetround() are using an int type. Change the type of
float_rounding_mode and floatx80_rounding_precision in the float_status
structure for consistency.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6115
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 20 Dec 2008 23:40:35 +0000 (23:40 +0000)]
target-ppc: modify hw/ppc_oldword.c to use qemu_ram_alloc()
This patch uses qemu_ram_alloc() to allocate RAM, VGA RAM and VGA BIOS.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Laurent Vivier <Laurent@lvivier.info>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6114
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Sat, 20 Dec 2008 23:39:46 +0000 (23:39 +0000)]
target-ppc: default to a G3 cpu when emulating a G3 PowerMac
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6113
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Sat, 20 Dec 2008 19:44:31 +0000 (19:44 +0000)]
A first attempt on supporting snapshots for the MIPS target.
Signed-off-by: Thiemo Seufer <ths@networkno.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6112
c046a42c-6fe2-441c-8c8c-
71466251a162
ths [Sat, 20 Dec 2008 19:42:14 +0000 (19:42 +0000)]
Fix remaining compiler warnings for mips targets.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6111
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 19 Dec 2008 18:59:10 +0000 (18:59 +0000)]
Add patch to allow Bochs patch queue to be built from another directory.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6110
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 19 Dec 2008 16:22:03 +0000 (16:22 +0000)]
Add BIOS build instructions (Andre Przywara)
aliguori: did a little indenting and motion for aesthics.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6109
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Fri, 19 Dec 2008 16:17:10 +0000 (16:17 +0000)]
Make sure ACPI structures are byte-aligned
Apparently, guests are very tolerant of corrupt ACPI tables because our
tables have been badly corrupted for some time now. A version of
Knoppix using a 2.6.11 kernel refused to boot and it turned out it was
due to the interrupt override table introduced by the recent HPET
commit.
This patch updates the BIOS and introduces a patch to pack the ACPI
tables. If you have a guest that used to work and is broken by the this
commit, let me know. We have some weird hacks in the tables that I
suspect are work arounds for this bug.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6108
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 14:33:59 +0000 (14:33 +0000)]
Implement flush-to-zero mode (denormal results are replaced with zero).
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6107
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 13:53:37 +0000 (13:53 +0000)]
Implement default-NaN mode.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6106
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 13:37:53 +0000 (13:37 +0000)]
Implement ARMv7 cp15 cache ID registers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6105
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 13:18:36 +0000 (13:18 +0000)]
Implement (very) basic Thumb2-EE support. This doesn't actually implement
EE state, just the associated system coprocessor registers. It is sufficient
to keep OS setup and context switching code happy.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6104
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 13:02:08 +0000 (13:02 +0000)]
Fix VFP fixed point conversion routines.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6103
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 12:59:28 +0000 (12:59 +0000)]
Correctly normalize values and handle zero inputs to scalbn functions.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6102
c046a42c-6fe2-441c-8c8c-
71466251a162
edgar_igl [Fri, 19 Dec 2008 12:57:18 +0000 (12:57 +0000)]
ETRAX: Correct the frequency of the free-running counter.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6101
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 12:49:13 +0000 (12:49 +0000)]
When -icount is used and a TB is recompiled due to an IO access
shortly after an IRQ has been raised, env->exception_index will still be set
to EXCP_IRQ when cpu_io_recompile calls cpu_resume_from_signal.
This causes qemu to repeat the IRQ trap, with disasterous consequences.
I suspect this "works" most of the time because linux tends to drop back to
svc mode before doing actual IRQ processing, and be fairly
tolerant of spurious IRQ traps.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6100
c046a42c-6fe2-441c-8c8c-
71466251a162
pbrook [Fri, 19 Dec 2008 12:39:00 +0000 (12:39 +0000)]
Implement ARMv7 MMU access permissions.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6099
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:51:31 +0000 (22:51 +0000)]
target-ppc: add gen_avr_ptr function.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6098
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:44:21 +0000 (22:44 +0000)]
target-ppc: use float_flag_divbyzero instead of checking the operands
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6097
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:44:13 +0000 (22:44 +0000)]
User-mode GDB stub improvements - handle signals
Handle signals in the user-mode GDB stub. Report them to GDB, and
allow it to change or cancel them. Also correct the protocol numbering;
it happens to match Linux numbering for SIGINT and SIGTRAP, but that's
just good fortune.
Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6096
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:44:04 +0000 (22:44 +0000)]
User-mode GDB stub improvements - handle fork
Close gdbserver in child processes, so that only one stub tries to talk
to GDB at a time. Updated from an earlier patch by Paul Brook.
Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6095
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:56 +0000 (22:43 +0000)]
new monitor func status
Attached is a small patch that adds the new info subcommand - status.
The status indicates if the VM is running or paused this info makes
life for (stateless) Qemu/KVM frontends easier.
(Philipp Wehrheim)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6094
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:48 +0000 (22:43 +0000)]
consolidate definition for tap script and smb support
Since the introduction of net.c in r5581 there had been 2 places where
the location of the TAP helper scripts and SMB daemon are defined.
The following patch move those definitions to net.h so they are accessible
for net.c and vl.c but defined only once
(Carlo Marcelo Arenas Belon)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6093
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:40 +0000 (22:43 +0000)]
PCI: Mask writes to RO bits in the command reg of PCI config space
The Command register in the PCI config space has some read-only bits.
Any writes to those bits should be masked out.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6092
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:33 +0000 (22:43 +0000)]
PCI: Mask writes to RO bits in the status reg of PCI config space
The Status register in the PCI config space has some read-only bits.
Any writes to those bits should be masked out.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6091
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:25 +0000 (22:43 +0000)]
target-ppc: fix type of spe_acc.
ACC is a 64-bit register and needs to be specified as such regardless of
the target.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6090
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:16 +0000 (22:43 +0000)]
fp: fix float32_is_infinity()
Thanks to Laurent Desnogues for the hint.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6089
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:43:07 +0000 (22:43 +0000)]
target-ppc: fix a typo
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6088
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:42:58 +0000 (22:42 +0000)]
target-ppc: add Altivec logical operations
Use opc2/opc3 instead of one big xo field. Do this consistency with the
rest of translate.c
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6087
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:42:51 +0000 (22:42 +0000)]
KVM: Silence unused s warning
Move s under #ifdef to avoid compiler warning.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6086
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:42:43 +0000 (22:42 +0000)]
Remove trailing spaces introduced by commit 6081
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6085
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:42:34 +0000 (22:42 +0000)]
Fix warnings introduced by commit 6081
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6084
c046a42c-6fe2-441c-8c8c-
71466251a162
aurel32 [Thu, 18 Dec 2008 22:42:23 +0000 (22:42 +0000)]
target-ppc: fix fres, fsqrte and remove useless code
- fres and fsqrte should not assign a float32 number to a float64 value.
- fre, fres and fsqrte are checking for cases already taken into account
by softfloat and softfloat native. Remove those useless tests.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6083
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Thu, 18 Dec 2008 01:56:22 +0000 (01:56 +0000)]
Fix the build for non-x86/ppc targets
Since pci.c creates network devices, anything that links against pci.c
(everything) has to link against all network devices. Since virtio-net
also requires virtio, we might as well link every target against all of
the virtio devices.
This suggests that the pci.c network device creation function needs some
refactoring.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6082
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 23:28:44 +0000 (23:28 +0000)]
Add HPET emulation to qemu (Beth Kon)
This patch adds HPET emulation. It can be disabled with -disable-hpet. An hpet
provides a more finely granular clocksource than otherwise available on PC.
This means that latency-dependent applications (e.g. multimedia) will generally
be smoother when using the HPET.
Signed-off-by: Beth Kon <eak@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6081
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 22:32:52 +0000 (22:32 +0000)]
Handle suspend in qemu (Gleb Natapov)
Reset a PC and tell BIOS that resume from ram is required on the next boot.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6080
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 22:29:37 +0000 (22:29 +0000)]
Update VGA BIOS
Now built from the kernel.org git tree.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6079
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 22:15:34 +0000 (22:15 +0000)]
Use git mirror instead of repo.or.cz. The kernel.org git
mirror is updated more regularly and reliably.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6078
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 21:35:49 +0000 (21:35 +0000)]
Update to the latest Bochs BIOS
Update the PC BIOS to the latest version, split out the patches into
patch series, and update the README to point to the new location of the
Bochs BIOS source tree.
Also update the gitignore to allow the patch queue directory to be used.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6077
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 21:32:37 +0000 (21:32 +0000)]
This should have been added in Gerd's previous commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6076
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 19:45:40 +0000 (19:45 +0000)]
Use saner types for virtio-net
This was spotted by malc
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6075
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 19:17:17 +0000 (19:17 +0000)]
Add support for tap vectored send
This is adapted from kvm-userspace. It allows readv to be used with tap when
the host supports it.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6074
c046a42c-6fe2-441c-8c8c-
71466251a162
aliguori [Wed, 17 Dec 2008 19:13:11 +0000 (19:13 +0000)]
virtio-net support
This adds virtio-net support. This is based on the virtio-net driver
that exists in kvm-userspace. This also adds a new qemu_sendv_packet
which virtio-net requires.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6073
c046a42c-6fe2-441c-8c8c-
71466251a162