qemu
15 years agoRework period/buffer size setting
malc [Sat, 21 Jun 2008 17:14:57 +0000 (17:14 +0000)]
Rework period/buffer size setting

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

15 years agoAdd VM save/load support
malc [Sat, 21 Jun 2008 17:14:54 +0000 (17:14 +0000)]
Add VM save/load support

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

15 years agoAdd calls to pci_device_save/load
malc [Sat, 21 Jun 2008 17:14:50 +0000 (17:14 +0000)]
Add calls to pci_device_save/load

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

15 years agoUpdate TODO
blueswir1 [Fri, 20 Jun 2008 17:42:20 +0000 (17:42 +0000)]
Update TODO

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

15 years agoAdd support for boot_set command
blueswir1 [Fri, 20 Jun 2008 16:25:56 +0000 (16:25 +0000)]
Add support for boot_set command

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

15 years agoAdd an opaque parameter to boot_set API, move function to monitor.c
blueswir1 [Fri, 20 Jun 2008 16:25:06 +0000 (16:25 +0000)]
Add an opaque parameter to boot_set API, move function to monitor.c

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

15 years agoDelete obsolete file.
ths [Fri, 20 Jun 2008 15:29:38 +0000 (15:29 +0000)]
Delete obsolete file.

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

15 years agoDelete obsolete file.
ths [Fri, 20 Jun 2008 15:21:28 +0000 (15:21 +0000)]
Delete obsolete file.

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

15 years agoDelete obsolete prototypes.
ths [Fri, 20 Jun 2008 15:20:35 +0000 (15:20 +0000)]
Delete obsolete prototypes.

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

15 years agoConvert unaligned load/store to TCG.
ths [Fri, 20 Jun 2008 15:12:14 +0000 (15:12 +0000)]
Convert unaligned load/store to TCG.

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

15 years agoFix boot problem on i386 host introduced in r4690
blueswir1 [Fri, 20 Jun 2008 15:06:42 +0000 (15:06 +0000)]
Fix boot problem on i386 host introduced in r4690

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

15 years agoadded model_id and vendor cpu model options (initial patch by Dan Kenigsberg) - vario...
bellard [Fri, 20 Jun 2008 14:50:55 +0000 (14:50 +0000)]
added model_id and vendor cpu model options (initial patch by Dan Kenigsberg) - various cleanup

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

15 years agoConvert vr54xx multiply instructions to TCG.
ths [Fri, 20 Jun 2008 14:35:19 +0000 (14:35 +0000)]
Convert vr54xx multiply instructions to TCG.

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

15 years agocmpxchg fixes
bellard [Fri, 20 Jun 2008 14:18:35 +0000 (14:18 +0000)]
cmpxchg fixes

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

15 years agoRemove now-dead code.
ths [Thu, 19 Jun 2008 18:38:40 +0000 (18:38 +0000)]
Remove now-dead code.

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

15 years agoConvert remaining MIPS FP instructions to TCG.
ths [Thu, 19 Jun 2008 18:35:02 +0000 (18:35 +0000)]
Convert remaining MIPS FP instructions to TCG.

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

15 years agoFix buffer overruns (reported by Julian Seward)
blueswir1 [Thu, 19 Jun 2008 17:38:15 +0000 (17:38 +0000)]
Fix buffer overruns (reported by Julian Seward)

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

15 years agoAlso fix 24 bit depth
blueswir1 [Thu, 19 Jun 2008 16:07:48 +0000 (16:07 +0000)]
Also fix 24 bit depth

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

15 years agoFix crash when returning from monitor or serial console to normal TCX view
blueswir1 [Thu, 19 Jun 2008 15:56:22 +0000 (15:56 +0000)]
Fix crash when returning from monitor or serial console to normal TCX view

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

16 years agoMake save function optional
aurel32 [Wed, 18 Jun 2008 22:10:21 +0000 (22:10 +0000)]
Make save function optional

(Ian Jackson)

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

16 years agoPPC: fix mtfsfi
aurel32 [Wed, 18 Jun 2008 22:10:12 +0000 (22:10 +0000)]
PPC: fix mtfsfi

(Tristan Gingold)

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

16 years agoAdd image format option in monitor for removable media
aurel32 [Wed, 18 Jun 2008 22:10:01 +0000 (22:10 +0000)]
Add image format option in monitor for removable media

(Chris Wright)

CVE-2008-1945

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

16 years agoHLT, MWAIT and MONITOR insn fixes (initial patch by Alexander Graf)
bellard [Wed, 18 Jun 2008 09:32:32 +0000 (09:32 +0000)]
HLT, MWAIT and MONITOR insn fixes (initial patch by Alexander Graf)

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

16 years agoSave LR into proper place on callers stack frame
malc [Wed, 18 Jun 2008 01:58:52 +0000 (01:58 +0000)]
Save LR into proper place on callers stack frame

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

16 years agoAvoid temporary variable use across basic blocks for udivx
blueswir1 [Sun, 15 Jun 2008 18:06:39 +0000 (18:06 +0000)]
Avoid temporary variable use across basic blocks for udivx

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

16 years agoFix Sparc32plus & Sparc64 debug output
blueswir1 [Sun, 15 Jun 2008 18:02:48 +0000 (18:02 +0000)]
Fix Sparc32plus & Sparc64 debug output

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

16 years agoFix vm state save/load
malc [Fri, 13 Jun 2008 18:16:59 +0000 (18:16 +0000)]
Fix vm state save/load

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

16 years agoISA version of CS4231A
malc [Fri, 13 Jun 2008 10:48:22 +0000 (10:48 +0000)]
ISA version of CS4231A

Hopefully someday will be merged with cs4231.c (SPARC version)

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

16 years agoSwitch the standard multiplication instructions to TCG.
ths [Thu, 12 Jun 2008 12:43:29 +0000 (12:43 +0000)]
Switch the standard multiplication instructions to TCG.

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

16 years agoSwitch bitfield instructions and assorted special ops to TCG.
ths [Thu, 12 Jun 2008 12:42:35 +0000 (12:42 +0000)]
Switch bitfield instructions and assorted special ops to TCG.

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

16 years agoReimplement brcond2 and refactor brcond
malc [Thu, 12 Jun 2008 12:33:10 +0000 (12:33 +0000)]
Reimplement brcond2 and refactor brcond

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

16 years agoTCGify the simplest FP instructions.
ths [Thu, 12 Jun 2008 03:17:06 +0000 (03:17 +0000)]
TCGify the simplest FP instructions.

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

16 years agoTCGify a few more instructions.
ths [Thu, 12 Jun 2008 03:15:13 +0000 (03:15 +0000)]
TCGify a few more instructions.

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

16 years agoUpdate TODO list.
ths [Wed, 11 Jun 2008 20:58:36 +0000 (20:58 +0000)]
Update TODO list.

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

16 years agoCall most FP helpers without deroute through op.c
ths [Wed, 11 Jun 2008 15:27:54 +0000 (15:27 +0000)]
Call most FP helpers without deroute through op.c

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

16 years agoDelete obsolete file.
ths [Wed, 11 Jun 2008 13:24:47 +0000 (13:24 +0000)]
Delete obsolete file.

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

16 years agoSwitch most MIPS FP load/stores to TCG.
ths [Wed, 11 Jun 2008 13:02:57 +0000 (13:02 +0000)]
Switch most MIPS FP load/stores to TCG.

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

16 years agoAvoid gen_opc_buf overflow.
ths [Wed, 11 Jun 2008 12:26:29 +0000 (12:26 +0000)]
Avoid gen_opc_buf overflow.

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

16 years agoAllocate register pair for 64-bit registers on 32-bit host.
ths [Wed, 11 Jun 2008 11:03:34 +0000 (11:03 +0000)]
Allocate register pair for 64-bit registers on 32-bit host.

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

16 years agoFree some more temporaries.
ths [Wed, 11 Jun 2008 10:40:33 +0000 (10:40 +0000)]
Free some more temporaries.

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

16 years agoMove FP TNs to cpu env.
ths [Wed, 11 Jun 2008 10:39:48 +0000 (10:39 +0000)]
Move FP TNs to cpu env.

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

16 years agousing strncpy is *always* a bad idea
bellard [Wed, 11 Jun 2008 09:44:44 +0000 (09:44 +0000)]
using strncpy is *always* a bad idea

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

16 years agoFix typo, by Laurent Desnogues.
ths [Tue, 10 Jun 2008 15:29:15 +0000 (15:29 +0000)]
Fix typo, by Laurent Desnogues.

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

16 years agoRemove stray variable
malc [Tue, 10 Jun 2008 01:47:17 +0000 (01:47 +0000)]
Remove stray variable

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

16 years agoFix data type mixup, spotted by malc.
ths [Tue, 10 Jun 2008 01:18:32 +0000 (01:18 +0000)]
Fix data type mixup, spotted by malc.

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

16 years agoETRAX: More DMA context level related fixes.
edgar_igl [Tue, 10 Jun 2008 00:11:48 +0000 (00:11 +0000)]
ETRAX: More DMA context level related fixes.

* When hitting EOL (end of list) at the data descriptor level, the DMA should mark the current context-descriptor as disabled and perform a context-store so software can see whats goin on.
* Context loads update RW_SAVED_DATA_BUF, data loads dont. This fixes an issue with ethernet bootstrapping.
* Reorder the logic for processing out channels to be more like the one for input channels.

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

16 years agoUse rem/div[u]_i32 drop div[u]2_i32
malc [Mon, 9 Jun 2008 23:44:44 +0000 (23:44 +0000)]
Use rem/div[u]_i32 drop div[u]2_i32

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

16 years agoCRIS: Add (untested) cpu-state save/load.
edgar_igl [Mon, 9 Jun 2008 23:44:20 +0000 (23:44 +0000)]
CRIS: Add (untested) cpu-state save/load.

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

16 years agoETRAX: Add NMI support to the watchdog and the interrupt controller.
edgar_igl [Mon, 9 Jun 2008 23:33:30 +0000 (23:33 +0000)]
ETRAX: Add NMI support to the watchdog and the interrupt controller.
* Add NMI and GURU exceptions to teh interrupt controller.
* Teach the watchdog timer to signal an NMI before reseting the chip.
* Add etraxfs.h to hold api for etrax device models.

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

16 years agoCRIS: Emulate NMIs.
edgar_igl [Mon, 9 Jun 2008 23:18:06 +0000 (23:18 +0000)]
CRIS: Emulate NMIs.

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

16 years agoCRIS: Support RFN insn.
edgar_igl [Mon, 9 Jun 2008 23:07:50 +0000 (23:07 +0000)]
CRIS: Support RFN insn.

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

16 years agoCRIS: Translator updates.
edgar_igl [Mon, 9 Jun 2008 23:06:31 +0000 (23:06 +0000)]
CRIS: Translator updates.
* RFN (Return From NMI) insn.
* Avoid unnecessary T0 transfers.
* Dont do tcg related init more than once.

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

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