sdk/emulator/qemu.git
16 years agoPPC: fix definition of msr_spe
aurel32 [Tue, 6 May 2008 14:58:15 +0000 (14:58 +0000)]
PPC: fix definition of msr_spe

(Tristan Gingold)

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

16 years agoFix OMAP1 MPU-timer rate on 32-bit hosts.
balrog [Tue, 6 May 2008 14:50:15 +0000 (14:50 +0000)]
Fix OMAP1 MPU-timer rate on 32-bit hosts.

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

16 years agoFix signal handler compilation on __arm__.
balrog [Tue, 6 May 2008 14:47:19 +0000 (14:47 +0000)]
Fix signal handler compilation on __arm__.

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

16 years agoForce correct evaluation order in a a == b != c condition.
balrog [Tue, 6 May 2008 14:45:30 +0000 (14:45 +0000)]
Force correct evaluation order in a a == b != c condition.

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

16 years agoFix i64 remainder calculation copy-paste error.
balrog [Tue, 6 May 2008 14:40:28 +0000 (14:40 +0000)]
Fix i64 remainder calculation copy-paste error.

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

16 years agoUse TCG for MIPS GPR moves.
ths [Tue, 6 May 2008 10:57:59 +0000 (10:57 +0000)]
Use TCG for MIPS GPR moves.

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

16 years agoFix MIPS64 branches. Funny how this survived testing.
ths [Tue, 6 May 2008 10:03:16 +0000 (10:03 +0000)]
Fix MIPS64 branches. Funny how this survived testing.

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

16 years agoide: Enable byte&word access to DMA address register
aurel32 [Tue, 6 May 2008 09:55:56 +0000 (09:55 +0000)]
ide: Enable byte&word access to DMA address register

(Jan Kiszka)

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

16 years agoTeach the CRIS disassembler to stay within the provided buffer.
edgar_igl [Tue, 6 May 2008 08:45:10 +0000 (08:45 +0000)]
Teach the CRIS disassembler to stay within the provided buffer.

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

16 years agoMake sure we flush cached blocks from the tb-jmp-cache when we replace valid tlb...
edgar_igl [Tue, 6 May 2008 08:44:21 +0000 (08:44 +0000)]
Make sure we flush cached blocks from the tb-jmp-cache when we replace valid tlb entries.

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

16 years agoMake the paged properties of the tb-jmp-cache hash function work for TARGET_PAGE_BITS...
edgar_igl [Tue, 6 May 2008 08:38:22 +0000 (08:38 +0000)]
Make the paged properties of the tb-jmp-cache hash function work for TARGET_PAGE_BITS != 12.

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

16 years agoMore TCG updates for CRIS
edgar_igl [Tue, 6 May 2008 08:30:15 +0000 (08:30 +0000)]
More TCG updates for CRIS
* Convert parts of the jump logic to TCG.
* Stores no longer have to go via T0/T1.
* Use the byte and halfword ldx_code variants when appropriate for insn fetching.
* Do not disassemble beyond the translation block.

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

16 years agoCRIS MMU Updates
edgar_igl [Tue, 6 May 2008 08:04:40 +0000 (08:04 +0000)]
CRIS MMU Updates
* Add support for exec faults and for the k protection bit.
* Abort if search_pc causes recursive mmu faults.

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

16 years agoReally really revert commit r4343
aurel32 [Mon, 5 May 2008 21:42:19 +0000 (21:42 +0000)]
Really really revert commit r4343

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

16 years agoReally revert commit r4343
aurel32 [Mon, 5 May 2008 21:35:09 +0000 (21:35 +0000)]
Really revert commit r4343

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

16 years agoRevert commit r4342 and r4343, wasn't intended to be committed
aurel32 [Mon, 5 May 2008 21:33:45 +0000 (21:33 +0000)]
Revert commit r4342 and r4343, wasn't intended to be committed

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

16 years agoPPC: fix isel opcode decoding
aurel32 [Mon, 5 May 2008 21:27:18 +0000 (21:27 +0000)]
PPC: fix isel opcode decoding

(Tristan Gingold)

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

16 years agohw/pc.c: fix warning
aurel32 [Mon, 5 May 2008 21:27:10 +0000 (21:27 +0000)]
hw/pc.c: fix warning

(Jan Kiszka)

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

16 years agoDon't stop translation for mtc0 compare
aurel32 [Mon, 5 May 2008 21:27:01 +0000 (21:27 +0000)]
Don't stop translation for mtc0 compare

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4343 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDisable debug code for production.
aurel32 [Mon, 5 May 2008 21:26:52 +0000 (21:26 +0000)]
Disable debug code for production.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4342 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoqemu: generate signals on tap I/O
aurel32 [Mon, 5 May 2008 21:26:43 +0000 (21:26 +0000)]
qemu: generate signals on tap I/O

Currently tap does not generate signals on I/O; this causes
network latency to be dependent on the timer tick (1ms without
dyntick, guest dependent with dyntick).  By generating a signal
on I/O, we can inform the guest immediately that a packet has
arrived.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4341 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoCVE-2007-1320 - Cirrus LGD-54XX "bitblt" heap overflow
aurel32 [Mon, 5 May 2008 21:26:31 +0000 (21:26 +0000)]
CVE-2007-1320 - Cirrus LGD-54XX "bitblt" heap overflow

I have just noticed that patch for CVE-2007-1320 has never been applied
to the QEMU CVS. Please find it below.

| Multiple heap-based buffer overflows in the cirrus_invalidate_region
| function in the Cirrus VGA extension in QEMU 0.8.2, as used in Xen and
| possibly other products, might allow local users to execute arbitrary
| code via unspecified vectors related to "attempting to mark
| non-existent regions as dirty," aka the "bitblt" heap overflow.

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

16 years agoFix Sparc64 serial device breakage
blueswir1 [Mon, 5 May 2008 17:37:44 +0000 (17:37 +0000)]
Fix Sparc64 serial device breakage

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

16 years agoPut Pseudo-TTY in rawmode for char devices
aurel32 [Mon, 5 May 2008 10:05:31 +0000 (10:05 +0000)]
Put Pseudo-TTY in rawmode for char devices

(Daniel P. Berrange)

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

16 years agoQemu 32-bit i386, gcc >= 3.4 spill error fix
aurel32 [Mon, 5 May 2008 06:00:27 +0000 (06:00 +0000)]
Qemu 32-bit i386, gcc >= 3.4 spill error fix

(Ben Taylor)

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

16 years ago8250: Customized base baudrate
aurel32 [Sun, 4 May 2008 21:42:11 +0000 (21:42 +0000)]
8250: Customized base baudrate

(Jan Kiszka)

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

16 years ago8250: throttle TX-completion IRQs
aurel32 [Sun, 4 May 2008 21:42:00 +0000 (21:42 +0000)]
8250: throttle TX-completion IRQs

(Jan Kiszka)

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

16 years agoCorrectly save and restore env->a20_mask now that it is a 64-bit
aurel32 [Sun, 4 May 2008 20:11:44 +0000 (20:11 +0000)]
Correctly save and restore env->a20_mask now that it is a 64-bit
variable. Noticed by Erik de Castro Lopo.

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

16 years agoAllow bootdevice change from the monitor
aurel32 [Sun, 4 May 2008 20:11:34 +0000 (20:11 +0000)]
Allow bootdevice change from the monitor

(Gildas Le Nadan)

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

16 years agoMusicPal mono playback support.
balrog [Sun, 4 May 2008 15:47:15 +0000 (15:47 +0000)]
MusicPal mono playback support.

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

16 years agoOMAP STI/XTI console.
balrog [Sun, 4 May 2008 15:26:28 +0000 (15:26 +0000)]
OMAP STI/XTI console.

Add a dummy serial to receive the output from STI console (OMAP
debugging/emulation interface).
Add some more OMAP UART dummy registers.

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

16 years agoRemember the state of level-triggered interrupts
aurel32 [Sun, 4 May 2008 13:15:24 +0000 (13:15 +0000)]
Remember the state of level-triggered interrupts

(Hollis Blanchard)

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

16 years agoPPC UIC: Remove interrupt polarity code
aurel32 [Sun, 4 May 2008 13:15:15 +0000 (13:15 +0000)]
PPC UIC: Remove interrupt polarity code

(Hollis Blanchard)

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

16 years agoFix spurious VGA updates
aurel32 [Sun, 4 May 2008 13:11:53 +0000 (13:11 +0000)]
Fix spurious VGA updates

(Samuel Thibault)

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

16 years agoremove target ifdefs from vl.c
aurel32 [Sun, 4 May 2008 13:11:44 +0000 (13:11 +0000)]
remove target ifdefs from vl.c

(Glauber Costa)

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

16 years agoRemove debug sample rate slowdown.
balrog [Sun, 4 May 2008 12:18:51 +0000 (12:18 +0000)]
Remove debug sample rate slowdown.

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

16 years agoUse external clock in wm8750 slave mode.
balrog [Sun, 4 May 2008 12:15:51 +0000 (12:15 +0000)]
Use external clock in wm8750 slave mode.

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

16 years agoComplete the TCG conversion (and delete some files, too)
blueswir1 [Sun, 4 May 2008 12:00:16 +0000 (12:00 +0000)]
Complete the TCG conversion (and delete some files, too)

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

16 years agoComplete the TCG conversion
blueswir1 [Sun, 4 May 2008 11:58:45 +0000 (11:58 +0000)]
Complete the TCG conversion

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

16 years agoUpdate volume for WM8750 input voices.
balrog [Sun, 4 May 2008 10:55:25 +0000 (10:55 +0000)]
Update volume for WM8750 input voices.

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

16 years agoFirst cut at WM8750 volume control (Jan Kiszka).
balrog [Sun, 4 May 2008 10:21:03 +0000 (10:21 +0000)]
First cut at WM8750 volume control (Jan Kiszka).

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

16 years agoSimplify mips branch handling. Retire T2 from use. Use TCG for branches.
ths [Sun, 4 May 2008 08:16:10 +0000 (08:16 +0000)]
Simplify mips branch handling. Retire T2 from use. Use TCG for branches.

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

16 years agoAdd helpers and shorthands for mul and muli operations.
ths [Sun, 4 May 2008 08:14:08 +0000 (08:14 +0000)]
Add helpers and shorthands for mul and muli operations.

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

16 years agoAvoid some brconds
blueswir1 [Sun, 4 May 2008 08:06:33 +0000 (08:06 +0000)]
Avoid some brconds

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

16 years agoFix crash due to invalid env->current_tb (Adam Lackorzynski, Paul Brook, me)
blueswir1 [Sun, 4 May 2008 06:38:18 +0000 (06:38 +0000)]
Fix crash due to invalid env->current_tb (Adam Lackorzynski, Paul Brook, me)

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

16 years agoSet default console size
aurel32 [Sun, 4 May 2008 00:50:34 +0000 (00:50 +0000)]
Set default console size

(Stefan Weil)

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

16 years agoAdd ${ARCH_CFLAGS} when testing for libbrlapi
aurel32 [Sun, 4 May 2008 00:50:25 +0000 (00:50 +0000)]
Add ${ARCH_CFLAGS} when testing for libbrlapi

(Samuel Thibault, Ben Taylor)

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

16 years agoconfigure: silence test for brlapi
aurel32 [Sun, 4 May 2008 00:50:17 +0000 (00:50 +0000)]
configure: silence test for brlapi

(Carlo Marcelo Arenas Belon)

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

16 years agoCRIS: Convert divide step to TCG.
edgar_igl [Sat, 3 May 2008 21:34:39 +0000 (21:34 +0000)]
CRIS: Convert divide step to TCG.

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

16 years agoSkip register moves when the target and the source are the same
blueswir1 [Sat, 3 May 2008 20:52:26 +0000 (20:52 +0000)]
Skip register moves when the target and the source are the same

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

16 years agoUse memory based registers in functions containing brconds
blueswir1 [Sat, 3 May 2008 20:51:00 +0000 (20:51 +0000)]
Use memory based registers in functions containing brconds

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

16 years agoDo not attempt to set page flags for pages outside target address space
blueswir1 [Sat, 3 May 2008 17:51:24 +0000 (17:51 +0000)]
Do not attempt to set page flags for pages outside target address space

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

16 years agoCRIS: Convert lz (leading zeros) to TCG.
edgar_igl [Sat, 3 May 2008 17:11:36 +0000 (17:11 +0000)]
CRIS: Convert lz (leading zeros) to TCG.

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

16 years agoCorrect broken test for fixed file mmaps.
edgar_igl [Sat, 3 May 2008 15:55:42 +0000 (15:55 +0000)]
Correct broken test for fixed file mmaps.

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

16 years agoFix MIPS MT GPR accesses, thanks Stefan Weil.
ths [Sat, 3 May 2008 11:06:59 +0000 (11:06 +0000)]
Fix MIPS MT GPR accesses, thanks Stefan Weil.

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

16 years agoCRIS: Eliminate a few unneeded moves to/from T0/T1.
edgar_igl [Sat, 3 May 2008 08:36:16 +0000 (08:36 +0000)]
CRIS: Eliminate a few unneeded moves to/from T0/T1.

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

16 years agoCRIS: Reduce the number of tb dependent flags.
edgar_igl [Sat, 3 May 2008 08:35:16 +0000 (08:35 +0000)]
CRIS: Reduce the number of tb dependent flags.

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

16 years agoCRIS: Do post-increment without going via T0.
edgar_igl [Sat, 3 May 2008 06:54:52 +0000 (06:54 +0000)]
CRIS: Do post-increment without going via T0.

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

16 years agoAvoid a build warning.
edgar_igl [Fri, 2 May 2008 22:47:34 +0000 (22:47 +0000)]
Avoid a build warning.

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

16 years agoETRAX-FS board: Add more flash and internal memory. Select interrupt nr for the
edgar_igl [Fri, 2 May 2008 22:38:53 +0000 (22:38 +0000)]
ETRAX-FS board: Add more flash and internal memory. Select interrupt nr for the

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

16 years agoETRAX timers: Improve the support for timer1 and let the board-setup choose irq nr.
edgar_igl [Fri, 2 May 2008 22:32:02 +0000 (22:32 +0000)]
ETRAX timers: Improve the support for timer1 and let the board-setup choose irq nr.

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

16 years agoETRAX serial port:
edgar_igl [Fri, 2 May 2008 22:21:55 +0000 (22:21 +0000)]
ETRAX serial port:
* Simulate basic interrupt driven serial io.
* Connect to qemu char dev.

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

16 years agoCRIS updates:
edgar_igl [Fri, 2 May 2008 22:16:17 +0000 (22:16 +0000)]
CRIS updates:
* Support both the I and D MMUs and improve the accuracy of the MMU model.
* Handle the automatic user/kernel stack pointer switching when leaving or entering user mode.
* Move the CCS evaluation into helper funcs.
* Make sure user-mode cannot change flags only writeable in kernel mode.
* More conversion of the translator into TCG.
* Handle exceptions while in a delayslot.

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

16 years agoCRIS: Make CCS related tests pass in system simulation by masking off flags not relat...
edgar_igl [Fri, 2 May 2008 21:13:21 +0000 (21:13 +0000)]
CRIS: Make CCS related tests pass in system simulation by masking off flags not related to the tests.

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

16 years agoCRIS: Correct typo in test for moverm.
edgar_igl [Fri, 2 May 2008 21:08:33 +0000 (21:08 +0000)]
CRIS: Correct typo in test for moverm.

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

16 years agoAudio endianness and mutex usage fixes (malc.git).
balrog [Fri, 2 May 2008 02:24:55 +0000 (02:24 +0000)]
Audio endianness and mutex usage fixes (malc.git).

From http://repo.or.cz/w/qemu/malc.git?a=shortlog;h=refs/heads/audio :

Implicitly lock the mutex at startup of playback/capture threads, otherwise
pthread_mutex_destroy (in audio_pt_fini) fails with EBUSY.
Endianness fix.
Remove a c&p residue.

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

16 years agoMusicpal: convert to ram_addr_t
balrog [Fri, 2 May 2008 01:35:20 +0000 (01:35 +0000)]
Musicpal: convert to ram_addr_t

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

16 years agoFDC: Fix data transfer len (Hervé Poussineau)
blueswir1 [Thu, 1 May 2008 19:05:12 +0000 (19:05 +0000)]
FDC: Fix data transfer len (Hervé Poussineau)

In floppy controller, transfer data len is not correctly calculated.
We should read up to the last sector specified by the caller, and not up to
the last sector of the floppy.

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

16 years agoFDC: Fix buffer overflow (Hervé Poussineau)
blueswir1 [Thu, 1 May 2008 19:03:31 +0000 (19:03 +0000)]
FDC: Fix buffer overflow (Hervé Poussineau)

In floppy controller, programming PIO writes which are more than one sector
long leads to a buffer overflow of the fdtrl->fifo[] array.

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

16 years agoImproved large memory support
blueswir1 [Thu, 1 May 2008 18:21:46 +0000 (18:21 +0000)]
Improved large memory support

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

16 years agoFix incorrect argument types.
pbrook [Thu, 1 May 2008 12:04:35 +0000 (12:04 +0000)]
Fix incorrect argument types.

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

16 years agoFDC fix 10/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:18:58 +0000 (16:18 +0000)]
FDC fix 10/10 (Hervé Poussineau):
- Replaces access to cur_drv field by macros.

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

16 years agoFDC fix 9/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:18:26 +0000 (16:18 +0000)]
FDC fix 9/10 (Hervé Poussineau):
- Supports up to 4 floppy drives if MAX_FD is set to 4.

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

16 years agoFDC fix 8/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:17:42 +0000 (16:17 +0000)]
FDC fix 8/10 (Hervé Poussineau):
- Replaces bootsel field by the whole tdr register. It may be easier if we want to later add support for tapes.

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

16 years agoFDC fix 7/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:17:08 +0000 (16:17 +0000)]
FDC fix 7/10 (Hervé Poussineau):
- Removes useless fields in fdrive_t structure.
- Adds a message when bdrv_read/bdrv_write calls fail.
- Rename int_status to status0.
- Replace some constants by value names.

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

16 years agoFDC fix 6/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:16:30 +0000 (16:16 +0000)]
FDC fix 6/10 (Hervé Poussineau):
- Stores controller state in MSR register instead of internal state field. This simplifies the fdctrl_read_main_status() function, which may be called in some tight loops.

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

16 years agoFDC fix 5/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:15:53 +0000 (16:15 +0000)]
FDC fix 5/10 (Hervé Poussineau):
- Better handling of DOR register. DOR register drives external motors, but it not limited to existing drives.
- Use FD_DOR_nRESET flag instead of internal FD_CTRL_RESET flag.
- Support writing to DOR register even in reset mode (as said in specification)

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

16 years agoFDC fix 4/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:15:12 +0000 (16:15 +0000)]
FDC fix 4/10 (Hervé Poussineau):
- Handles correctly FD_MSR_NONDMA/FD_DOR_NONDMA flags, and uses them when possible. Fixes a problem with SPECIFY command.

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

16 years agoFDC fix 3/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:14:15 +0000 (16:14 +0000)]
FDC fix 3/10 (Hervé Poussineau):
- Fixes status A and status B registers. It removes one Sun4m mutation. Also removes the internal FD_CTRL_INTR flag.

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

16 years agoFDC fix 2/10 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:13:36 +0000 (16:13 +0000)]
FDC fix 2/10 (Hervé Poussineau):
- Extract seeking to next sector handling in a function. Add a sector seek in PIO read and write modes

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

16 years agoFDC fix 1/12 (Hervé Poussineau):
blueswir1 [Tue, 29 Apr 2008 16:12:30 +0000 (16:12 +0000)]
FDC fix 1/12 (Hervé Poussineau):
- Adds a command lookup table, as suggested by Fabrice at http://lists.gnu.org/archive/html/qemu-devel/2008-04/msg00143.html
- This also moves initialization functions at the bottom of the file to prevent multiple forward declarations.

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

16 years agoRevert v4260, breaks Sparc32
blueswir1 [Tue, 29 Apr 2008 16:08:54 +0000 (16:08 +0000)]
Revert v4260, breaks Sparc32

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

16 years agoDescribe the format= option in the --help output. List the accepted
aurel32 [Tue, 29 Apr 2008 05:58:01 +0000 (05:58 +0000)]
Describe the format= option in the --help output. List the accepted
values with format=?.

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

16 years agoFix wrong type in printf(), introduced in revision 4265
aurel32 [Mon, 28 Apr 2008 20:26:54 +0000 (20:26 +0000)]
Fix wrong type in printf(), introduced in revision 4265

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

16 years agoadd format= to drive options (CVE-2008-2004)
aurel32 [Mon, 28 Apr 2008 20:26:45 +0000 (20:26 +0000)]
add format= to drive options (CVE-2008-2004)

It is possible for a guest with a raw formatted disk image to write a
header to that disk image describing another format (such as qcow2).
Stopping and subsequent restart of the guest will cause qemu to detect
that format, and could allow the guest to read any host file if qemu is
sufficiently privileged (typical in virt environments).

The patch defaults to existing behaviour (probing based on file contents),
so it still requires the mgmt app (e.g. libvirt xml) to pass a new
"format=raw" parameter for raw disk images.

Originally noted by Avi Kivity, patch from Chris Wright.

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

16 years agoFix a typo introduced in revision 4272
aurel32 [Mon, 28 Apr 2008 08:54:59 +0000 (08:54 +0000)]
Fix a typo introduced in revision 4272

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

16 years agoBIOS: Reenable processor SSDT generation. Don't advertise ACPI C2 or C3
aurel32 [Mon, 28 Apr 2008 08:54:51 +0000 (08:54 +0000)]
BIOS: Reenable processor SSDT generation. Don't advertise ACPI C2 or C3
support. Thanks to Avi Kivity for the pointer.

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

16 years agoFactorize code in translate.c
aurel32 [Mon, 28 Apr 2008 00:32:32 +0000 (00:32 +0000)]
Factorize code in translate.c

(Glauber Costa)

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

16 years agoqemu ppc uic: Order IRQ bit number as described in the UIC documentation.
aurel32 [Mon, 28 Apr 2008 00:00:24 +0000 (00:00 +0000)]
qemu ppc uic: Order IRQ bit number as described in the UIC documentation.

(Hollis Blanchard)

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

16 years agoFix a typo in cpu_physical_memory_rw()
aurel32 [Sun, 27 Apr 2008 23:53:45 +0000 (23:53 +0000)]
Fix a typo in cpu_physical_memory_rw()

(Samuel Thibault)

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

16 years agoAdd a monitor command to raise NMI
aurel32 [Sun, 27 Apr 2008 23:52:12 +0000 (23:52 +0000)]
Add a monitor command to raise NMI

(Jan Kiszka)

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

16 years agobios: disable processor SSDT generation. Fixes high idle load on
aurel32 [Sun, 27 Apr 2008 23:46:00 +0000 (23:46 +0000)]
bios: disable processor SSDT generation. Fixes high idle load on
x86/x86-64.

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

16 years agomusicpal: Fix output level of 8-bit samples (Jan Kiszka).
balrog [Sun, 27 Apr 2008 23:31:40 +0000 (23:31 +0000)]
musicpal: Fix output level of 8-bit samples (Jan Kiszka).

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

16 years agoIgnore the wrapping of acpi timer counter again.
balrog [Sun, 27 Apr 2008 22:57:10 +0000 (22:57 +0000)]
Ignore the wrapping of acpi timer counter again.

Revert problematic change to restore system_powerdown.

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

16 years agoTreat DNS a special case among special addresses in slirp (Jason Wessel).
balrog [Sun, 27 Apr 2008 21:45:18 +0000 (21:45 +0000)]
Treat DNS a special case among special addresses in slirp (Jason Wessel).

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

16 years agoFix a regression introduced by my previous commit, ram_size is now
aurel32 [Sun, 27 Apr 2008 21:39:40 +0000 (21:39 +0000)]
Fix a regression introduced by my previous commit, ram_size is now
unsigned.

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

16 years agoUse correct types to enable > 2G support, based on a patch from
aurel32 [Sun, 27 Apr 2008 21:12:55 +0000 (21:12 +0000)]
Use correct types to enable > 2G support, based on a patch from
Anthony Liguori.

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

16 years agoRevert wrong changes
blueswir1 [Sun, 27 Apr 2008 16:43:11 +0000 (16:43 +0000)]
Revert wrong changes

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

16 years agoFix broken TCX vram, restore Sun4u PROM_SIZE_MAX
blueswir1 [Sun, 27 Apr 2008 15:29:18 +0000 (15:29 +0000)]
Fix broken TCX vram, restore Sun4u PROM_SIZE_MAX

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

16 years agoIO ports registration errors are fatal errors.
balrog [Sat, 26 Apr 2008 21:11:22 +0000 (21:11 +0000)]
IO ports registration errors are fatal errors.

Revert previous change that shouldn't have gone in alone (or at all).

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