qemu
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

16 years ago Fix slirp compilation failure when using a newer gcc
blueswir1 [Thu, 1 Nov 2007 19:23:51 +0000 (19:23 +0000)]
 Fix slirp compilation failure when using a newer gcc

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

16 years agoAdd new files fir strace support, missed in earlier commit.
ths [Thu, 1 Nov 2007 00:13:36 +0000 (00:13 +0000)]
Add new files fir strace support, missed in earlier commit.

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

16 years agoMention userland strace support, and mipssim machine emulation.
ths [Thu, 1 Nov 2007 00:11:47 +0000 (00:11 +0000)]
Mention userland strace support, and mipssim machine emulation.

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

16 years agoStrace for userland emulation, by Stuart Anderson and Thayne Harbaugh.
ths [Thu, 1 Nov 2007 00:07:38 +0000 (00:07 +0000)]
Strace for userland emulation, by Stuart Anderson and Thayne Harbaugh.

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

16 years agoFix CR ops with complement, thanks to Julian Seward for testing
j_mayer [Wed, 31 Oct 2007 22:02:17 +0000 (22:02 +0000)]
Fix CR ops with complement, thanks to Julian Seward for testing
                            and reporting the bug :
* remove bugged CR ops specific micro-ops
* use standard and / or / shift operations instead
* comment not-used-anymore op_store_T1_crf_crf micro-op template.

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

16 years agoAdd copyright and license header.
ths [Wed, 31 Oct 2007 17:14:08 +0000 (17:14 +0000)]
Add copyright and license header.

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

16 years agoCorrect the WBINVD intercept in SVM (Alexander Graf).
balrog [Wed, 31 Oct 2007 02:01:33 +0000 (02:01 +0000)]
Correct the WBINVD intercept in SVM (Alexander Graf).

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

16 years agoHandle 3.7 VNC clients authentication correctly (Dan Kenigsberg).
balrog [Wed, 31 Oct 2007 01:58:56 +0000 (01:58 +0000)]
Handle 3.7 VNC clients authentication correctly (Dan Kenigsberg).

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

16 years agoSet boot sequence from command line (Dan Kenigsberg).
balrog [Wed, 31 Oct 2007 01:54:04 +0000 (01:54 +0000)]
Set boot sequence from command line (Dan Kenigsberg).

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

16 years agoSupport multipart images as input to qemu-img (Salvador Fandino).
balrog [Wed, 31 Oct 2007 01:11:44 +0000 (01:11 +0000)]
Support multipart images as input to qemu-img (Salvador Fandino).

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

16 years agoAdd gcc-3.4.6 to the list of gcc3 versions (Carlo Marcelo Arenas Belon).
balrog [Wed, 31 Oct 2007 01:03:28 +0000 (01:03 +0000)]
Add gcc-3.4.6 to the list of gcc3 versions (Carlo Marcelo Arenas Belon).
Add --disable-sdl to configure's help (Carlo Marcelo Arenas Belon).

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

16 years agoInvalidate TLBs when domains are changed (Matthew Warton).
balrog [Wed, 31 Oct 2007 00:47:13 +0000 (00:47 +0000)]
Invalidate TLBs when domains are changed (Matthew Warton).
Legalise cp15 pid register writes (Matthew Warton).

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

16 years agoOHCI USB isochronous transfers support (Arnon Gilboa).
balrog [Wed, 31 Oct 2007 00:34:21 +0000 (00:34 +0000)]
OHCI USB isochronous transfers support (Arnon Gilboa).

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

16 years agoUse a O_NONBLOCK pipe for iso completion signals for thread-safety, by Arnon Gilboa.
balrog [Wed, 31 Oct 2007 00:27:50 +0000 (00:27 +0000)]
Use a O_NONBLOCK pipe for iso completion signals for thread-safety, by Arnon Gilboa.

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

16 years agox86_64 support in cpu_gdb_read_registers(), by Goran Weinholt.
balrog [Wed, 31 Oct 2007 00:21:35 +0000 (00:21 +0000)]
x86_64 support in cpu_gdb_read_registers(), by Goran Weinholt.

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

16 years agoDeclare function before use, reduces compiler warning noise.
ths [Tue, 30 Oct 2007 23:19:52 +0000 (23:19 +0000)]
Declare function before use, reduces compiler warning noise.

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

16 years agoMiscellaneous VNC related fixes from Xen forwarded by Matthew Kent.
balrog [Tue, 30 Oct 2007 22:38:53 +0000 (22:38 +0000)]
Miscellaneous VNC related fixes from Xen forwarded by Matthew Kent.

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

16 years agoDo not make NETLINK socket connections possible (Alexander Graf).
balrog [Tue, 30 Oct 2007 21:06:14 +0000 (21:06 +0000)]
Do not make NETLINK socket connections possible (Alexander Graf).

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

16 years agoFix two PowerPC FPU emulation bugs (thanks to Aurelien Jarno)
j_mayer [Mon, 29 Oct 2007 21:54:35 +0000 (21:54 +0000)]
Fix two PowerPC FPU emulation bugs (thanks to Aurelien Jarno)

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

16 years agoAdjust s390 addresses (the MSB is defined as "to be ignored").
ths [Mon, 29 Oct 2007 14:39:49 +0000 (14:39 +0000)]
Adjust s390 addresses (the MSB is defined as "to be ignored").

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

16 years agoAdd a qemu_irq_invert() shortcut for inverting a signal.
balrog [Mon, 29 Oct 2007 10:59:29 +0000 (10:59 +0000)]
Add a qemu_irq_invert() shortcut for inverting a signal.

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

16 years agoAdd a TI TSC2102 chip (touchscreen/ADC/audio-CODEC controller).
balrog [Mon, 29 Oct 2007 10:34:01 +0000 (10:34 +0000)]
Add a TI TSC2102 chip (touchscreen/ADC/audio-CODEC controller).
Fix GPIO memory mapping address and register width.

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

16 years agoFix PreP PCI IRQ mapping.
j_mayer [Mon, 29 Oct 2007 10:24:59 +0000 (10:24 +0000)]
Fix PreP PCI IRQ mapping.

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

16 years agoTemporary hack to avoid Qemu crash at PowerPC reset time.
j_mayer [Mon, 29 Oct 2007 10:22:58 +0000 (10:22 +0000)]
Temporary hack to avoid Qemu crash at PowerPC reset time.

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

16 years agoImplement PreP reset port.
j_mayer [Mon, 29 Oct 2007 10:21:12 +0000 (10:21 +0000)]
Implement PreP reset port.

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

16 years agoPowerPC 601 / 620 / 970 need a 1MB firmware.
j_mayer [Mon, 29 Oct 2007 10:19:50 +0000 (10:19 +0000)]
PowerPC 601 / 620 / 970 need a 1MB firmware.
This option is not allowed for PowerMac, as it would overlap with NVRAM.

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

16 years agoPreliminary MIPS64R2 mode.
ths [Mon, 29 Oct 2007 09:38:43 +0000 (09:38 +0000)]
Preliminary MIPS64R2 mode.

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

16 years agoFix logic bug which broke TLBL/TLBS handling somewhat.
ths [Mon, 29 Oct 2007 02:57:19 +0000 (02:57 +0000)]
Fix logic bug which broke TLBL/TLBS handling somewhat.

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

16 years agoImplement OMAP MicroWire controller.
balrog [Mon, 29 Oct 2007 01:50:05 +0000 (01:50 +0000)]
Implement OMAP MicroWire controller.
Fix GPIO interrupt number.
Reorder a couple of variables.

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

16 years agoRestrict CP0_PerfCnt to legal values.
ths [Mon, 29 Oct 2007 00:49:32 +0000 (00:49 +0000)]
Restrict CP0_PerfCnt to legal values.

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

16 years ago* sort the PowerPC target object files
j_mayer [Sun, 28 Oct 2007 23:42:18 +0000 (23:42 +0000)]
* sort the PowerPC target object files
* make PowerPC NVRAM accessors generic to be able to use a MacIO NVRAM
  instead of the M48T59 one
* split PowerMac targets code:
 - move all PowerMac related definitions and prototypes into hw/ppc_mac.h
 - add hw/mac_dbdma.c, hw/mac_nvram.c and macio.c
   which implements shared PowerMac devices
 - define the g3bw machine in a new hw/ppc_oldworld.c file
* Fix the g3bw target:
 - fix the Grackle host PCI device
 - connect the Heathrow PIC to the PowerPC 6xx bus pins

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

16 years agoGive an opaque to the m48t59 direct access routines to make it easier
j_mayer [Sun, 28 Oct 2007 23:33:05 +0000 (23:33 +0000)]
Give an opaque to the m48t59 direct access routines to make it easier
 to use another NVRAM with the same API.

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

16 years agoAdd OMAP Shared GPIO module.
balrog [Sun, 28 Oct 2007 21:02:29 +0000 (21:02 +0000)]
Add OMAP Shared GPIO module.

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

16 years agoImplement missing MIPS supervisor mode bits.
ths [Sun, 28 Oct 2007 19:45:05 +0000 (19:45 +0000)]
Implement missing MIPS supervisor mode bits.

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

16 years agoHandle MMC card insertion/removal/readonly signals.
balrog [Sun, 28 Oct 2007 19:24:52 +0000 (19:24 +0000)]
Handle MMC card insertion/removal/readonly signals.
Hook them up to Palm T|E GPIOs.

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

16 years agoAdd PalmT|E matrix keypad connected to OMAP GPIOs.
balrog [Sun, 28 Oct 2007 18:29:04 +0000 (18:29 +0000)]
Add PalmT|E matrix keypad connected to OMAP GPIOs.

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

16 years agoImplement OMAP1 MPU I/O module.
balrog [Sun, 28 Oct 2007 16:45:01 +0000 (16:45 +0000)]
Implement OMAP1 MPU I/O module.

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

16 years ago Use shared ctpop64 helper
blueswir1 [Sun, 28 Oct 2007 14:35:04 +0000 (14:35 +0000)]
 Use shared ctpop64 helper

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

16 years agoUse cpp to generate correct build dependencies for target objects
j_mayer [Sun, 28 Oct 2007 13:07:12 +0000 (13:07 +0000)]
Use cpp to generate correct build dependencies for target objects
 instead of using incomplete hardcoded ones.

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

16 years agoMake Alpha and PowerPC targets use shared helpers
j_mayer [Sun, 28 Oct 2007 12:54:53 +0000 (12:54 +0000)]
Make Alpha and PowerPC targets use shared helpers
 for clz, clo, ctz, cto and ctpop.

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

16 years agoAdd shared ctz32, cto32, ctz64, cto64,
j_mayer [Sun, 28 Oct 2007 12:52:38 +0000 (12:52 +0000)]
Add shared ctz32, cto32, ctz64, cto64,
 ctpop8, ctpop16, ctpop32 and ctpop64 helpers.

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

16 years agoUse the shiny new clz helpers.
ths [Sun, 28 Oct 2007 01:44:40 +0000 (01:44 +0000)]
Use the shiny new clz helpers.

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

16 years agoLess debug noise from the mipsnet driver.
ths [Sun, 28 Oct 2007 01:43:52 +0000 (01:43 +0000)]
Less debug noise from the mipsnet driver.

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

16 years agoAlpha coding style and inlining fixes.
j_mayer [Sun, 28 Oct 2007 00:56:24 +0000 (00:56 +0000)]
Alpha coding style and inlining fixes.

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

16 years agoPowerPC coding style and inlining fixes.
j_mayer [Sun, 28 Oct 2007 00:55:05 +0000 (00:55 +0000)]
PowerPC coding style and inlining fixes.

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

16 years agoPowerPC floating-point helper typo.
j_mayer [Sat, 27 Oct 2007 23:34:30 +0000 (23:34 +0000)]
PowerPC floating-point helper typo.

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

16 years agoPowerPC float bugfix: 64 bits float mantissa is 52 bits long.
j_mayer [Sat, 27 Oct 2007 17:59:46 +0000 (17:59 +0000)]
PowerPC float bugfix: 64 bits float mantissa is 52 bits long.

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

16 years agoFix PowerPC FPSCR update and floating-point exception generation
j_mayer [Sat, 27 Oct 2007 17:54:30 +0000 (17:54 +0000)]
Fix PowerPC FPSCR update and floating-point exception generation
 in most useful cases.

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

16 years agoPowerPC user-mode fix: MSR is now entirelly set-up in the cpu_reset routine.
j_mayer [Sat, 27 Oct 2007 17:29:35 +0000 (17:29 +0000)]
PowerPC user-mode fix: MSR is now entirelly set-up in the cpu_reset routine.

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

16 years agoFix endianness bug for PowerPC stfiwx instruction.
j_mayer [Sat, 27 Oct 2007 17:18:49 +0000 (17:18 +0000)]
Fix endianness bug for PowerPC stfiwx instruction.

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

16 years agoAdd sharable clz/clo inline functions and use them for the mips target.
ths [Sat, 27 Oct 2007 13:05:54 +0000 (13:05 +0000)]
Add sharable clz/clo inline functions and use them for the mips target.

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

16 years agoThe other half of the mul64 rework. Sorry for the breakage, I committed
ths [Fri, 26 Oct 2007 22:35:02 +0000 (22:35 +0000)]
The other half of the mul64 rework. Sorry for the breakage, I committed
an incomplete version of what I tested.

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

16 years ago Add const etc. to places forgotten from the previous commit
blueswir1 [Fri, 26 Oct 2007 19:34:46 +0000 (19:34 +0000)]
 Add const etc. to places forgotten from the previous commit

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

16 years ago Use const and static as needed, disable unused code
blueswir1 [Fri, 26 Oct 2007 19:01:16 +0000 (19:01 +0000)]
 Use const and static as needed, disable unused code

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

16 years agoMake Slirp statistics gathering and output conditional to LOG_ENABLED
blueswir1 [Fri, 26 Oct 2007 18:42:59 +0000 (18:42 +0000)]
Make Slirp statistics gathering and output conditional to LOG_ENABLED
Add 'info slirp' command to monitor to display statistics
Disable Slirp debugging code by default

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

16 years agoFix Windows build failure, by Stefan Weil.
ths [Fri, 26 Oct 2007 17:21:58 +0000 (17:21 +0000)]
Fix Windows build failure, by Stefan Weil.

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

16 years agoFor consistency, align the address to the cache line before using it,
j_mayer [Fri, 26 Oct 2007 00:55:17 +0000 (00:55 +0000)]
For consistency, align the address to the cache line before using it,
  when invalidating the instruction cache.

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

16 years agoBugfix in PowerPC dcbi instruction:
j_mayer [Fri, 26 Oct 2007 00:48:00 +0000 (00:48 +0000)]
Bugfix in PowerPC dcbi instruction:
 we must do a load before the store, or we'll store random data.
Update cache instructions comments.

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

16 years agoPretty dump for specific PowerPC instructions names.
j_mayer [Fri, 26 Oct 2007 00:46:07 +0000 (00:46 +0000)]
Pretty dump for specific PowerPC instructions names.

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

16 years agoMake PowerPC hypervisor resources able to compile, even if not enabled for now.
j_mayer [Fri, 26 Oct 2007 00:38:37 +0000 (00:38 +0000)]
Make PowerPC hypervisor resources able to compile, even if not enabled for now.

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

16 years agoBugfix: PowerPC 64 slbia never invalidates the first segment entry.
j_mayer [Fri, 26 Oct 2007 00:37:04 +0000 (00:37 +0000)]
Bugfix: PowerPC 64 slbia never invalidates the first segment entry.

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

16 years agoFix PowerPC 64x64 bits multiplication overflow check.
j_mayer [Thu, 25 Oct 2007 23:36:08 +0000 (23:36 +0000)]
Fix PowerPC 64x64 bits multiplication overflow check.

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

16 years agoUse host-utils for Alpha 64x64 bits multiplications.
j_mayer [Thu, 25 Oct 2007 23:34:44 +0000 (23:34 +0000)]
Use host-utils for Alpha 64x64 bits multiplications.

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

16 years agoUse host-utils for PowerPC 64 64x64 bits multiplications.
j_mayer [Thu, 25 Oct 2007 23:28:36 +0000 (23:28 +0000)]
Use host-utils for PowerPC 64 64x64 bits multiplications.

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

16 years agoAdd PowerPC power-management state check callback.
j_mayer [Thu, 25 Oct 2007 23:27:04 +0000 (23:27 +0000)]
Add PowerPC power-management state check callback.

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

16 years agoImplement power-management for all defined PowerPC CPUs.
j_mayer [Thu, 25 Oct 2007 23:14:50 +0000 (23:14 +0000)]
Implement power-management for all defined PowerPC CPUs.
Fix PowerPC 970MP definition.

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

16 years agoRestore a more maintainable version of the 64bit multiply code.
ths [Thu, 25 Oct 2007 23:00:03 +0000 (23:00 +0000)]
Restore a more maintainable version of the 64bit multiply code.

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

16 years agoUpdate PowerPC emulation status file.
j_mayer [Thu, 25 Oct 2007 21:38:16 +0000 (21:38 +0000)]
Update PowerPC emulation status file.

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

16 years agoAllow selection of all defined PowerPC 74xx (aka G4) CPUs.
j_mayer [Thu, 25 Oct 2007 21:37:25 +0000 (21:37 +0000)]
Allow selection of all defined PowerPC 74xx (aka G4) CPUs.

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

16 years agoGprof prooved the PowerPC emulation spent too much time in MSR load and store
j_mayer [Thu, 25 Oct 2007 21:35:50 +0000 (21:35 +0000)]
Gprof prooved the PowerPC emulation spent too much time in MSR load and store
routines. Coming back to a raw MSR storage model then speed-up the emulation.
Improve fast MSR updates (wrtee wrteei and mtriee cases).
Share rfi family instructions helpers code to avoid bug in duplicated code.
Allow entering halt mode as the result of a rfi instruction.
Add a new helper_regs.h file to avoid duplication of special registers
 manipulation routines (currently XER and MSR).

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

16 years agoFix gdb stub for MIPS64.
ths [Thu, 25 Oct 2007 21:30:37 +0000 (21:30 +0000)]
Fix gdb stub for MIPS64.

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

16 years agoFix typo, spotted by Edivaldo de Araujo Pereira.
ths [Wed, 24 Oct 2007 16:11:42 +0000 (16:11 +0000)]
Fix typo, spotted by Edivaldo de Araujo Pereira.

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

16 years agoRemove bogus instruction decode.
ths [Wed, 24 Oct 2007 00:52:07 +0000 (00:52 +0000)]
Remove bogus instruction decode.

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

16 years agoForce proper sign extension for mfc0/mfhc0 on MIPS64.
ths [Wed, 24 Oct 2007 00:10:32 +0000 (00:10 +0000)]
Force proper sign extension for mfc0/mfhc0 on MIPS64.

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

16 years agoFix writable length of the index register.
ths [Tue, 23 Oct 2007 23:58:21 +0000 (23:58 +0000)]
Fix writable length of the index register.

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

16 years agoEnforce proper sign extension for lwl/lwr on MIPS64.
ths [Tue, 23 Oct 2007 23:23:43 +0000 (23:23 +0000)]
Enforce proper sign extension for lwl/lwr on MIPS64.

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

16 years agoFix overflow when multiplying two large positive numbers.
ths [Tue, 23 Oct 2007 23:22:54 +0000 (23:22 +0000)]
Fix overflow when multiplying two large positive numbers.

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

16 years agoFix CLO calculation for MIPS64. And a small code cleanup.
ths [Tue, 23 Oct 2007 23:22:03 +0000 (23:22 +0000)]
Fix CLO calculation for MIPS64. And a small code cleanup.

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

16 years agoUse the standard ASE check for MIPS-3D and MT.
ths [Tue, 23 Oct 2007 17:04:27 +0000 (17:04 +0000)]
Use the standard ASE check for MIPS-3D and MT.

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

16 years agoSwitch bc1any* instructions off if no MIPS-3D is implemented.
ths [Tue, 23 Oct 2007 13:15:33 +0000 (13:15 +0000)]
Switch bc1any* instructions off if no MIPS-3D is implemented.

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

16 years agoSupport tap down script, by Wolfram Gloger.
ths [Sun, 21 Oct 2007 23:20:45 +0000 (23:20 +0000)]
Support tap down script, by Wolfram Gloger.

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

16 years agoBugfix: now PCI NICs really work on PowerPC PreP platform.
j_mayer [Sun, 21 Oct 2007 15:53:01 +0000 (15:53 +0000)]
Bugfix: now PCI NICs really work on PowerPC PreP platform.

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