sdk/emulator/qemu.git
16 years agoSVM: Fix segment attribute clobbering (Alexander Graf)
bellard [Mon, 9 Jun 2008 20:44:19 +0000 (20:44 +0000)]
SVM: Fix segment attribute clobbering (Alexander Graf)

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

16 years agoEmit trampolines manually in prologue
malc [Mon, 9 Jun 2008 19:57:36 +0000 (19:57 +0000)]
Emit trampolines manually in prologue

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

16 years agoFix test for signed div fast path
malc [Mon, 9 Jun 2008 19:57:27 +0000 (19:57 +0000)]
Fix test for signed div fast path

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

16 years agoAdd proper file header.
pbrook [Mon, 9 Jun 2008 14:31:18 +0000 (14:31 +0000)]
Add proper file header.

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

16 years agoUse qemu_mallocz to allocate new thread state. Remove redundant memset.
pbrook [Mon, 9 Jun 2008 14:02:50 +0000 (14:02 +0000)]
Use qemu_mallocz to allocate new thread state.  Remove redundant memset.

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

16 years agoUse qemu_mallocz.
pbrook [Mon, 9 Jun 2008 13:57:23 +0000 (13:57 +0000)]
Use qemu_mallocz.

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

16 years agoPrevent guest reusing host memory allocations.
pbrook [Mon, 9 Jun 2008 13:47:45 +0000 (13:47 +0000)]
Prevent guest reusing host memory allocations.

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

16 years agoDespite what the documentation says/implies, PTHREAD_STACK_MIN is often not
pbrook [Mon, 9 Jun 2008 12:10:22 +0000 (12:10 +0000)]
Despite what the documentation says/implies, PTHREAD_STACK_MIN is often not
defined by pthread.h.

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

16 years agoSwitch remaining CP0 instructions to TCG or helper functions.
ths [Mon, 9 Jun 2008 07:13:38 +0000 (07:13 +0000)]
Switch remaining CP0 instructions to TCG or helper functions.

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

16 years agoAdd -mlongcall for PPC host (needed for MIPS for instance)
malc [Mon, 9 Jun 2008 06:06:30 +0000 (06:06 +0000)]
Add -mlongcall for PPC host (needed for MIPS for instance)

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

16 years agoR_PPC_REL24 safety net
malc [Mon, 9 Jun 2008 06:06:28 +0000 (06:06 +0000)]
R_PPC_REL24 safety net

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

16 years agoFix div[u]2.
malc [Mon, 9 Jun 2008 06:06:25 +0000 (06:06 +0000)]
Fix div[u]2.

Previous code assummed 32 by 32 bit divmod operation, and survived
x86_64 test only by sheer luck. MIPS wasn't so forgiving.

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

16 years agoClean up MMIO TLB handling.
pbrook [Mon, 9 Jun 2008 00:20:13 +0000 (00:20 +0000)]
Clean up MMIO TLB handling.
The IO index is now stored in its own field, instead of being wedged
into the vaddr field.  This eliminates the ROMD and watchpoint host
pointer weirdness.  The IO index space is expanded by 1 bit, and
several additional bits are made available in the TLB vaddr field.

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

16 years agoFix the sendkey hold time calculation (Jan Kiszka).
balrog [Mon, 9 Jun 2008 00:03:47 +0000 (00:03 +0000)]
Fix the sendkey hold time calculation (Jan Kiszka).

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

16 years agoTC6393XB system features (Dmitry Baryshkov).
balrog [Mon, 9 Jun 2008 00:03:13 +0000 (00:03 +0000)]
TC6393XB system features (Dmitry Baryshkov).

Add basic support for TC6393XB system features. No support for GPIO
input though.

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

16 years agoEnhance sendkey with key hold time (Jan Kiszka).
balrog [Sun, 8 Jun 2008 22:45:01 +0000 (22:45 +0000)]
Enhance sendkey with key hold time (Jan Kiszka).

Current key injection via the monitor basically generates no key hold
time. This is fine for keyboard emulations that have their own queues,
but it causes troubles for those how don't (like the MusicPal - it
simply does not work with injected keys). Moreover, I would like to use
this mechanism to simulate pressed buttons during power-up.

Therefore, this patch enhances the key injection with a configurable
release delay (by default 100 virtual milliseconds).

This feature allows to get rid of the initial sleep() in musicpal_init
because one can now simply start qemu with -S and issue "sendkey m 1000"
and "continue" in the monitor to achieve the desired effect of a pressed
menu button during power-up. So there is no need for a per-musicpal or
even qemu-wide "-hold-button" switch.

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

16 years agoRegister helper functions.
ths [Sun, 8 Jun 2008 07:42:23 +0000 (07:42 +0000)]
Register helper functions.

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

16 years agoCheck the returned audio_buf_info fields
malc [Sun, 8 Jun 2008 04:27:56 +0000 (04:27 +0000)]
Check the returned audio_buf_info fields

At least on one system zero is returned in either fragsize or
fragstotal (reported by Dave Scott), this results in an audio_calloc
failing the audio_bug check and another ominous error message. Fail
early and blame the system.

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

16 years agoFix error reporting under Win32 (CreateFile does not set errno)
malc [Sun, 8 Jun 2008 01:55:09 +0000 (01:55 +0000)]
Fix error reporting under Win32 (CreateFile does not set errno)

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

16 years agoUpdate
malc [Sun, 8 Jun 2008 01:55:07 +0000 (01:55 +0000)]
Update

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

16 years agoFix some signedness issues caught by gcc 4.3
malc [Sun, 8 Jun 2008 01:42:47 +0000 (01:42 +0000)]
Fix some signedness issues caught by gcc 4.3

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

16 years agoRemove dead and bitrotten "qemu-fast" code.
pbrook [Sun, 8 Jun 2008 01:09:01 +0000 (01:09 +0000)]
Remove dead and bitrotten "qemu-fast" code.
Only build softmmu+MMIO handlers for system emulation.

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

16 years agoDo not scare users with ominous error messages from AUD_open*
malc [Sun, 8 Jun 2008 01:07:48 +0000 (01:07 +0000)]
Do not scare users with ominous error messages from AUD_open*

Apparently Windows Server 2003 sets the frequency for either mc or pi
voice to zero, which in turn triggers a call to audio_bug from this
chain:

open_voice -> AUD_open_in -> audio_bug (audio_validate_settings):

A bug was just triggered in AUD_open_in
...
Context:
audio: frequency=0 nchannels=2 fmt=S16 endianness=little

But since no attempt by the said OS is made to actually use the voice
with zero frequency this can be considered normal behavior.

Hence if zero freqency situation is encountered - close current voice,
and make noises if the guest tries to use it.

Reported by simon@...ve

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

16 years agoImplement thread creation.
pbrook [Sat, 7 Jun 2008 22:12:17 +0000 (22:12 +0000)]
Implement thread creation.

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

16 years agoMultithreaded locking fixes.
pbrook [Sat, 7 Jun 2008 20:50:51 +0000 (20:50 +0000)]
Multithreaded locking fixes.

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

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