sdk/emulator/qemu.git
17 years agoSquash logic bugs while they are fresh...
ths [Fri, 30 Mar 2007 17:48:00 +0000 (17:48 +0000)]
Squash logic bugs while they are fresh...

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

17 years agoSanitize mips exception handling.
ths [Fri, 30 Mar 2007 16:44:54 +0000 (16:44 +0000)]
Sanitize mips exception handling.

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

17 years agoFix build failure.
ths [Fri, 30 Mar 2007 16:41:55 +0000 (16:41 +0000)]
Fix build failure.

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

17 years agoFix rfi instruction: do not depend on current execution mode
j_mayer [Fri, 30 Mar 2007 10:22:46 +0000 (10:22 +0000)]
Fix rfi instruction: do not depend on current execution mode
 but on the execution mode that will be effective after the return.
Add rfci, rfdi and rfmci for BookE PowerPC.
Extend mfdcr / mtdcr and implement mfdrcx / mtdcrx.

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

17 years agoFix / update PowerPC BookE definitions.
j_mayer [Fri, 30 Mar 2007 10:07:33 +0000 (10:07 +0000)]
Fix / update PowerPC BookE definitions.

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

17 years agoNew model for PowerPC CPU hardware interrupt events:
j_mayer [Fri, 30 Mar 2007 09:38:04 +0000 (09:38 +0000)]
New model for PowerPC CPU hardware interrupt events:
move all PowerPC specific code into target-ppc/helper.c to avoid polluting
the common code in cpu-exec.c. This makes implementation of new features
(ie embedded PowerPC timers, critical interrupts, ...) easier.
This also avoid hardcoding the IRQ callback in the OpenPIC controller,
making it more easily reusable and allowing cascading.

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

17 years agoSolaris host compilation fix by Shaddy Baddah.
j_mayer [Wed, 28 Mar 2007 20:43:46 +0000 (20:43 +0000)]
Solaris host compilation fix by Shaddy Baddah.

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

17 years agoqemu_create_pidfile implementation for Win32, based on a patch by
ths [Sun, 25 Mar 2007 21:33:06 +0000 (21:33 +0000)]
qemu_create_pidfile implementation for Win32, based on a patch by
Carlos O'Donell.

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

17 years agoMove determination of AIOLIBS until after all configure options have been
ths [Sun, 25 Mar 2007 20:55:00 +0000 (20:55 +0000)]
Move determination of AIOLIBS until after all configure options have been
handled. By Carlos O'Donell.

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

17 years agoFix segfault with -nographic, by Enache Adrian.
ths [Sun, 25 Mar 2007 20:27:04 +0000 (20:27 +0000)]
Fix segfault with -nographic, by Enache Adrian.

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

17 years agoTypo in configure, by Nicholas Sauzede.
ths [Sun, 25 Mar 2007 16:15:21 +0000 (16:15 +0000)]
Typo in configure, by Nicholas Sauzede.

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

17 years agoImproved kqemu error message, by Robert Millan.
ths [Sun, 25 Mar 2007 16:14:07 +0000 (16:14 +0000)]
Improved kqemu error message, by Robert Millan.

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

17 years agoWindows sockets like to be different. Inspired by a patch from Alex Consul.
ths [Sun, 25 Mar 2007 15:58:03 +0000 (15:58 +0000)]
Windows sockets like to be different. Inspired by a patch from Alex Consul.

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

17 years agoSparc32/64 CPU selection
blueswir1 [Sun, 25 Mar 2007 07:55:52 +0000 (07:55 +0000)]
Sparc32/64 CPU selection

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

17 years agoOne more bit of mips CPU configuration, and support for early 4KEc
ths [Sat, 24 Mar 2007 23:36:18 +0000 (23:36 +0000)]
One more bit of mips CPU configuration, and support for early 4KEc
which implemented only MIPS32R1. Thanks to Stefan Weil to insist he's
right on that. :-)

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

17 years agoUpgrade Sparc FPU version (based on patch by Aurelien Jarno)
blueswir1 [Sat, 24 Mar 2007 13:24:09 +0000 (13:24 +0000)]
Upgrade Sparc FPU version (based on patch by Aurelien Jarno)

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

17 years agoSparc tagged operations (Aurelien Jarno)
blueswir1 [Fri, 23 Mar 2007 20:01:20 +0000 (20:01 +0000)]
Sparc tagged operations (Aurelien Jarno)

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

17 years agoAdd missing PowerPC 64 instructions
j_mayer [Fri, 23 Mar 2007 09:45:27 +0000 (09:45 +0000)]
Add missing PowerPC 64 instructions
PowerPC 64 fixes.

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

17 years agoFix debug printf: we need different macros for target_ulong prints
j_mayer [Fri, 23 Mar 2007 09:40:22 +0000 (09:40 +0000)]
Fix debug printf: we need different macros for target_ulong prints
                  and GPR ones, as the lengths can be different.

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

17 years agoFix enough FPU/R2 support to get 24Kf going.
ths [Fri, 23 Mar 2007 00:43:28 +0000 (00:43 +0000)]
Fix enough FPU/R2 support to get 24Kf going.

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

17 years agoPowerPC improvments:
j_mayer [Thu, 22 Mar 2007 22:41:50 +0000 (22:41 +0000)]
PowerPC improvments:
- add missing 64 bits rotate instructions
- safely define TARGET_PPCSPE when 64 bits registers are used
  a separate target will be needed to use it in 32 bits mode on 32 bits hosts.

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

17 years agoPowerPC bugfixes:
j_mayer [Thu, 22 Mar 2007 22:17:08 +0000 (22:17 +0000)]
PowerPC bugfixes:
- must clear carry bit when doing addic with a zero immediate value
- fix missing RETURN in micro-operation that would lead to random failures
  and crashes
- add USE_PRECISE_EMULATION compilation-time option to choose between
  getting exact floating point results and fast but less accurate computation.

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

17 years agoFix fcntl64 logic bug, by Kirill A. Shutemov.
ths [Thu, 22 Mar 2007 15:08:55 +0000 (15:08 +0000)]
Fix fcntl64 logic bug, by Kirill A. Shutemov.

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

17 years agoWin32 build fix. FIXME: This disables locking of the pidfile, a
ths [Thu, 22 Mar 2007 12:36:53 +0000 (12:36 +0000)]
Win32 build fix. FIXME: This disables locking of the pidfile, a
Win32 replacement of lockf should be used here.

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

17 years agoFix Sparc branches, original patch by Aurelien Jarno
blueswir1 [Wed, 21 Mar 2007 19:45:50 +0000 (19:45 +0000)]
Fix Sparc branches, original patch by Aurelien Jarno

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

17 years agoMove mips CPU specific initialization to translate_init.c.
ths [Wed, 21 Mar 2007 11:04:42 +0000 (11:04 +0000)]
Move mips CPU specific initialization to translate_init.c.

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

17 years agoFix compilation on 32 bits hosts (pb reported by Thiemo Seufer)
j_mayer [Wed, 21 Mar 2007 08:21:02 +0000 (08:21 +0000)]
Fix compilation on 32 bits hosts (pb reported by Thiemo Seufer)

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

17 years agoOoops... Typo.
j_mayer [Tue, 20 Mar 2007 22:25:37 +0000 (22:25 +0000)]
Ooops... Typo.

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

17 years agoPowerPC 2.03 SPE extension - first pass.
j_mayer [Tue, 20 Mar 2007 22:11:31 +0000 (22:11 +0000)]
PowerPC 2.03 SPE extension - first pass.

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

17 years agoAdd missing softfloat helpers.
j_mayer [Tue, 20 Mar 2007 22:10:42 +0000 (22:10 +0000)]
Add missing softfloat helpers.

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

17 years agofcntl64 fix, by Kirill A. Shutemov.
ths [Tue, 20 Mar 2007 21:50:52 +0000 (21:50 +0000)]
fcntl64 fix, by Kirill A. Shutemov.

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

17 years agoSlavIO Counter-Timers fix, by Aurelien Jarno.
ths [Tue, 20 Mar 2007 16:54:50 +0000 (16:54 +0000)]
SlavIO Counter-Timers fix, by Aurelien Jarno.

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

17 years agoSlavIO interrupt controller fix, by Aurelien Jarno.
ths [Tue, 20 Mar 2007 16:52:54 +0000 (16:52 +0000)]
SlavIO interrupt controller fix, by Aurelien Jarno.

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

17 years agoVMMouse Emulation, by Anthony Liguori.
ths [Tue, 20 Mar 2007 16:45:27 +0000 (16:45 +0000)]
VMMouse Emulation, by Anthony Liguori.

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

17 years agoBarf on branches/jumps in branch delay slots. Spotted by Stefan Weil.
ths [Mon, 19 Mar 2007 22:15:30 +0000 (22:15 +0000)]
Barf on branches/jumps in branch delay slots. Spotted by Stefan Weil.

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

17 years agoDefine gen_intermediate_code_internal as "static inline".
ths [Mon, 19 Mar 2007 21:46:06 +0000 (21:46 +0000)]
Define gen_intermediate_code_internal as "static inline".

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

17 years agoFix call to generated code on SPARC, by Juergen Keil.
ths [Mon, 19 Mar 2007 20:39:49 +0000 (20:39 +0000)]
Fix call to generated code on SPARC, by Juergen Keil.

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

17 years agoFix qemu crash due to sparc division-by-zero, by Aurelien Jarno.
ths [Mon, 19 Mar 2007 19:16:00 +0000 (19:16 +0000)]
Fix qemu crash due to sparc division-by-zero, by Aurelien Jarno.

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

17 years agoFix big endian host operation, by Ben Taylor and Igor Kovalenko.
ths [Mon, 19 Mar 2007 18:20:28 +0000 (18:20 +0000)]
Fix big endian host operation, by Ben Taylor and Igor Kovalenko.

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

17 years agotrunc() for Solaris 9 / SPARC, by Juergen Keil.
ths [Mon, 19 Mar 2007 16:46:07 +0000 (16:46 +0000)]
trunc() for Solaris 9 / SPARC, by Juergen Keil.

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

17 years agoClose file descriptors when execing network tap setup script, by
ths [Mon, 19 Mar 2007 16:36:43 +0000 (16:36 +0000)]
Close file descriptors when execing network tap setup script, by
Daniel P. Berrange.

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

17 years agoImprove -pidfile option, by Anthony Liguori.
ths [Mon, 19 Mar 2007 15:58:31 +0000 (15:58 +0000)]
Improve -pidfile option, by Anthony Liguori.

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

17 years agoAdd -name option, by Anthony Liguori.
ths [Mon, 19 Mar 2007 15:17:08 +0000 (15:17 +0000)]
Add -name option, by Anthony Liguori.

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

17 years agoSCSI fixes, by Wang Cheng Yeh.
ths [Mon, 19 Mar 2007 14:49:29 +0000 (14:49 +0000)]
SCSI fixes, by Wang Cheng Yeh.

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

17 years agoSPARC host fixes, by Ben Taylor.
ths [Mon, 19 Mar 2007 14:47:40 +0000 (14:47 +0000)]
SPARC host fixes, by Ben Taylor.

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

17 years agoHandling more darwin-user syscalls, by Ilya Shar.
ths [Mon, 19 Mar 2007 13:43:04 +0000 (13:43 +0000)]
Handling more darwin-user syscalls, by Ilya Shar.

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

17 years agoLinux usermode clock_gettime/clock_getres emulation, by Kirill A. Shutemov.
ths [Mon, 19 Mar 2007 13:32:45 +0000 (13:32 +0000)]
Linux usermode clock_gettime/clock_getres emulation, by Kirill A. Shutemov.

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

17 years agoAdd missing header includes.
ths [Mon, 19 Mar 2007 13:09:22 +0000 (13:09 +0000)]
Add missing header includes.

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

17 years agoFix allocation sizes in getpeername/getsockname, spotted by Kirill A. Shutemov.
ths [Mon, 19 Mar 2007 13:05:13 +0000 (13:05 +0000)]
Fix allocation sizes in getpeername/getsockname, spotted by Kirill A. Shutemov.

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

17 years agoSolaris needs -lrt, spotted by Ben Taylor.
ths [Mon, 19 Mar 2007 12:22:40 +0000 (12:22 +0000)]
Solaris needs -lrt, spotted by Ben Taylor.

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

17 years agoSupport -cpu selection for mips usermode emulation. Fix segfault when
ths [Mon, 19 Mar 2007 12:16:29 +0000 (12:16 +0000)]
Support -cpu selection for mips usermode emulation. Fix segfault when
dispaying the -cpu list help.

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

17 years agoAdd -cpu option for linux user emulation.
j_mayer [Mon, 19 Mar 2007 08:08:28 +0000 (08:08 +0000)]
Add -cpu option for linux user emulation.
Only usable for PowerPC and ARM for now.

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

17 years agoDisable compiler options dangerous for op compilation.
ths [Sun, 18 Mar 2007 23:23:31 +0000 (23:23 +0000)]
Disable compiler options dangerous for op compilation.

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

17 years agoA VGA card for the Malta board.
ths [Sun, 18 Mar 2007 22:18:43 +0000 (22:18 +0000)]
A VGA card for the Malta board.

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

17 years agoFix BD flag handling, cause register contents, implement some more bits
ths [Sun, 18 Mar 2007 12:43:40 +0000 (12:43 +0000)]
Fix BD flag handling, cause register contents, implement some more bits
for R2 interrupt handling.

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

17 years agoAs icbi is not a priviledge instruction and is treated as a load by the MMU
j_mayer [Sun, 18 Mar 2007 08:47:10 +0000 (08:47 +0000)]
As icbi is not a priviledge instruction and is treated as a load by the MMU
it needs to be implemented for every MMU translation mode.

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

17 years agoMIPS -cpu selection support, by Herve Poussineau.
ths [Sun, 18 Mar 2007 00:30:29 +0000 (00:30 +0000)]
MIPS -cpu selection support, by Herve Poussineau.

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

17 years agoOHCI USB PXA support (Andrzej Zaborowski).
pbrook [Sat, 17 Mar 2007 16:59:31 +0000 (16:59 +0000)]
OHCI USB PXA support (Andrzej Zaborowski).

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

17 years agoNote FPU enable/disable issue.
ths [Sat, 17 Mar 2007 15:39:48 +0000 (15:39 +0000)]
Note FPU enable/disable issue.

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

17 years agoRemove useless static specifier.
ths [Sat, 17 Mar 2007 15:21:30 +0000 (15:21 +0000)]
Remove useless static specifier.

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

17 years agoBetter ioport debugging output.
ths [Sat, 17 Mar 2007 15:17:58 +0000 (15:17 +0000)]
Better ioport debugging output.

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

17 years agoBetter way to select -lrt, by Andrzei Zaborowski.
ths [Sat, 17 Mar 2007 15:00:37 +0000 (15:00 +0000)]
Better way to select -lrt, by Andrzei Zaborowski.

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

17 years agoDon't fail for "revert to poweron defaults" IDE command, by Carlo
ths [Sat, 17 Mar 2007 14:55:30 +0000 (14:55 +0000)]
Don't fail for "revert to poweron defaults" IDE command, by Carlo
Marcelo Arenas Belon.

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

17 years agoAllow disabling IDE block mode, by Carlo Marcelo Arenas Belon.
ths [Sat, 17 Mar 2007 14:54:15 +0000 (14:54 +0000)]
Allow disabling IDE block mode, by Carlo Marcelo Arenas Belon.

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

17 years agoAdd PowerPC 64 target for tests.
j_mayer [Sat, 17 Mar 2007 14:04:57 +0000 (14:04 +0000)]
Add PowerPC 64 target for tests.
As no PowerPC 64 CPU is implemented, this target can just be used to check that
there is no difference between PowerPC 32 & PowerPC 64 used in 32 bits mode.

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

17 years agoMake it safe to use 64 bits GPR and/or 64 bits host registers.
j_mayer [Sat, 17 Mar 2007 14:02:15 +0000 (14:02 +0000)]
Make it safe to use 64 bits GPR and/or 64 bits host registers.
For "symetry", add 64 bits versions of all modified functions.
As a side effect, add a lot of code provision for PowerPC 64 support.
Move overflow and carry checks in common routines for simple cases.
Add isel and popcntb instructions from PowerPC 2.03 specification.
Remove remaining micro-operations helpers prototypes from op.c.
Fix XER_BC field to be 7 bits long.
Add power management support for PowerPC 603 & 604.
Fix compilation warnings.

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

17 years agoARM register index+writeback fix (Lauro Ramos Venancio).
pbrook [Sat, 17 Mar 2007 01:43:01 +0000 (01:43 +0000)]
ARM register index+writeback fix (Lauro Ramos Venancio).

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

17 years agoUsermode recv syscall fix.
pbrook [Sat, 17 Mar 2007 01:27:24 +0000 (01:27 +0000)]
Usermode recv syscall fix.

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

17 years agoWatchpoint support (previous commit got eaten by Savannah server crash).
pbrook [Fri, 16 Mar 2007 23:58:11 +0000 (23:58 +0000)]
Watchpoint support (previous commit got eaten by Savannah server crash).

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

17 years agoAlign stack when loading bFLT binaries.
pbrook [Thu, 15 Mar 2007 21:56:07 +0000 (21:56 +0000)]
Align stack when loading bFLT binaries.

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

17 years agoSMP half-idle fix.
pbrook [Sun, 11 Mar 2007 18:54:57 +0000 (18:54 +0000)]
SMP half-idle fix.

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

17 years agoARM reabbot support (orginal patch by Aurelien Jarno).
pbrook [Sun, 11 Mar 2007 13:03:18 +0000 (13:03 +0000)]
ARM reabbot support (orginal patch by Aurelien Jarno).

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

17 years agoFix typo in help output.
pbrook [Thu, 8 Mar 2007 03:15:18 +0000 (03:15 +0000)]
Fix typo in help output.
List ARM cpus.

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

17 years agoImplement --cpu for ARM.
pbrook [Thu, 8 Mar 2007 03:04:12 +0000 (03:04 +0000)]
Implement --cpu for ARM.

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

17 years agoGreat PowerPC emulation code resynchronisation and improvments:
j_mayer [Wed, 7 Mar 2007 08:32:30 +0000 (08:32 +0000)]
Great PowerPC emulation code resynchronisation and improvments:
- Add status file to make regression tracking easier
- Move all micro-operations helpers definitions into a separate header:
  should never be seen outside of op.c
- Update copyrights
- Add new / missing PowerPC CPU definitions
- Add definitions for PowerPC BookE
- Add support for PowerPC 6xx/7xx software driven TLBs
  Allow use of PowerPC 603 as an example
- Add preliminary code for POWER, POWER2, PowerPC 403, 405, 440, 601, 602
  and BookE support
- Avoid compiling priviledged only resources support for user-mode emulation
- Remove unused helpers / micro-ops / dead code
- Add instructions usage statistics dump: useful to figure which instructions
  need strong optimizations.
- Micro-operation fixes:
  * add missing RETURN in some micro-ops
  * fix prototypes
  * use softfloat routines for all floating-point operations
  * fix tlbie instruction
  * move some huge micro-operations into helpers
- emulation fixes:
  * fix inverted opcodes for fcmpo / fcmpu
  * condition register update is always to be done after the whole
    instruction has completed
  * add missing NIP updates when calling helpers that may generate an
    exception
- optimizations and improvments:
  * optimize very often used instructions (li, mr, rlwixx...)
  * remove specific micro-ops for rarely used instructions
  * add routines for addresses computations to avoid bugs due to multiple
    different implementations
  * fix TB linking: do not reset T0 at the end of every TB.

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

17 years agoSimple u-boot image loading support.
pbrook [Tue, 6 Mar 2007 23:52:01 +0000 (23:52 +0000)]
Simple u-boot image loading support.

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

17 years agoFix GT-64xxx PCI mapping, by Aurelien Jarno.
ths [Tue, 6 Mar 2007 20:31:09 +0000 (20:31 +0000)]
Fix GT-64xxx PCI mapping, by Aurelien Jarno.

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

17 years agoFix typo in PCI bridge code.
ths [Tue, 6 Mar 2007 19:36:53 +0000 (19:36 +0000)]
Fix typo in PCI bridge code.

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

17 years agoFix unportable bitfields use which broke pcnet for big endian hosts.
ths [Tue, 6 Mar 2007 18:56:13 +0000 (18:56 +0000)]
Fix unportable bitfields use which broke pcnet for big endian hosts.

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

17 years agoNew -cpu options: choose CPU model for emulated target.
j_mayer [Mon, 5 Mar 2007 19:44:02 +0000 (19:44 +0000)]
New -cpu options: choose CPU model for emulated target.
 Only relevant on PowerPC targets, for now.

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

17 years ago64bit->win32 cross build fix.
pbrook [Sun, 4 Mar 2007 00:52:16 +0000 (00:52 +0000)]
64bit->win32 cross build fix.

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

17 years agoFix configure typo, by Juergen Lock.
ths [Sat, 3 Mar 2007 21:47:02 +0000 (21:47 +0000)]
Fix configure typo, by Juergen Lock.

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

17 years agoMIPS Userland TLS register emulation, by Daniel Jacobowitz.
ths [Fri, 2 Mar 2007 20:48:00 +0000 (20:48 +0000)]
MIPS Userland TLS register emulation, by Daniel Jacobowitz.

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

17 years agoFix wrong interrupt number for the second serial interface.
ths [Fri, 2 Mar 2007 20:36:23 +0000 (20:36 +0000)]
Fix wrong interrupt number for the second serial interface.

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

17 years agoMIPS FPU dynamic activation, part 1, by Herve Poussineau.
ths [Wed, 28 Feb 2007 22:37:42 +0000 (22:37 +0000)]
MIPS FPU dynamic activation, part 1, by Herve Poussineau.

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

17 years agoMention ds1225y support.
ths [Wed, 28 Feb 2007 22:01:13 +0000 (22:01 +0000)]
Mention ds1225y support.

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

17 years agoMake removing IOHandlers safe from within an IOHandler, by Anthony Liguori.
ths [Wed, 28 Feb 2007 21:59:44 +0000 (21:59 +0000)]
Make removing IOHandlers safe from within an IOHandler, by Anthony Liguori.

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

17 years agoDS1225Y nvram device, by Herve Poussineau.
ths [Wed, 28 Feb 2007 21:36:41 +0000 (21:36 +0000)]
DS1225Y nvram device, by Herve Poussineau.

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

17 years agoFix CPU chaining in linux-user emulation, by Gwenole Beauchesne.
ths [Wed, 28 Feb 2007 20:20:53 +0000 (20:20 +0000)]
Fix CPU chaining in linux-user emulation, by Gwenole Beauchesne.

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

17 years ago24C01 / 24C02 EEPROM emulation for Malta, by Stefan Weil.
ths [Wed, 28 Feb 2007 20:04:26 +0000 (20:04 +0000)]
24C01 / 24C02 EEPROM emulation for Malta, by Stefan Weil.

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

17 years agoiDocument ARM RealView board (Andrzej Zaborowski).
pbrook [Wed, 28 Feb 2007 16:25:17 +0000 (16:25 +0000)]
iDocument ARM RealView board (Andrzej Zaborowski).

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

17 years agoCompiler check for byteswap.h instead of hardcoded path.
pbrook [Tue, 27 Feb 2007 21:04:49 +0000 (21:04 +0000)]
Compiler check for byteswap.h instead of hardcoded path.

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

17 years agoInclude LDFLAGS when linking system emulator.
pbrook [Tue, 27 Feb 2007 21:02:54 +0000 (21:02 +0000)]
Include LDFLAGS when linking system emulator.

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

17 years agoFix mips FPU emulation, 32 bit data types are allowed to use odd registers.
ths [Tue, 27 Feb 2007 19:27:51 +0000 (19:27 +0000)]
Fix mips FPU emulation, 32 bit data types are allowed to use odd registers.

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

17 years agoHonor $cross_prefix when searching for suitable gcc.
pbrook [Tue, 27 Feb 2007 01:03:41 +0000 (01:03 +0000)]
Honor $cross_prefix when searching for suitable gcc.

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

17 years agoFix "make install prefix=/somewhere".
pbrook [Tue, 27 Feb 2007 00:52:01 +0000 (00:52 +0000)]
Fix "make install prefix=/somewhere".

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

17 years agoAdd Erwan Velu as contributor for the tftp boot patches.
ths [Fri, 23 Feb 2007 00:34:02 +0000 (00:34 +0000)]
Add Erwan Velu as contributor for the tftp boot patches.

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

17 years agoRevert host_info changes, and don't fail if sysctl is unknown when we
ths [Thu, 22 Feb 2007 20:43:09 +0000 (20:43 +0000)]
Revert host_info changes, and don't fail if sysctl is unknown when we
are on the same host/target, by Pierre d'Herbemont.

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

17 years agoBasic USB device resume (root hub only), by Lonnie Mendez.
ths [Thu, 22 Feb 2007 20:21:33 +0000 (20:21 +0000)]
Basic USB device resume (root hub only), by Lonnie Mendez.

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

17 years agoAllow gdbstub to connect over any serial device.
pbrook [Thu, 22 Feb 2007 01:48:01 +0000 (01:48 +0000)]
Allow gdbstub to connect over any serial device.

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