qemu
15 years agoMerge commit 'origin/riku-devel' into juha-devel
Juha Riihimäki [Fri, 27 Mar 2009 10:02:14 +0000 (12:02 +0200)]
Merge commit 'origin/riku-devel' into juha-devel

15 years agovmstate save/load support in onenand.c
Juha Riihimäki [Fri, 27 Mar 2009 09:57:44 +0000 (11:57 +0200)]
vmstate save/load support in onenand.c

15 years agosupport for booting from onenand on omap3
Juha Riihimäki [Fri, 27 Mar 2009 08:52:45 +0000 (10:52 +0200)]
support for booting from onenand on omap3

15 years agoless intrusive nand support in omap gpmc
Juha Riihimäki [Fri, 27 Mar 2009 08:42:23 +0000 (10:42 +0200)]
less intrusive nand support in omap gpmc

15 years agolinux-user: added ELF coredump support for ARM target
Mika Westerberg [Thu, 26 Mar 2009 11:35:49 +0000 (13:35 +0200)]
linux-user: added ELF coredump support for ARM target

When target process is killed with signal (such signal that
should dump core) a coredump file is created.  This file is
similar than coredump generated by Linux (there are few execption
though).  Current version only supports ARM target coredumps
but it is easy to add support for other targets as it only needs
to define USE_ELF_COREDUMP and provide implementation for
elf_core_copy_regs() function.

See linux-user/elfload.c for more information.

15 years agoUpdate changelog
Riku Voipio [Thu, 26 Mar 2009 12:49:56 +0000 (14:49 +0200)]
Update changelog

15 years agoAdd package for system-qemu
Riku Voipio [Thu, 26 Mar 2009 12:45:29 +0000 (14:45 +0200)]
Add package for system-qemu

15 years agosb1-qemu: create more scratchbox-like package
Jussi Hakala [Mon, 23 Mar 2009 14:48:24 +0000 (16:48 +0200)]
sb1-qemu: create more scratchbox-like package

15 years agoWhitespace cleanup
Riku Voipio [Thu, 26 Mar 2009 12:30:56 +0000 (14:30 +0200)]
Whitespace cleanup

By Jussi Hakala

15 years agorenovate debian/rules
Riku Voipio [Thu, 26 Mar 2009 12:29:07 +0000 (14:29 +0200)]
renovate debian/rules

15 years agorevert to original implementation of sbox-call
Jussi Hakala [Tue, 24 Mar 2009 16:42:18 +0000 (18:42 +0200)]
revert to original implementation of sbox-call

15 years agoomap3 spi fifo behavior updates
Juha Riihimäki [Thu, 26 Mar 2009 10:37:03 +0000 (12:37 +0200)]
omap3 spi fifo behavior updates

15 years agointroduce flag to reduce number of mapped i/o regions
Juha Riihimäki [Thu, 26 Mar 2009 08:52:35 +0000 (10:52 +0200)]
introduce flag to reduce number of mapped i/o regions

15 years agoMake it possible to attach smc91x to memory controllers
Riku Voipio [Wed, 25 Mar 2009 16:46:08 +0000 (18:46 +0200)]
Make it possible to attach smc91x to memory controllers

To register smc91x properly under omap gpmc, we need
to not to register the physical memory in smc91x
init itself. Add a new parameter phys_alloc and use
it everywhere.

15 years agomcspi changes made us run out of iomem areas..
Riku Voipio [Wed, 25 Mar 2009 16:45:09 +0000 (18:45 +0200)]
mcspi changes made us run out of iomem areas..

15 years agoAdd smc support
Riku Voipio [Tue, 24 Mar 2009 16:39:59 +0000 (18:39 +0200)]
Add smc support

15 years ago1st take on OMAP3 SPI FIFO + OMAP3 GPIO IRQ fix
Juha Riihimäki [Wed, 25 Mar 2009 10:48:41 +0000 (12:48 +0200)]
1st take on OMAP3 SPI FIFO + OMAP3 GPIO IRQ fix

15 years agoomap i2c code clean-up
Juha Riihimäki [Tue, 24 Mar 2009 07:33:54 +0000 (09:33 +0200)]
omap i2c code clean-up

15 years agochange unknown register read/writes to non-fatal
Juha Riihimäki [Tue, 24 Mar 2009 06:29:01 +0000 (08:29 +0200)]
change unknown register read/writes to non-fatal

15 years agoinitial SPI support for OMAP3
Juha Riihimäki [Mon, 23 Mar 2009 13:56:04 +0000 (15:56 +0200)]
initial SPI support for OMAP3

15 years agoMerge commit 'origin/master' into juha-devel
Juha Riihimäki [Mon, 23 Mar 2009 10:48:13 +0000 (12:48 +0200)]
Merge commit 'origin/master' into juha-devel

Conflicts:
hw/beagle.c
hw/omap3.c
hw/usb-musb.c

15 years agofix OMAP3 uart init so it works with vmstate load/save
Juha Riihimäki [Mon, 23 Mar 2009 10:28:56 +0000 (12:28 +0200)]
fix OMAP3 uart init so it works with vmstate load/save

15 years agointroduce "vmstate" image format
Juha Riihimäki [Mon, 23 Mar 2009 10:27:36 +0000 (12:27 +0200)]
introduce "vmstate" image format

this is needed to support vmstate load/save operations as it seems this is not working properly with the only other image format that supports vmstates (qcow2)

15 years agovmstate load/save support for Triton2 & OMAP3 USB
Juha Riihimäki [Mon, 23 Mar 2009 10:25:17 +0000 (12:25 +0200)]
vmstate load/save support for Triton2 & OMAP3 USB

15 years agopacking update 0.10.0-0maemo3
Riku Voipio [Thu, 19 Mar 2009 15:36:13 +0000 (17:36 +0200)]
packing update

15 years agolinux-user: removed unnecessary MAX_SOCK_ADDR checks for socket syscalls
Mika Westerberg [Thu, 19 Mar 2009 14:48:05 +0000 (16:48 +0200)]
linux-user: removed unnecessary MAX_SOCK_ADDR checks for socket syscalls

- This check is not needed because kernel will check whether given
  buffer is too small and there is no upper limit for size of the buffer.

15 years agoConvert musb fifo to 8bit to allow 8/16/32bit access
Riku Voipio [Tue, 17 Mar 2009 15:19:55 +0000 (17:19 +0200)]
Convert musb fifo to 8bit to allow 8/16/32bit access

MUSB allows reading and writing to the fifo in 32/16/8 bit
width. The Linux kernel does this sometimes, most usually at
the end of writing the packet to allow packet to end at a
odd bytecount.

Convert the fifo to 8bit allows removing lots of shifts
which shows that the fifo is more natural as 8bit.

15 years agoMake devices self-powered
Riku Voipio [Tue, 17 Mar 2009 15:15:05 +0000 (17:15 +0200)]
Make devices self-powered

Simplifies power budget negotiation.

15 years agowhitespace cleanup
Riku Voipio [Wed, 18 Mar 2009 12:44:41 +0000 (14:44 +0200)]
whitespace cleanup

15 years agolet beagleboard understand the -m switch
Juha Riihimäki [Tue, 17 Mar 2009 14:03:41 +0000 (16:03 +0200)]
let beagleboard understand the -m switch

make it possible to define amount of SDRAM dynamically on commandline. however this patch will still put all the ram on cs0. also removed the unknown 80kb rom block and use only the publicly defined 32kb boot rom area.

15 years agoarm core emulation performance improvement
Juha Riihimäki [Tue, 17 Mar 2009 11:24:43 +0000 (13:24 +0200)]
arm core emulation performance improvement

check for the simple variable first and only if that matches do the more complex check - should speed up data processing operations a little bit.

15 years agoomap3 prcm clean-up
Juha Riihimäki [Tue, 17 Mar 2009 10:52:07 +0000 (12:52 +0200)]
omap3 prcm clean-up

15 years agoadd some registers kernel reads to the readb func
Riku Voipio [Fri, 13 Mar 2009 15:23:33 +0000 (17:23 +0200)]
add some registers kernel reads to the readb func

15 years agoWe want the level, not value for intr
Riku Voipio [Fri, 13 Mar 2009 15:12:33 +0000 (17:12 +0200)]
We want the level, not value for intr

15 years agoadd trace
Riku Voipio [Thu, 12 Mar 2009 16:19:37 +0000 (18:19 +0200)]
add trace

15 years agoOMAP3 DPLL5 clock fix and added the missing omap3_boot.c.
Juha Riihimäki [Fri, 13 Mar 2009 14:20:42 +0000 (16:20 +0200)]
OMAP3 DPLL5 clock fix and added the missing omap3_boot.c.

15 years agoCorrect usb revision number
Riku Voipio [Thu, 12 Mar 2009 16:14:52 +0000 (18:14 +0200)]
Correct usb revision number

Match omap3530 ES 2.1. Debug more.

15 years ago[v2] fix ARMv7 data processing instructions
Juha Riihimäki [Thu, 12 Mar 2009 13:14:38 +0000 (15:14 +0200)]
[v2] fix ARMv7 data processing instructions

QEMU does not currently emulate the load/move operations to R15 (PC) correctly for ARMv7.
Correct behavior is similar to BX command. This should fix the behavior of all affected commands instead
of just MOV pc,xxx.

15 years agoEnhanced OMAP3 boot ROM emulation
Juha Riihimäki [Thu, 12 Mar 2009 13:12:54 +0000 (15:12 +0200)]
Enhanced OMAP3 boot ROM emulation

Boot ROM emulation is no longer dependent on machine specifics (e.g. type of NAND device attached). Also a kind of stub ROM image is mapped at correct address at POR.

15 years agoOMAP3 clock adjustments & cleanups
Juha Riihimäki [Wed, 11 Mar 2009 08:55:38 +0000 (10:55 +0200)]
OMAP3 clock adjustments & cleanups

Add support for OMAP3 SYS_CLK input selection reconfiguration support. In real life we would also need to support sys_boot pin 6 to choose between oscillator bypass mode (xtalin is square wave) or PRCM internal oscillator (xtalin). Current code is fixed to use the bypass mode with a default setting of 26MHz input. Also, added SYS_CLKOUT1 clock which was missing.

15 years agoadd savevm support in several modules
Juha Riihimäki [Thu, 19 Mar 2009 08:40:38 +0000 (10:40 +0200)]
add savevm support in several modules

15 years agoMerge commit 'origin/riku-devel' into juha-devel
Juha Riihimäki [Wed, 18 Mar 2009 06:48:02 +0000 (08:48 +0200)]
Merge commit 'origin/riku-devel' into juha-devel

15 years agoSupport byte and half-word reads
Riku Voipio [Tue, 17 Mar 2009 15:19:55 +0000 (17:19 +0200)]
Support byte and half-word reads

This method only works for reading the last half-word/byte from the fifo.
Incidentally it's the only one that the kernel does.

Proper fix is making the fifo byte-sized and reading it 1-4bytes at a time.

15 years agoMake devices self-powered
Riku Voipio [Tue, 17 Mar 2009 15:15:05 +0000 (17:15 +0200)]
Make devices self-powered

Simplifies power budget negotiation.

15 years agolet beagleboard understand the -m switch
Juha Riihimäki [Tue, 17 Mar 2009 14:03:41 +0000 (16:03 +0200)]
let beagleboard understand the -m switch

make it possible to define amount of SDRAM dynamically on commandline. however this patch will still put all the ram on cs0. also removed the unknown 80kb rom block and use only the publicly defined 32kb boot rom area.

15 years agoarm core emulation performance improvement
Juha Riihimäki [Tue, 17 Mar 2009 11:24:43 +0000 (13:24 +0200)]
arm core emulation performance improvement

check for the simple variable first and only if that matches do the more complex check - should speed up data processing operations a little bit.

15 years agoomap3 prcm clean-up
Juha Riihimäki [Tue, 17 Mar 2009 10:52:07 +0000 (12:52 +0200)]
omap3 prcm clean-up

15 years ago[v2] fix ARMv7 data processing instructions
Juha Riihimäki [Mon, 16 Mar 2009 12:04:40 +0000 (14:04 +0200)]
[v2] fix ARMv7 data processing instructions

This should fix the behavior of all affected commands instead of just MOV pc,xxx.

15 years agoadd some registers kernel reads to the readb func
Riku Voipio [Fri, 13 Mar 2009 15:23:33 +0000 (17:23 +0200)]
add some registers kernel reads to the readb func

15 years agoWe want the level, not value for intr
Riku Voipio [Fri, 13 Mar 2009 15:12:33 +0000 (17:12 +0200)]
We want the level, not value for intr

15 years agoMerge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel
Riku Voipio [Fri, 13 Mar 2009 14:46:58 +0000 (16:46 +0200)]
Merge branch 'juha-devel' of ssh://voipio@juri/home/voipio/qemu into riku-devel

15 years agoadd trace
Riku Voipio [Thu, 12 Mar 2009 16:19:37 +0000 (18:19 +0200)]
add trace

15 years agoOMAP3 DPLL5 clock fix and added the missing omap3_boot.c.
Juha Riihimäki [Fri, 13 Mar 2009 14:20:42 +0000 (16:20 +0200)]
OMAP3 DPLL5 clock fix and added the missing omap3_boot.c.

15 years ago[v2] ARMv7 mov pc,xxx fix
Juha Riihimäki [Fri, 13 Mar 2009 07:58:54 +0000 (09:58 +0200)]
[v2] ARMv7 mov pc,xxx fix

15 years agoCorrect usb revision number
Riku Voipio [Thu, 12 Mar 2009 16:14:52 +0000 (18:14 +0200)]
Correct usb revision number

Match omap3530 ES 2.1. Debug more.

15 years agoquick fix for ARMv7 "mov pc, <xxx>" commands
Juha Riihimäki [Thu, 12 Mar 2009 13:14:38 +0000 (15:14 +0200)]
quick fix for ARMv7 "mov pc, <xxx>" commands

QEMU does not currently emulate the load/move operations to R15 (PC) correctly for ARMv7. Correct behavior is similar to BX command. This patch fixes the behavior for the special case of "mov<cond> pc, <rm>", "mov<cond> pc, #<const>", "mov<cond> pc, <rm>, <shift>". Other commands (such as "ldr pc, ..." for example) are not fixed.

15 years agoEnhanced OMAP3 boot ROM emulation
Juha Riihimäki [Thu, 12 Mar 2009 13:12:54 +0000 (15:12 +0200)]
Enhanced OMAP3 boot ROM emulation

Boot ROM emulation is no longer dependent on machine specifics (e.g. type of NAND device attached). Also a kind of stub ROM image is mapped at correct address at POR.

15 years agoOMAP3 clock adjustments & cleanups
Juha Riihimäki [Wed, 11 Mar 2009 08:55:38 +0000 (10:55 +0200)]
OMAP3 clock adjustments & cleanups

Add support for OMAP3 SYS_CLK input selection reconfiguration support. In real life we would also need to support sys_boot pin 6 to choose between oscillator bypass mode (xtalin is square wave) or PRCM internal oscillator (xtalin). Current code is fixed to use the bypass mode with a default setting of 26MHz input. Also, added SYS_CLKOUT1 clock which was missing.

15 years agoMerge commit 'garage/master'
Riku Voipio [Tue, 10 Mar 2009 10:25:49 +0000 (12:25 +0200)]
Merge commit 'garage/master'

15 years agobye bye
Riku Voipio [Tue, 10 Mar 2009 10:24:56 +0000 (12:24 +0200)]
bye bye

15 years agoMerge commit 'garage/master'
Riku Voipio [Tue, 10 Mar 2009 10:24:22 +0000 (12:24 +0200)]
Merge commit 'garage/master'

15 years agoMerge commit 'juri/juha-devel' 0.10.0-0maemo2
Riku Voipio [Mon, 9 Mar 2009 15:50:12 +0000 (17:50 +0200)]
Merge commit 'juri/juha-devel'

15 years agoMerge branch 'maemo-test'
Riku Voipio [Mon, 9 Mar 2009 15:49:21 +0000 (17:49 +0200)]
Merge branch 'maemo-test'

15 years agofix merge fallout
Riku Voipio [Mon, 9 Mar 2009 14:33:03 +0000 (16:33 +0200)]
fix merge fallout

15 years agoPackaging update
Riku Voipio [Mon, 9 Mar 2009 13:01:52 +0000 (15:01 +0200)]
Packaging update

15 years agoEmulate only host mode
Riku Voipio [Mon, 9 Mar 2009 13:01:47 +0000 (15:01 +0200)]
Emulate only host mode

15 years agouse Paul Brooks thread variant
Riku Voipio [Mon, 9 Mar 2009 14:22:35 +0000 (16:22 +0200)]
use Paul Brooks thread variant

15 years agoChanged fprintf() -> qemu_log().
Mika Westerberg [Mon, 9 Mar 2009 09:09:13 +0000 (11:09 +0200)]
Changed fprintf() -> qemu_log().

15 years agoMerge branch 'upstream' into maemo-test
Riku Voipio [Mon, 9 Mar 2009 14:03:23 +0000 (16:03 +0200)]
Merge branch 'upstream' into maemo-test

Conflicts:

linux-user/syscall.c
target-arm/helper.c

15 years agocleaning up unnecessary compiler warnings
Juha Riihimäki [Mon, 9 Mar 2009 13:19:39 +0000 (15:19 +0200)]
cleaning up unnecessary compiler warnings

15 years agoPackaging update
Riku Voipio [Mon, 9 Mar 2009 13:01:52 +0000 (15:01 +0200)]
Packaging update

15 years agoEmulate only host mode
Riku Voipio [Mon, 9 Mar 2009 13:01:47 +0000 (15:01 +0200)]
Emulate only host mode

15 years agoChanged fprintf() -> qemu_log().
Mika Westerberg [Mon, 9 Mar 2009 09:09:13 +0000 (11:09 +0200)]
Changed fprintf() -> qemu_log().

15 years agomore cleanups
Juha Riihimäki [Mon, 9 Mar 2009 12:36:32 +0000 (14:36 +0200)]
more cleanups

15 years agomisc clean-ups
Juha Riihimäki [Mon, 9 Mar 2009 11:20:15 +0000 (13:20 +0200)]
misc clean-ups

15 years agomore NAND fixing & tidying
Juha Riihimäki [Mon, 9 Mar 2009 06:31:16 +0000 (08:31 +0200)]
more NAND fixing & tidying

15 years agotarget-ppc: free a tcg temp variable
aurel32 [Mon, 9 Mar 2009 06:27:24 +0000 (06:27 +0000)]
target-ppc: free a tcg temp variable

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agotarget-ppc: add support for reading/writing spefscr
aurel32 [Mon, 9 Mar 2009 06:27:14 +0000 (06:27 +0000)]
target-ppc: add support for reading/writing spefscr

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoqemu-img: fix help message
aurel32 [Sun, 8 Mar 2009 19:49:51 +0000 (19:49 +0000)]
qemu-img: fix help message

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoqemu-img: accept sizes with decimal values
aurel32 [Sun, 8 Mar 2009 19:49:44 +0000 (19:49 +0000)]
qemu-img: accept sizes with decimal values

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoCall Perl directly instead of relying on shebang
blueswir1 [Sun, 8 Mar 2009 19:26:53 +0000 (19:26 +0000)]
Call Perl directly instead of relying on shebang

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

15 years agoMulti-key completion for sendkey
blueswir1 [Sun, 8 Mar 2009 17:42:02 +0000 (17:42 +0000)]
Multi-key completion for sendkey

Allow completion of concatenated key strings for the sendkey command.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

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

15 years agoFix windows build and clean up use of <windows.h>
aliguori [Sun, 8 Mar 2009 16:26:59 +0000 (16:26 +0000)]
Fix windows build and clean up use of <windows.h>

We want to globally define WIN_LEAN_AND_MEAN and WINVER to particular values so
let's do it in OS_CFLAGS.

Then, we can pepper in windows.h includes where using #includes that require it.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

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

15 years agoRename one more _BSD to HOST_BSD (spotted by Hasso Tepper)
blueswir1 [Sun, 8 Mar 2009 15:58:00 +0000 (15:58 +0000)]
Rename one more _BSD to HOST_BSD (spotted by Hasso Tepper)

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

15 years agoRemove unnecessary prefix on SDL_syswm.h. This fixes the build for certain
aliguori [Sun, 8 Mar 2009 15:04:07 +0000 (15:04 +0000)]
Remove unnecessary prefix on SDL_syswm.h.  This fixes the build for certain
installs of SDL.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

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

15 years agoPrune unused TCG_AREGs
blueswir1 [Sun, 8 Mar 2009 14:45:45 +0000 (14:45 +0000)]
Prune unused TCG_AREGs

Remove definitions for TCG_AREGs corresponding to AREG definitions
removed in r6778.

Signed-off-by: Stuart Brady <stuart.brady@gmail.com>

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

15 years agoPrune unused AREGs
blueswir1 [Sun, 8 Mar 2009 12:41:36 +0000 (12:41 +0000)]
Prune unused AREGs

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

15 years agoUse firmware configuration instead of NVRAM (initial patch by Aurelien Jarno)
blueswir1 [Sun, 8 Mar 2009 09:51:29 +0000 (09:51 +0000)]
Use firmware configuration instead of NVRAM (initial patch by Aurelien Jarno)

Use firmware configuration device for boot device, kernel, initrd and
kernel command line parameters on PPC, Sparc32 and Sparc64.

Update OpenBIOS images to r479 which supports the change.

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

15 years agoAdd new entries to firmware configuration device
blueswir1 [Sun, 8 Mar 2009 09:34:26 +0000 (09:34 +0000)]
Add new entries to firmware configuration device

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoRename _BSD to HOST_BSD so that it's more obvious that it's defined by configure
blueswir1 [Sun, 8 Mar 2009 08:23:32 +0000 (08:23 +0000)]
Rename _BSD to HOST_BSD so that it's more obvious that it's defined by configure

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

15 years agotarget-mips: remove dead code
aurel32 [Sun, 8 Mar 2009 00:06:10 +0000 (00:06 +0000)]
target-mips: remove dead code

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agotarget-mips: rename helpers from do_ to helper_
aurel32 [Sun, 8 Mar 2009 00:06:01 +0000 (00:06 +0000)]
target-mips: rename helpers from do_ to helper_

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agodo not pretend to support low voltage operation
aurel32 [Sat, 7 Mar 2009 22:10:40 +0000 (22:10 +0000)]
do not pretend to support low voltage operation

Eliminate "mmc0: SD card claims to support the incompletely defined 'low voltage
range'. This will be ignored." warning. Qemu says the card is a SD card, and SD
spec doesn't define low-voltage cards, so do now pretend to be one.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoFix correct reset value for ARM CP15 c1 auxiliary control register
aurel32 [Sat, 7 Mar 2009 22:10:28 +0000 (22:10 +0000)]
Fix correct reset value for ARM CP15 c1 auxiliary control register

According to ARM Cortex A8 Technical Reference Manual, the reset value for CP15 c1 auxiliary control
register is 2, not zero (page 3.12).

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Acked-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoWork around QEMU GDB stub suboptimality
aurel32 [Sat, 7 Mar 2009 22:00:56 +0000 (22:00 +0000)]
Work around QEMU GDB stub suboptimality

The current XML files claim, on floating point-supporting Power chips,
that $f0 is register 70.  This would be fine, except that register 70
for non-XML-aware GDB is FPSCR.  More importantly, 70 is less than
NUM_CORE_REGS (71) for Power, so a request for register 70 goes to the
"core" register reading routines, rather than the floating-point
register read routine we registered with gdb_register_coprocessor.

Therefore, when we are talking to an XML-aware GDB, we claim that
register has zero width, which causes the rest of QEMU's GDB stub to
send an error back to GDB, which causes GDB to be unable to read the
floating-point registers.  (The problem is also present for SPE
registers and occurs in a slightly different way for Altivec registers.)

The best way to fix this is to have the "core register" XML files for
PPC32 and PPC64 claim that there is a 4-byte register 70, which causes
$f0 to be register 71, and everything works just fine from that point
forward.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoFix off-by-one errors for Altivec and SPE registers
aurel32 [Sat, 7 Mar 2009 22:00:49 +0000 (22:00 +0000)]
Fix off-by-one errors for Altivec and SPE registers

Altivec and SPE both have 34 registers in their register sets, not 35
with a missing register 32.

GDB would ask for register 32 of the Altivec (resp. SPE) registers and
the code would claim it had zero width.  The QEMU GDB stub code would
then return an E14 to GDB, which would complain about not being sure
whether p packets were supported or not.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoUse C99 initializers for BlockDriver methods
aurel32 [Sat, 7 Mar 2009 22:00:29 +0000 (22:00 +0000)]
Use C99 initializers for BlockDriver methods

Consistently use the C99 named initializer format for the BlockDriver
methods to make the method table more readable and more easily
extensible.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoclean build: Fix remaining m68k warnings
aurel32 [Sat, 7 Mar 2009 21:48:08 +0000 (21:48 +0000)]
clean build: Fix remaining m68k warnings

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoclean build: Fix arm build warnings
aurel32 [Sat, 7 Mar 2009 21:48:00 +0000 (21:48 +0000)]
clean build: Fix arm build warnings

Fix remaining arm warnings - except for the mess in the NetWinder FP
emulator.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

15 years agoarm: Fix gic_irq_state.level bitfield type
aurel32 [Sat, 7 Mar 2009 21:47:53 +0000 (21:47 +0000)]
arm: Fix gic_irq_state.level bitfield type

Found while cleaning up compiler warnings: GIC_*_LEVEL macros strongly
suggest that gic_irq_state.level is intended to be per-CPU and not just
a single, global bit. I'm unable to test the effect, but it seems to be
the most reasonable fix for the apparent brokenness.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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