qemu
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

16 years agoErrors while registering ioports are not fatal (Glauber Costa).
balrog [Sat, 26 Apr 2008 16:04:29 +0000 (16:04 +0000)]
Errors while registering ioports are not fatal (Glauber Costa).

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

16 years agoFix scsi-disk sense-key/status confusion (Marcelo Tosatti).
balrog [Sat, 26 Apr 2008 15:56:05 +0000 (15:56 +0000)]
Fix scsi-disk sense-key/status confusion (Marcelo Tosatti).

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

16 years agoFix slirp udp source address contamination (Jason Wessel)
balrog [Sat, 26 Apr 2008 15:33:41 +0000 (15:33 +0000)]
Fix slirp udp source address contamination (Jason Wessel)

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

16 years agoFix sci irq set when acpi timer about to wrap (Dor Laor, Yaniv Kamay).
balrog [Sat, 26 Apr 2008 14:50:48 +0000 (14:50 +0000)]
Fix sci irq set when acpi timer about to wrap (Dor Laor, Yaniv Kamay).

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

16 years agoAdd loop device ioctls (Gary Thomas).
balrog [Sat, 26 Apr 2008 14:44:49 +0000 (14:44 +0000)]
Add loop device ioctls (Gary Thomas).

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

16 years agoFill in touchscreen calibration values from a Palm T|E.
balrog [Sat, 26 Apr 2008 13:33:29 +0000 (13:33 +0000)]
Fill in touchscreen calibration values from a Palm T|E.

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

16 years agoTeach mmap to not overwrite reserved pages and fix brk return value (Richard Purdie).
balrog [Sat, 26 Apr 2008 12:17:34 +0000 (12:17 +0000)]
Teach mmap to not overwrite reserved pages and fix brk return value (Richard Purdie).

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

16 years agoLet WM8750 users write to audio buffer directly.
balrog [Sat, 26 Apr 2008 12:00:18 +0000 (12:00 +0000)]
Let WM8750 users write to audio buffer directly.

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

16 years agoFix USB and HID report descriptors for mouse and tablet.
balrog [Sat, 26 Apr 2008 01:43:07 +0000 (01:43 +0000)]
Fix USB and HID report descriptors for mouse and tablet.

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

16 years agoFix MusicPal LCD on non-32 bpp displays or with -nographic.
balrog [Fri, 25 Apr 2008 00:59:43 +0000 (00:59 +0000)]
Fix MusicPal LCD on non-32 bpp displays or with -nographic.

Prevents an immediate segfault.

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

16 years agoFix spurious VNC disconnects on Win32 (Hervé Poussineau).
balrog [Thu, 24 Apr 2008 23:40:55 +0000 (23:40 +0000)]
Fix spurious VNC disconnects on Win32 (Hervé Poussineau).

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

16 years agoCope with arch-specific page protection flags in mmap (Richard Purdie).
balrog [Thu, 24 Apr 2008 21:11:41 +0000 (21:11 +0000)]
Cope with arch-specific page protection flags in mmap (Richard Purdie).

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

16 years agoImprove audio api use in WM8750.
balrog [Thu, 24 Apr 2008 21:01:40 +0000 (21:01 +0000)]
Improve audio api use in WM8750.

These are changes from
http://svn.openmoko.org/trunk/src/host/qemu-neo1973/hw/wm8753.c that I
forgot to push to WM8750.  Some were suggested by malc.

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

16 years agoARM: Marvell 88w8618 / MusicPal emulation (Jan Kiszka).
balrog [Thu, 24 Apr 2008 19:21:53 +0000 (19:21 +0000)]
ARM: Marvell 88w8618 / MusicPal emulation (Jan Kiszka).

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

16 years agoStellaris boards really aren't that big!
pbrook [Thu, 24 Apr 2008 18:34:18 +0000 (18:34 +0000)]
Stellaris boards really aren't that big!

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

16 years agoRAM usage information in machine definition.
balrog [Thu, 24 Apr 2008 17:59:27 +0000 (17:59 +0000)]
RAM usage information in machine definition.

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

16 years agoFix irq handling (Hervé Poussineau)
blueswir1 [Thu, 24 Apr 2008 17:20:25 +0000 (17:20 +0000)]
Fix irq handling (Hervé Poussineau)

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

16 years agoCopy Sparc64 firmware when installing (Hervé Poussineau)
blueswir1 [Wed, 23 Apr 2008 19:38:07 +0000 (19:38 +0000)]
Copy Sparc64 firmware when installing (Hervé Poussineau)

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

16 years agoDocument the shift values
blueswir1 [Wed, 23 Apr 2008 17:12:35 +0000 (17:12 +0000)]
Document the shift values

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

16 years agoFix PHYS_ADDR_MASK: upper bits of a PTE are reserved so they are 52 bits
aurel32 [Tue, 22 Apr 2008 21:57:57 +0000 (21:57 +0000)]
Fix PHYS_ADDR_MASK: upper bits of a PTE are reserved so they are 52 bits
long. Thanks to Paul Brook for noticing that.

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

16 years agoIgnore .git and .svn in Makefile, noticed by Stefan Weil.
aurel32 [Tue, 22 Apr 2008 20:45:30 +0000 (20:45 +0000)]
Ignore .git and .svn in Makefile, noticed by Stefan Weil.

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

16 years agoRevert "Use correct types to enable > 2G support" (r4238), it is
aurel32 [Tue, 22 Apr 2008 20:45:18 +0000 (20:45 +0000)]
Revert "Use correct types to enable > 2G support" (r4238), it is
not yet ready.

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

16 years agox86/x86-64 MMU PAE fixes
aurel32 [Tue, 22 Apr 2008 20:37:43 +0000 (20:37 +0000)]
x86/x86-64 MMU PAE fixes

This patch fixes MMU emulation in PAE mode for > 4GB physical addresses:
- a20_mask should have the correct size to not clear the high part of
  the addresses.
- PHYS_ADDR_MASK should not clear the high part of the addresses.
- pdpe, pde and pte could be located anywhere in memory on x86-64, but
  only in the first 4GB on x86, define their pointer to as target_ulong.
- pml4e_addr could be located anywhere in memory, define its pointer
  as uint64_t.
- paddr represents a physical address and thus should be of type
  target_phys_addr_t.

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

16 years agoUse correct types to enable > 2G support, based on a patch from
aurel32 [Tue, 22 Apr 2008 20:37:34 +0000 (20:37 +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@4238 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agobios: add support to memory above the pci hole
aurel32 [Tue, 22 Apr 2008 20:37:21 +0000 (20:37 +0000)]
bios: add support to memory above the pci hole

(Izik Eidus)

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

16 years agoRevert the previous patch
blueswir1 [Tue, 22 Apr 2008 19:05:18 +0000 (19:05 +0000)]
Revert the previous patch

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

16 years agoMove 128-bit float emulation under linux-user including the forgotten file
blueswir1 [Tue, 22 Apr 2008 16:43:39 +0000 (16:43 +0000)]
Move 128-bit float emulation under linux-user including the forgotten file

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

16 years agoMove 128-bit float emulation under linux-user
blueswir1 [Tue, 22 Apr 2008 16:42:40 +0000 (16:42 +0000)]
Move 128-bit float emulation under linux-user

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

16 years agox86: remove load_kernel()
aurel32 [Tue, 22 Apr 2008 06:49:43 +0000 (06:49 +0000)]
x86: remove load_kernel()

(Jan Kiszka)

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

16 years agoInventra MUSB-HDRC host-mode USB.
balrog [Tue, 22 Apr 2008 03:15:10 +0000 (03:15 +0000)]
Inventra MUSB-HDRC host-mode USB.

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

16 years agoHush pointer target signedness warnings from gcc 4.
balrog [Tue, 22 Apr 2008 02:56:20 +0000 (02:56 +0000)]
Hush pointer target signedness warnings from gcc 4.

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

16 years agoFix update region size in EPSON blizzard.
balrog [Tue, 22 Apr 2008 02:52:38 +0000 (02:52 +0000)]
Fix update region size in EPSON blizzard.

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

16 years agoRemove duplicate definitions
blueswir1 [Mon, 21 Apr 2008 16:55:57 +0000 (16:55 +0000)]
Remove duplicate definitions

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

16 years agoUse "mount -o remount" instead of "umount" and "mount /dev/shm",
aurel32 [Sun, 20 Apr 2008 21:10:41 +0000 (21:10 +0000)]
Use "mount -o remount" instead of "umount" and "mount /dev/shm",
which results in emptying this virtual file system.

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

16 years agofix dyngen on HPPA hosts
aurel32 [Sun, 20 Apr 2008 20:19:54 +0000 (20:19 +0000)]
fix dyngen on HPPA hosts

(Stuart Brady)

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

16 years agomore configure cleanups
aurel32 [Sun, 20 Apr 2008 20:19:44 +0000 (20:19 +0000)]
more configure cleanups

(Stuart Brady)

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

16 years agoPCnet: Allow more then two TMDs (Jan Kiszka)
blueswir1 [Sun, 20 Apr 2008 10:59:29 +0000 (10:59 +0000)]
PCnet: Allow more then two TMDs (Jan Kiszka)

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

16 years agoFlash support for mips r4k pseudo-machine, by
ths [Sun, 20 Apr 2008 06:28:28 +0000 (06:28 +0000)]
Flash support for mips r4k pseudo-machine, by
Jean-Christophe Plagniol-Villard.

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

16 years agoPrevent use of an uninitialised value in WM8750 and move buffer flush
balrog [Sun, 20 Apr 2008 03:40:20 +0000 (03:40 +0000)]
Prevent use of an uninitialised value in WM8750 and move buffer flush
to a better place (Jan Kiszka).

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

16 years agoRemove an unused field and fix some non-code typos.
balrog [Sun, 20 Apr 2008 01:03:45 +0000 (01:03 +0000)]
Remove an unused field and fix some non-code typos.

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

16 years agoCorrect more ARM VFP 32/64 and signed/unsigned typos.
balrog [Sun, 20 Apr 2008 00:58:01 +0000 (00:58 +0000)]
Correct more ARM VFP 32/64 and signed/unsigned typos.

Fixes unreadable fonts in Maemo guest.

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

16 years agoOptimize consecutive CFI02 writes by remapping memory lazily (Jan Kiszka).
balrog [Wed, 16 Apr 2008 23:58:02 +0000 (23:58 +0000)]
Optimize consecutive CFI02 writes by remapping memory lazily (Jan Kiszka).

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

16 years agoEmulate address wrap in CFI02 chips mapping (Jan Kiszka).
balrog [Wed, 16 Apr 2008 23:45:36 +0000 (23:45 +0000)]
Emulate address wrap in CFI02 chips mapping (Jan Kiszka).

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

16 years agoAllow a custom unlock address in CFI02 flash (Jan Kiszka).
balrog [Wed, 16 Apr 2008 23:37:15 +0000 (23:37 +0000)]
Allow a custom unlock address in CFI02 flash (Jan Kiszka).

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