qemu
16 years agobetter than nothing 64 bit support - added sign extension for TYPE_LONG
bellard [Sun, 11 Nov 2007 19:31:34 +0000 (19:31 +0000)]
better than nothing 64 bit support - added sign extension for TYPE_LONG

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

16 years ago Add SPARCserver 600MP emulation (original patch by Robert Reif)
blueswir1 [Sun, 11 Nov 2007 17:56:38 +0000 (17:56 +0000)]
 Add SPARCserver 600MP emulation (original patch by Robert Reif)

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

16 years agohex numbers must have a leading 0x
bellard [Sun, 11 Nov 2007 17:55:50 +0000 (17:55 +0000)]
hex numbers must have a leading 0x

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

16 years agoremoved invalid use of _INTC_ARRAY
bellard [Sun, 11 Nov 2007 17:51:40 +0000 (17:51 +0000)]
removed invalid use of _INTC_ARRAY

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

16 years agosuppressed invalid TARGET_CMSG_FIRSTHDR macro
bellard [Sun, 11 Nov 2007 17:39:38 +0000 (17:39 +0000)]
suppressed invalid TARGET_CMSG_FIRSTHDR macro

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

16 years agoimproved cmsg handling - improved shm memory code
bellard [Sun, 11 Nov 2007 17:39:18 +0000 (17:39 +0000)]
improved cmsg handling - improved shm memory code

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

16 years agoremoved warning
bellard [Sun, 11 Nov 2007 17:26:45 +0000 (17:26 +0000)]
removed warning

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

16 years agouse -fno-strict-aliasing
bellard [Sun, 11 Nov 2007 17:26:21 +0000 (17:26 +0000)]
use -fno-strict-aliasing

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

16 years agofixed invalid cast
bellard [Sun, 11 Nov 2007 17:25:52 +0000 (17:25 +0000)]
fixed invalid cast

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

16 years agouse correct types
bellard [Sun, 11 Nov 2007 17:23:29 +0000 (17:23 +0000)]
use correct types

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

16 years agoprintf format fixes
bellard [Sun, 11 Nov 2007 17:22:48 +0000 (17:22 +0000)]
printf format fixes

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

16 years ago Fix Sun4u compile
blueswir1 [Sun, 11 Nov 2007 16:51:04 +0000 (16:51 +0000)]
 Fix Sun4u compile

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

16 years agoremoved warnings - fixed arm stack copy bug
bellard [Sun, 11 Nov 2007 16:22:17 +0000 (16:22 +0000)]
removed warnings - fixed arm stack copy bug

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

16 years agoremoved warning
bellard [Sun, 11 Nov 2007 16:05:35 +0000 (16:05 +0000)]
removed warning

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

16 years agomove get_errno() inside do_fcntl()
bellard [Sun, 11 Nov 2007 15:11:19 +0000 (15:11 +0000)]
move get_errno() inside do_fcntl()

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

16 years agono longer use get_errno for do_modify_ldt()
bellard [Sun, 11 Nov 2007 14:57:14 +0000 (14:57 +0000)]
no longer use get_errno for do_modify_ldt()

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

16 years agoFix format mismatch.
pbrook [Sun, 11 Nov 2007 14:52:02 +0000 (14:52 +0000)]
Fix format mismatch.

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

16 years agofixed error codes
bellard [Sun, 11 Nov 2007 14:50:32 +0000 (14:50 +0000)]
fixed error codes

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

16 years ago-strace option
bellard [Sun, 11 Nov 2007 14:46:06 +0000 (14:46 +0000)]
-strace option

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

16 years agoFix PowerPC boot device selection.
j_mayer [Sun, 11 Nov 2007 14:44:28 +0000 (14:44 +0000)]
Fix PowerPC boot device selection.
Fix gcc warning in PowerPC PreP machine init routine.
Add second IDE channel to Heathrow Mac machine (still not handled by OHW).

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

16 years agocompilation fixes
bellard [Sun, 11 Nov 2007 14:43:13 +0000 (14:43 +0000)]
compilation fixes

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

16 years agoFix msr_mask.
pbrook [Sun, 11 Nov 2007 14:36:36 +0000 (14:36 +0000)]
Fix msr_mask.

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

16 years agoLinux user memory access API change (initial patch by Thayne Harbaugh)
bellard [Sun, 11 Nov 2007 14:26:47 +0000 (14:26 +0000)]
Linux user memory access API change (initial patch by Thayne Harbaugh)

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

16 years agofixed invalid type
bellard [Sun, 11 Nov 2007 12:35:55 +0000 (12:35 +0000)]
fixed invalid type

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

16 years agomips_r4k warning fixes.
pbrook [Sun, 11 Nov 2007 12:02:33 +0000 (12:02 +0000)]
mips_r4k warning fixes.

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

16 years agoblock-raw/kqemu fix.
pbrook [Sun, 11 Nov 2007 11:43:27 +0000 (11:43 +0000)]
block-raw/kqemu fix.

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

16 years agoCleanup qemu-img.c.
pbrook [Sun, 11 Nov 2007 03:33:13 +0000 (03:33 +0000)]
Cleanup qemu-img.c.

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

16 years agoSplit block API from vl.h.
pbrook [Sun, 11 Nov 2007 02:51:17 +0000 (02:51 +0000)]
Split block API from vl.h.
Remove QEMU_TOOL. Replace with QEMU_IMG and NEED_CPU_H.
Avoid linking qemu-img against whole system emulatior.

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

16 years agoMore generic boot devices specification, allowing more devices to be specified
j_mayer [Sun, 11 Nov 2007 01:50:45 +0000 (01:50 +0000)]
More generic boot devices specification, allowing more devices to be specified
and avoiding per-target hardcoded limitations.
The machine implementations can then check if the given devices match the
actual hardware implementation and firmware API.

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

16 years agoRemove duplicate i2c.o.
pbrook [Sun, 11 Nov 2007 01:18:28 +0000 (01:18 +0000)]
Remove duplicate i2c.o.

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

16 years agoFix POWER abs & abso computation.
j_mayer [Sun, 11 Nov 2007 00:33:08 +0000 (00:33 +0000)]
Fix POWER abs & abso computation.
Fix PowerPC SPE evabs & evneg (thanks to Fabrice Bellard for reporting the bug)

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

16 years agoOptimize PowerPC overflow flag computation in most useful cases.
j_mayer [Sun, 11 Nov 2007 00:18:34 +0000 (00:18 +0000)]
Optimize PowerPC overflow flag computation in most useful cases.
Use the same routines to check overflow for addo, subfo and PowerPC 405
  multiply and add cases.
Fix carry reset in addme(o) and subfme(o) cases.

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

16 years agoFix typo.
ths [Sun, 11 Nov 2007 00:16:10 +0000 (00:16 +0000)]
Fix typo.

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

16 years agoARMv7 support.
pbrook [Sun, 11 Nov 2007 00:04:49 +0000 (00:04 +0000)]
ARMv7 support.

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

16 years agoAllow selection of PowerPC CPU giving a PVR.
j_mayer [Sat, 10 Nov 2007 23:51:02 +0000 (23:51 +0000)]
Allow selection of PowerPC CPU giving a PVR.
Remove unused pvr_mask field from CPU definition.

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

16 years agoalways use mktimegm
bellard [Sat, 10 Nov 2007 19:36:39 +0000 (19:36 +0000)]
always use mktimegm

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

16 years agoFix Makefile dependencies.
pbrook [Sat, 10 Nov 2007 19:30:52 +0000 (19:30 +0000)]
Fix Makefile dependencies.

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

16 years agoFix build failure.
pbrook [Sat, 10 Nov 2007 19:21:30 +0000 (19:21 +0000)]
Fix build failure.

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

16 years agoAdd dummy m68k board.
pbrook [Sat, 10 Nov 2007 18:03:23 +0000 (18:03 +0000)]
Add dummy m68k board.

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

16 years agoFix m68k FP register debug dumps.
pbrook [Sat, 10 Nov 2007 17:43:49 +0000 (17:43 +0000)]
Fix m68k FP register debug dumps.

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

16 years agoUpdate ARM disassembler.
pbrook [Sat, 10 Nov 2007 17:38:00 +0000 (17:38 +0000)]
Update ARM disassembler.

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

16 years agoFix 64-bit host printf format mismatches.
pbrook [Sat, 10 Nov 2007 16:34:46 +0000 (16:34 +0000)]
Fix 64-bit host printf format mismatches.

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

16 years agoexported display init functions to common code
bellard [Sat, 10 Nov 2007 15:36:21 +0000 (15:36 +0000)]
exported display init functions to common code

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

16 years agoadded cpu_model parameter to cpu_init()
bellard [Sat, 10 Nov 2007 15:15:54 +0000 (15:15 +0000)]
added cpu_model parameter to cpu_init()

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

16 years ago More Sparc64 CPU definitions
blueswir1 [Sat, 10 Nov 2007 09:32:02 +0000 (09:32 +0000)]
 More Sparc64 CPU definitions

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

16 years agoUse FORCE_RET, scrap RETURN which was implemented in target-specific code.
ths [Fri, 9 Nov 2007 23:09:41 +0000 (23:09 +0000)]
Use FORCE_RET, scrap RETURN which was implemented in target-specific code.

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

16 years ago More CPU definitions
blueswir1 [Fri, 9 Nov 2007 19:08:43 +0000 (19:08 +0000)]
 More CPU definitions

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

16 years agoFix typo, spotted by Samuel Thibault.
ths [Fri, 9 Nov 2007 18:17:50 +0000 (18:17 +0000)]
Fix typo, spotted by Samuel Thibault.

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

16 years agoMove kernel loader parameters from the cpu state to being board specific.
ths [Fri, 9 Nov 2007 17:52:11 +0000 (17:52 +0000)]
Move kernel loader parameters from the cpu state to being board specific.

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

16 years agoClean out the N32 macros from target-mips, and introduce MIPS ABI specific
ths [Thu, 8 Nov 2007 18:05:37 +0000 (18:05 +0000)]
Clean out the N32 macros from target-mips, and introduce MIPS ABI specific
defines for linux-user.

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

16 years agoMore .cvsignore.
ths [Thu, 8 Nov 2007 16:44:36 +0000 (16:44 +0000)]
More .cvsignore.

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

16 years agoFormatting fix.
ths [Thu, 8 Nov 2007 16:44:01 +0000 (16:44 +0000)]
Formatting fix.

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

16 years ago.cvsignore dependency files.
ths [Thu, 8 Nov 2007 16:43:05 +0000 (16:43 +0000)]
.cvsignore dependency files.

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

16 years agoRevert "Last AIO Patch" as requested by Fabrice, it is incomplete and
ths [Thu, 8 Nov 2007 16:38:17 +0000 (16:38 +0000)]
Revert "Last AIO Patch" as requested by Fabrice, it is incomplete and
breaks other (non-Windows) systems.

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

16 years agoremoved obsolete x86 code copy support
bellard [Thu, 8 Nov 2007 14:25:03 +0000 (14:25 +0000)]
removed obsolete x86 code copy support

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

16 years agoremoved
bellard [Thu, 8 Nov 2007 14:24:28 +0000 (14:24 +0000)]
removed

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

16 years agoremoved unused code
bellard [Thu, 8 Nov 2007 14:01:49 +0000 (14:01 +0000)]
removed unused code

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

16 years agoadded -cpu option for x86 - fixed glibc hack in case the global variables are moved
bellard [Thu, 8 Nov 2007 13:56:19 +0000 (13:56 +0000)]
added -cpu option for x86 - fixed glibc hack in case the global variables are moved

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

16 years agoadded -cpu option for x86 (initial patch by Dan Kenigsberg)
bellard [Thu, 8 Nov 2007 13:28:47 +0000 (13:28 +0000)]
added -cpu option for x86 (initial patch by Dan Kenigsberg)

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

16 years agouse config-host.h instead of config.h
bellard [Wed, 7 Nov 2007 19:27:18 +0000 (19:27 +0000)]
use config-host.h instead of config.h

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

16 years agofixed QEMU_TOOL tests
bellard [Wed, 7 Nov 2007 19:26:22 +0000 (19:26 +0000)]
fixed QEMU_TOOL tests

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

16 years agoSDL and COCA are no longer target dependent - support for common code compilation
bellard [Wed, 7 Nov 2007 19:25:15 +0000 (19:25 +0000)]
SDL and COCA are no longer target dependent - support for common code compilation

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

16 years agocompile common code once
bellard [Wed, 7 Nov 2007 19:24:02 +0000 (19:24 +0000)]
compile common code once

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

16 years ago CPU specific boot mode (Robert Reif)
blueswir1 [Wed, 7 Nov 2007 17:03:37 +0000 (17:03 +0000)]
 CPU specific boot mode (Robert Reif)

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

16 years agoremoved traces
bellard [Wed, 7 Nov 2007 16:54:42 +0000 (16:54 +0000)]
removed traces

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

16 years agoadded -startdate option
bellard [Wed, 7 Nov 2007 16:24:33 +0000 (16:24 +0000)]
added -startdate option

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

16 years agomoved declarations
bellard [Wed, 7 Nov 2007 16:07:32 +0000 (16:07 +0000)]
moved declarations

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

16 years agoAdd -lpthread flag.
ths [Mon, 5 Nov 2007 13:27:21 +0000 (13:27 +0000)]
Add -lpthread flag.

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

16 years agoFix muls64 prototype to match the actual implementation.
j_mayer [Mon, 5 Nov 2007 13:16:23 +0000 (13:16 +0000)]
Fix muls64 prototype to match the actual implementation.

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

16 years agoCode used by the linux-user targets should not use vl.h.
j_mayer [Mon, 5 Nov 2007 13:01:41 +0000 (13:01 +0000)]
Code used by the linux-user targets should not use vl.h.
Include exec.h instead.

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

16 years agoNo functional changes: remove dead code and fix indentation & wrapping lines.
j_mayer [Mon, 5 Nov 2007 03:11:37 +0000 (03:11 +0000)]
No functional changes: remove dead code and fix indentation & wrapping lines.

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

16 years agoZeroing ITR shouldn't ack irq zero.
balrog [Sun, 4 Nov 2007 22:53:50 +0000 (22:53 +0000)]
Zeroing ITR shouldn't ack irq zero.
Fix PWT & PWL clocks, fix user refcounting for clocks, add 'hsab_ck' and 'usb_w2fc_ck'.
Fix TCMI register addresses.
Implement OMAP McBSP controller and connection to I2S-compatible CODECs.
Add audio support for TSC2102 as an I2S CODEC.
Connect TSC2102 I2S interface to CPU's McBSP1 interface in the Palm Tungsten|E.
Correct '>' instead of '>>' typos.
Implement GPIO PIN_CONTROL register (not in OMAP310 TRM, from OMAP1510).

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

16 years ago Change sysctrl register to 32 bits (original patch by Robert Reif)
blueswir1 [Sun, 4 Nov 2007 17:27:07 +0000 (17:27 +0000)]
 Change sysctrl register to 32 bits (original patch by Robert Reif)

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

16 years agoFix memory corruption: bdrv_read/write API has been changed to take
j_mayer [Sun, 4 Nov 2007 17:17:08 +0000 (17:17 +0000)]
Fix memory corruption: bdrv_read/write API has been changed to take
  nb_sectors instead of len in bytes but the fdc driver has never been fixed.

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

16 years ago Fix Solaris breakage
blueswir1 [Sun, 4 Nov 2007 16:58:07 +0000 (16:58 +0000)]
 Fix Solaris breakage

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

16 years agoAdd register mappings in DSP space (must be accessible for MPU too).
balrog [Sun, 4 Nov 2007 12:19:22 +0000 (12:19 +0000)]
Add register mappings in DSP space (must be accessible for MPU too).
Don't set microwire CSR-busy bit too early.

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

16 years ago Constification
blueswir1 [Sun, 4 Nov 2007 12:00:17 +0000 (12:00 +0000)]
 Constification

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

16 years ago Remove target dependent code
blueswir1 [Sun, 4 Nov 2007 11:59:15 +0000 (11:59 +0000)]
 Remove target dependent code

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

16 years agoMake accesses with wrong width also work as apparently real hardware allows them...
balrog [Sun, 4 Nov 2007 11:42:11 +0000 (11:42 +0000)]
Make accesses with wrong width also work as apparently real hardware allows them when the fault is disabled.
Fix DMA register writes if target_phys_addr_t is 64-bit.
Make more functions static.
A timer hack to make PalmOS run in finite time (uses very short timer periods, much shorter than clocksource tick).
Re-calculate internal clock rates on start-up.

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

16 years agoFix grackle (in fact MPC106) PCI host bridge header
j_mayer [Sun, 4 Nov 2007 08:49:01 +0000 (08:49 +0000)]
Fix grackle (in fact MPC106) PCI host bridge header
 to avoid confusing firmwares and OSes.

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

16 years ago Fix debug statements
blueswir1 [Sun, 4 Nov 2007 07:31:40 +0000 (07:31 +0000)]
 Fix debug statements

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

16 years agoPowerPC 601 need specific callbacks for its BATs setup.
j_mayer [Sun, 4 Nov 2007 02:55:33 +0000 (02:55 +0000)]
PowerPC 601 need specific callbacks for its BATs setup.
Implement PowerPC 601 HID0 register, needed for little-endian mode support.
As a consequence, we need to merge hflags coming from MSR with other ones.
Use little-endian mode from hflags instead of MSR during code translation.

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

16 years agoFor consistency, move muls64 / mulu64 prototypes to host-utils.h
j_mayer [Sun, 4 Nov 2007 02:24:58 +0000 (02:24 +0000)]
For consistency, move muls64 / mulu64 prototypes to host-utils.h
Make x86_64 optimized versions inline.

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

16 years agoImprove PowerPC CPU state dump.
j_mayer [Sun, 4 Nov 2007 01:57:29 +0000 (01:57 +0000)]
Improve PowerPC CPU state dump.
Dump NIP on SPR access faults.

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

16 years agoFix PowerMac NVRAM device.
j_mayer [Sun, 4 Nov 2007 01:16:04 +0000 (01:16 +0000)]
Fix PowerMac NVRAM device.

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

16 years agoFix some compiler warnings.
ths [Sat, 3 Nov 2007 15:12:16 +0000 (15:12 +0000)]
Fix some compiler warnings.

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

16 years agoFix PowerPC high BATs access: BAT number was incorrect.
j_mayer [Sat, 3 Nov 2007 14:23:07 +0000 (14:23 +0000)]
Fix PowerPC high BATs access: BAT number was incorrect.

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

16 years agoPowerPC MMU and exception fixes:
j_mayer [Sat, 3 Nov 2007 13:37:12 +0000 (13:37 +0000)]
PowerPC MMU and exception fixes:
* PowerPC 601 (and probably POWER/POWER2) uses a different BAT format than
  later PowerPC implementation.
* Bugfix in BATs check: must not stop after 4 BATs when more are provided.
* Enable POWER 'rac' instruction.
* Fix exception prefix for all supported PowerPC implementations.
* Fix exceptions, MMU model and bus model for PowerPC 601 & 620.
* Enable PowerPC 620 as it could mostly boot a PreP target.

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

16 years agoFix incorrect PowerPC instruction fetch exception dump.
j_mayer [Sat, 3 Nov 2007 13:22:08 +0000 (13:22 +0000)]
Fix incorrect PowerPC instruction fetch exception dump.

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

16 years agoSplit I^2C controller out of hw/omap.c.
balrog [Sat, 3 Nov 2007 12:50:46 +0000 (12:50 +0000)]
Split I^2C controller out of hw/omap.c.
Insert a list of missing memory mappings from OMAP310 datasheet.
Add missing "rtc" field for RTC.
Correct PWL and PWT register read/write handler pointers.
Add a Changelog entry about OMAP emulation.
Add a qemu-doc snippet about Palm T|E platform.

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

16 years agoImplement OMAP on-chip RTC (Linux guest date/time now matches with host).
balrog [Sat, 3 Nov 2007 12:44:02 +0000 (12:44 +0000)]
Implement OMAP on-chip RTC (Linux guest date/time now matches with host).

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

16 years agoInitial OMAP I^2C controller implementation (communication not tested).
balrog [Sat, 3 Nov 2007 00:51:03 +0000 (00:51 +0000)]
Initial OMAP I^2C controller implementation (communication not tested).
Correct an i2c_start_transfer comment.

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

16 years agoAdd OMAP Pulse-width Tone module.
balrog [Sat, 3 Nov 2007 00:48:26 +0000 (00:48 +0000)]
Add OMAP Pulse-width Tone module.

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

16 years agoImplement OMAP PWL (backlight) module.
balrog [Sat, 3 Nov 2007 00:46:16 +0000 (00:46 +0000)]
Implement OMAP PWL (backlight) module.
Fix GPIO clock name and output level change notifications.

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

16 years agoThe PINT/DAV pin is active low in the chip spec, not inverted on the board.
balrog [Sat, 3 Nov 2007 00:41:31 +0000 (00:41 +0000)]
The PINT/DAV pin is active low in the chip spec, not inverted on the board.
Make changes on known GPIO lines be verbose, initialise GPIO levels.

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

16 years agoDon't print any message when a priviledge exception occurs on mfpvr
j_mayer [Fri, 2 Nov 2007 22:47:50 +0000 (22:47 +0000)]
Don't print any message when a priviledge exception occurs on mfpvr
as the Linux allows applications to read this register.

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

16 years agoFix PowerPC program exception that was broken by FPU exception patches
j_mayer [Fri, 2 Nov 2007 22:35:33 +0000 (22:35 +0000)]
Fix PowerPC program exception that was broken by FPU exception patches
  (bug reported by  Jason Wessel)

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

16 years agoEFAULT - update __get_user() __put_user(), by Thayne Harbaugh.
ths [Fri, 2 Nov 2007 20:24:22 +0000 (20:24 +0000)]
EFAULT - update __get_user() __put_user(), by Thayne Harbaugh.

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

16 years agoFix compiler warnings, by Stefan Weil.
ths [Fri, 2 Nov 2007 19:08:57 +0000 (19:08 +0000)]
Fix compiler warnings, by Stefan Weil.

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

16 years agoEFAULT - verify pages are in cache and are read/write, by Thayne Harbaugh.
ths [Fri, 2 Nov 2007 19:02:07 +0000 (19:02 +0000)]
EFAULT - verify pages are in cache and are read/write, by Thayne Harbaugh.

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