sdk/emulator/qemu.git
16 years agoPPC TCG Fixes
malc [Sat, 7 Jun 2008 20:31:33 +0000 (20:31 +0000)]
PPC TCG Fixes

* Fix typo in aliased div2
* "Optimize" aliased div2/divu2
* Fix two remaining branch retranslation problems
  (Kudos to Andrzej Zaborowski)
* Rework goto_tb and set_jmp_target1
* Use correct size when flushing icache
* Use correct register selection for ORI
  (Was harmless since in both cases srcreg was equal to dstreg)

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

16 years agoAllow NWINDOWS selection (CPU feature with model specific defaults)
blueswir1 [Sat, 7 Jun 2008 08:07:37 +0000 (08:07 +0000)]
Allow NWINDOWS selection (CPU feature with model specific defaults)

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

16 years agoFix Sparc32plus GDBstub support
blueswir1 [Sat, 7 Jun 2008 08:03:05 +0000 (08:03 +0000)]
Fix Sparc32plus GDBstub support

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

16 years agoAllocate a register pair instead of a single register.
ths [Sat, 7 Jun 2008 04:31:49 +0000 (04:31 +0000)]
Allocate a register pair instead of a single register.

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

16 years agoundocumented 0x82 opcode is invalid in 64 bit code
bellard [Fri, 6 Jun 2008 12:54:30 +0000 (12:54 +0000)]
undocumented 0x82 opcode is invalid in 64 bit code

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

16 years agoFix i386 segment descriptor types on reset (Avi Kivity)
bellard [Fri, 6 Jun 2008 12:08:46 +0000 (12:08 +0000)]
Fix i386 segment descriptor types on reset (Avi Kivity)

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

16 years agoCRIS: Add the P flag to the tb dependent flags.
edgar_igl [Fri, 6 Jun 2008 11:24:33 +0000 (11:24 +0000)]
CRIS: Add the P flag to the tb dependent flags.

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

16 years agoCRIS translator updates
edgar_igl [Fri, 6 Jun 2008 11:23:28 +0000 (11:23 +0000)]
CRIS translator updates
* Improve translation of the X flag (still some corner cases missing).
* First shot att P flag support and conditional stores.
* Improve the jump logic.

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

16 years agoCorrect P flag assertion in rfe.
edgar_igl [Fri, 6 Jun 2008 11:17:17 +0000 (11:17 +0000)]
Correct P flag assertion in rfe.

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

16 years agoMake the tests run when built with experimental gcc-cris 4.4. Prettify the logs.
edgar_igl [Fri, 6 Jun 2008 11:07:50 +0000 (11:07 +0000)]
Make the tests run when built with experimental gcc-cris 4.4. Prettify the logs.

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

16 years agoAdd a testcase for broken x arithmetic sequences.
edgar_igl [Fri, 6 Jun 2008 11:05:18 +0000 (11:05 +0000)]
Add a testcase for broken x arithmetic sequences.

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

16 years agoIncrease the odds for the movei test to pass in system simulation.
edgar_igl [Fri, 6 Jun 2008 11:00:58 +0000 (11:00 +0000)]
Increase the odds for the movei test to pass in system simulation.

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

16 years agoAvoid warnings.
edgar_igl [Fri, 6 Jun 2008 11:00:04 +0000 (11:00 +0000)]
Avoid warnings.

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

16 years agoETRAX machine updates.
edgar_igl [Fri, 6 Jun 2008 10:58:48 +0000 (10:58 +0000)]
ETRAX machine updates.
* Move DMA_run into the dma controller to allow for multiple ETRAX/CRIS machines.
* Support both ELF and kimage kernel images.
* Correct emulation of the DMA RW_DATA register.

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

16 years agoCompile with debug.
edgar_igl [Fri, 6 Jun 2008 10:55:02 +0000 (10:55 +0000)]
Compile with debug.

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

16 years agoFix compiler warning.
ths [Fri, 6 Jun 2008 01:03:06 +0000 (01:03 +0000)]
Fix compiler warning.

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

16 years agoCompile fix for Apple, by C.W. Betts.
ths [Thu, 5 Jun 2008 23:06:46 +0000 (23:06 +0000)]
Compile fix for Apple, by C.W. Betts.

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

16 years agoFix always_inline definition for Darwin, by Andreas Faerber.
ths [Thu, 5 Jun 2008 22:55:54 +0000 (22:55 +0000)]
Fix always_inline definition for Darwin, by Andreas Faerber.

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

16 years agoRemove dead-code (else-block) from block-qcow.c, by Marc Bevand.
ths [Thu, 5 Jun 2008 22:00:45 +0000 (22:00 +0000)]
Remove dead-code (else-block) from block-qcow.c, by Marc Bevand.

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

16 years agoNew qemu-img convert -B option, by Marc Bevand.
ths [Thu, 5 Jun 2008 21:53:49 +0000 (21:53 +0000)]
New qemu-img convert -B option, by Marc Bevand.

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

16 years agoUpdate documentation for qemu-img convert options, by Marc Bevand.
ths [Thu, 5 Jun 2008 21:00:28 +0000 (21:00 +0000)]
Update documentation for qemu-img convert options, by Marc Bevand.

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

16 years agoFree constant temporaries.
ths [Thu, 5 Jun 2008 08:38:44 +0000 (08:38 +0000)]
Free constant temporaries.

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

16 years agosave more CPU state
bellard [Wed, 4 Jun 2008 18:29:25 +0000 (18:29 +0000)]
save more CPU state

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

16 years agoSVM: added tsc_offset
bellard [Wed, 4 Jun 2008 17:39:33 +0000 (17:39 +0000)]
SVM: added tsc_offset

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

16 years agoExplicitly free temporaries.
ths [Wed, 4 Jun 2008 17:37:03 +0000 (17:37 +0000)]
Explicitly free temporaries.

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

16 years agoRemove the temporaries cache of the MIPS target.
ths [Wed, 4 Jun 2008 17:36:02 +0000 (17:36 +0000)]
Remove the temporaries cache of the MIPS target.

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

16 years agoFix pointer calculation for MIPS64 targets.
ths [Wed, 4 Jun 2008 17:34:54 +0000 (17:34 +0000)]
Fix pointer calculation for MIPS64 targets.

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

16 years agofixed exceptions for cpuid and invlpg
bellard [Wed, 4 Jun 2008 17:12:40 +0000 (17:12 +0000)]
fixed exceptions for cpuid and invlpg

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

16 years agoGIF flag handling fix (Alexander Graf)
bellard [Wed, 4 Jun 2008 17:07:08 +0000 (17:07 +0000)]
GIF flag handling fix (Alexander Graf)

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

16 years agoreworked SVM interrupt handling logic - fixed vmrun EIP saved value - reworked cr8...
bellard [Wed, 4 Jun 2008 17:02:19 +0000 (17:02 +0000)]
reworked SVM interrupt handling logic - fixed vmrun EIP saved value - reworked cr8 handling - added CPUState.hflags2

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

16 years agoupdate
bellard [Wed, 4 Jun 2008 14:57:43 +0000 (14:57 +0000)]
update

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

16 years ago32 bit SVM fixes - INVLPG and INVLPGA updates
bellard [Wed, 4 Jun 2008 13:53:05 +0000 (13:53 +0000)]
32 bit SVM fixes - INVLPG and INVLPGA updates

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

16 years agoEFER loading fixes, including SVME bit
bellard [Wed, 4 Jun 2008 13:35:58 +0000 (13:35 +0000)]
EFER loading fixes, including SVME bit

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

16 years agoAdd sysrq to key names known by "sendkey".
balrog [Wed, 4 Jun 2008 10:14:16 +0000 (10:14 +0000)]
Add sysrq to key names known by "sendkey".

Adding sysrq keycode to the table enabling running sysrq debugging in
the guest via the monitor sendkey command, like:

(qemu) sendkey alt-sysrq-t

Tested on x86-64 target and Linux guest.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4658 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRefactor and fix do_sendkey (Jan Kiszka).
balrog [Wed, 4 Jun 2008 10:05:59 +0000 (10:05 +0000)]
Refactor and fix do_sendkey (Jan Kiszka).

Looking at the sendkey implementation, planning to enhance it with a
hold time argument, I found some potential out-of-bound access and not
very readable code. Here is a fix for the former and a (subjective)
improvement of the latter.

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

16 years agoDelete duplicate code.
ths [Wed, 4 Jun 2008 04:21:01 +0000 (04:21 +0000)]
Delete duplicate code.

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

16 years agoSpelling fixes, by Stefan Weil.
ths [Tue, 3 Jun 2008 19:51:57 +0000 (19:51 +0000)]
Spelling fixes, by Stefan Weil.

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

16 years agoMultithreaded locking for mmap().
pbrook [Mon, 2 Jun 2008 16:16:42 +0000 (16:16 +0000)]
Multithreaded locking for mmap().

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

16 years agoFix location of futex.h.
pbrook [Mon, 2 Jun 2008 15:45:44 +0000 (15:45 +0000)]
Fix location of futex.h.

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

16 years agoFix type mismatch.
ths [Mon, 2 Jun 2008 09:35:46 +0000 (09:35 +0000)]
Fix type mismatch.

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

16 years agoFix argument order.
ths [Mon, 2 Jun 2008 08:24:41 +0000 (08:24 +0000)]
Fix argument order.

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

16 years agoProper sign extensions for 32-bit divisions, spotted by Richard Sandiford.
ths [Mon, 2 Jun 2008 07:15:18 +0000 (07:15 +0000)]
Proper sign extensions for 32-bit divisions, spotted by Richard Sandiford.

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

16 years agoFix ATAPI GET_CONFIGURATION function (Alexander Graf, Carlo Marcelo Arenas Belon).
balrog [Mon, 2 Jun 2008 03:12:06 +0000 (03:12 +0000)]
Fix ATAPI GET_CONFIGURATION function (Alexander Graf, Carlo Marcelo Arenas Belon).

The current implementation of GET_CONFIGURATION in the ATAPI stack of qemu
replies a different length depending on the buffer, the data should be
written into.

On the other hand the SCSI spec defines that length information has to be
consistent and independent of return buffer lengths.

This patch makes the ATAPI emulation behave according to the spec and fixes
the Darwin DVD driver.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Kevin Wolf <kwolf@suse.de>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4649 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoMark a dead_tmp as such in ARM msr.
balrog [Mon, 2 Jun 2008 02:29:26 +0000 (02:29 +0000)]
Mark a dead_tmp as such in ARM msr.

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

16 years agoImprove dependencies generation (malc).
balrog [Mon, 2 Jun 2008 02:09:09 +0000 (02:09 +0000)]
Improve dependencies generation (malc).

Seems to work also for TCG now.

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

16 years agoMusicPal: Restore display size after invalidation (Jan Kiszka).
balrog [Mon, 2 Jun 2008 02:04:56 +0000 (02:04 +0000)]
MusicPal: Restore display size after invalidation (Jan Kiszka).

Make sure that the MusicPal display is set to the correct size again
after some other console may have used a different size.

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

16 years agoFix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti).
balrog [Mon, 2 Jun 2008 01:48:27 +0000 (01:48 +0000)]
Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti).

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

16 years agoDon't forget to save VNC FB dimensions after resize (Brad Campbell).
balrog [Mon, 2 Jun 2008 01:40:29 +0000 (01:40 +0000)]
Don't forget to save VNC FB dimensions after resize (Brad Campbell).

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

16 years agoProvide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov.
balrog [Mon, 2 Jun 2008 01:33:11 +0000 (01:33 +0000)]
Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov.

This adds basic support for emulating Sharp Zaurus SL-6000 PDA (tosa).
Currently it provides only basic support: no kbd/lcd, sound, ts, etc.
But it's able at least to boot Linux from CF.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4643 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFactor out common SharpSL PDA code (Dmitry Baryshkov).
balrog [Mon, 2 Jun 2008 01:20:15 +0000 (01:20 +0000)]
Factor out common SharpSL PDA code (Dmitry Baryshkov).

Factor out to sharpsl code to support devices that are present not only
in spitz-family PDAs but also in outher Sharp Zaurus PDAs

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4642 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRestore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).
balrog [Mon, 2 Jun 2008 01:01:18 +0000 (01:01 +0000)]
Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).

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

16 years agoEnable SD card on creation.
balrog [Mon, 2 Jun 2008 00:55:08 +0000 (00:55 +0000)]
Enable SD card on creation.

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

16 years agoMake -mtdblock optional again.
balrog [Mon, 2 Jun 2008 00:39:30 +0000 (00:39 +0000)]
Make -mtdblock optional again.

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

16 years agoFix compilation warning
blueswir1 [Sun, 1 Jun 2008 12:49:32 +0000 (12:49 +0000)]
Fix compilation warning

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

16 years agoMark host brk() area as reserved.
pbrook [Sat, 31 May 2008 16:33:53 +0000 (16:33 +0000)]
Mark host brk() area as reserved.

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

16 years agoAdd TLS sections.
pbrook [Sat, 31 May 2008 16:21:33 +0000 (16:21 +0000)]
Add TLS sections.

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

16 years agoMake signal queues per thread.
pbrook [Sat, 31 May 2008 16:11:38 +0000 (16:11 +0000)]
Make signal queues per thread.

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

16 years agoFix usermode build.
pbrook [Sat, 31 May 2008 12:14:21 +0000 (12:14 +0000)]
Fix usermode build.

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

16 years agoAdd more SuperSparcs
blueswir1 [Sat, 31 May 2008 11:33:20 +0000 (11:33 +0000)]
Add more SuperSparcs

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

16 years agoCopy siginfo.si_code.
pbrook [Fri, 30 May 2008 22:57:20 +0000 (22:57 +0000)]
Copy siginfo.si_code.

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

16 years agoTranslate whole of target_sigset. Use host sigset accessors.
pbrook [Fri, 30 May 2008 22:37:07 +0000 (22:37 +0000)]
Translate whole of target_sigset.  Use host sigset accessors.

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

16 years agoFix structure type in sigtimedwait syscall.
pbrook [Fri, 30 May 2008 21:53:38 +0000 (21:53 +0000)]
Fix structure type in sigtimedwait syscall.

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

16 years agosupport of long calls for PPC (malc)
bellard [Fri, 30 May 2008 20:56:52 +0000 (20:56 +0000)]
support of long calls for PPC (malc)

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

16 years agokqemu API change - allow use of kqemu with 32 bit QEMU on a 64 bit host
bellard [Fri, 30 May 2008 20:48:25 +0000 (20:48 +0000)]
kqemu API change - allow use of kqemu with 32 bit QEMU on a 64 bit host

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

16 years agoHandle NULL argp/envp in execve syscall.
pbrook [Fri, 30 May 2008 18:24:00 +0000 (18:24 +0000)]
Handle NULL argp/envp in execve syscall.

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

16 years agoImplement waitid syscall.
pbrook [Fri, 30 May 2008 18:20:05 +0000 (18:20 +0000)]
Implement waitid syscall.

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

16 years agoPerform target->host signal mapping for *kill syscalls.
pbrook [Fri, 30 May 2008 18:05:19 +0000 (18:05 +0000)]
Perform target->host signal mapping for *kill syscalls.

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

16 years agoFix typo.
pbrook [Fri, 30 May 2008 17:54:15 +0000 (17:54 +0000)]
Fix typo.

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

16 years agoMove clone() register setup to target specific code. Handle fork-like clone.
pbrook [Fri, 30 May 2008 17:22:15 +0000 (17:22 +0000)]
Move clone() register setup to target specific code.  Handle fork-like clone.

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

16 years agoFix for 32-bit MIPS.
ths [Fri, 30 May 2008 00:12:52 +0000 (00:12 +0000)]
Fix for 32-bit MIPS.

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

16 years agoAvoid qemu SIGFPE for MIPS DIV, by Richard Sandiford.
ths [Thu, 29 May 2008 18:29:05 +0000 (18:29 +0000)]
Avoid qemu SIGFPE for MIPS DIV, by Richard Sandiford.

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

16 years agoFix truncate/extend reversal in MIPS DIV{, U} handling, by Richard Sandiford.
ths [Thu, 29 May 2008 18:28:07 +0000 (18:28 +0000)]
Fix truncate/extend reversal in MIPS DIV{, U} handling, by Richard Sandiford.

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

16 years agoFix modulus result from MIPS DDIV & avoid overflowing division,
ths [Thu, 29 May 2008 18:23:31 +0000 (18:23 +0000)]
Fix modulus result from MIPS DDIV & avoid overflowing division,
by Richard Sandiford.

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

16 years agoMicroSparc I didn't have fsmuld op
blueswir1 [Thu, 29 May 2008 18:20:36 +0000 (18:20 +0000)]
MicroSparc I didn't have fsmuld op

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

16 years agoRemove unused (for now) reg_REGWPTR (original patch by Glauber Costa)
blueswir1 [Thu, 29 May 2008 16:38:41 +0000 (16:38 +0000)]
Remove unused (for now) reg_REGWPTR (original patch by Glauber Costa)

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

16 years agoNPTL host detection and futex syscall passthrough.
pbrook [Thu, 29 May 2008 14:34:11 +0000 (14:34 +0000)]
NPTL host detection and futex syscall passthrough.

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

16 years agoFix rounding error.
pbrook [Thu, 29 May 2008 13:56:10 +0000 (13:56 +0000)]
Fix rounding error.

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

16 years agoStrace fallback for unknown syscalls.
pbrook [Thu, 29 May 2008 13:49:09 +0000 (13:49 +0000)]
Strace fallback for unknown syscalls.

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

16 years agoImplement clock_nanosleep.
pbrook [Thu, 29 May 2008 13:43:29 +0000 (13:43 +0000)]
Implement clock_nanosleep.

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

16 years agoPush common interrupt variables to cpu-defs.h (Glauber Costa)
bellard [Thu, 29 May 2008 10:08:06 +0000 (10:08 +0000)]
Push common interrupt variables to cpu-defs.h (Glauber Costa)

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

16 years agokeep static code gen buffer for user mode - mark user mode reserved pages after all...
bellard [Thu, 29 May 2008 09:35:57 +0000 (09:35 +0000)]
keep static code gen buffer for user mode - mark user mode reserved pages after all big allocations

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

16 years agoImplement ARM magic kernel page and TLS register.
pbrook [Thu, 29 May 2008 00:20:44 +0000 (00:20 +0000)]
Implement ARM magic kernel page and TLS register.

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

16 years agomoved halted field to CPU_COMMON
bellard [Wed, 28 May 2008 17:14:10 +0000 (17:14 +0000)]
moved halted field to CPU_COMMON

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

16 years agoDon't link usermode emulation against libqemu_common.a
pbrook [Wed, 28 May 2008 16:44:57 +0000 (16:44 +0000)]
Don't link usermode emulation against libqemu_common.a

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

16 years agoforce bit 1 in eflags load
bellard [Wed, 28 May 2008 16:25:20 +0000 (16:25 +0000)]
force bit 1 in eflags load

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

16 years agoSVM rework
bellard [Wed, 28 May 2008 16:16:54 +0000 (16:16 +0000)]
SVM rework

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

16 years agoHonour current_tc for MIPS M{T,F}{HI,LO}, by Richard Sandiford.
ths [Wed, 28 May 2008 13:37:19 +0000 (13:37 +0000)]
Honour current_tc for MIPS M{T,F}{HI,LO}, by Richard Sandiford.

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

16 years agoconsistent naming for i386 TCG helper file
bellard [Wed, 28 May 2008 12:51:20 +0000 (12:51 +0000)]
consistent naming for i386 TCG helper file

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

16 years agoupdate
bellard [Wed, 28 May 2008 12:35:42 +0000 (12:35 +0000)]
update

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

16 years agomore tests
bellard [Wed, 28 May 2008 12:34:49 +0000 (12:34 +0000)]
more tests

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

16 years agovariable dynamic translation buffer size
bellard [Wed, 28 May 2008 12:30:31 +0000 (12:30 +0000)]
variable dynamic translation buffer size

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

16 years agoAlign file accesses with cache=off (O_DIRECT) (Kevin Wolf, Laurent Vivier)
bellard [Wed, 28 May 2008 09:51:09 +0000 (09:51 +0000)]
Align file accesses with cache=off (O_DIRECT) (Kevin Wolf, Laurent Vivier)

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

16 years agoremoved unused code
bellard [Tue, 27 May 2008 21:18:39 +0000 (21:18 +0000)]
removed unused code

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

16 years agoCRIS: Re-add the X flag to the tb flags, it allows for better code generation and...
edgar_igl [Tue, 27 May 2008 21:15:56 +0000 (21:15 +0000)]
CRIS: Re-add the X flag to the tb flags, it allows for better code generation and is practially always cleared.

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

16 years agoqemu-nbd tool (Anthony Liguori)
bellard [Tue, 27 May 2008 21:13:40 +0000 (21:13 +0000)]
qemu-nbd tool (Anthony Liguori)

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

16 years agoCRIS: Use $eda to instead of debug1 (removed) for fault addr.
edgar_igl [Tue, 27 May 2008 21:12:09 +0000 (21:12 +0000)]
CRIS: Use $eda to instead of debug1 (removed) for fault addr.

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

16 years agoCRIS: Restructure the translator to allow for better code generation.
edgar_igl [Tue, 27 May 2008 21:10:56 +0000 (21:10 +0000)]
CRIS: Restructure the translator to allow for better code generation.

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

16 years agoETRAX: Avoid compiler warning.
edgar_igl [Tue, 27 May 2008 21:05:21 +0000 (21:05 +0000)]
ETRAX: Avoid compiler warning.

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

16 years agoETRAX: Allow boot from flash. Support the watchdog timer and resets through it.
edgar_igl [Tue, 27 May 2008 21:04:41 +0000 (21:04 +0000)]
ETRAX: Allow boot from flash. Support the watchdog timer and resets through it.

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

16 years agoFree temps
blueswir1 [Tue, 27 May 2008 19:39:12 +0000 (19:39 +0000)]
Free temps

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