qemu
16 years agoImplement the PowerPC alternate time-base, following the 2.04 specification.
j_mayer [Sun, 30 Sep 2007 00:38:38 +0000 (00:38 +0000)]
Implement the PowerPC alternate time-base, following the 2.04 specification.
Share most code with the time-base management routines.
Remove time-base write routines from user-mode emulation environments.

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

16 years agoDon't hardcode the host architecture name.
ths [Sat, 29 Sep 2007 21:22:33 +0000 (21:22 +0000)]
Don't hardcode the host architecture name.

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

16 years agoUpdate tarbin rule.
ths [Sat, 29 Sep 2007 21:18:26 +0000 (21:18 +0000)]
Update tarbin rule.

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

16 years agoEnable sh4-softmmu and sh4-linux-user builds by default, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:55:21 +0000 (19:55 +0000)]
Enable sh4-softmmu and sh4-linux-user builds by default, by Magnus Damm.

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

16 years agoFix rte opcode, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:52:22 +0000 (19:52 +0000)]
Fix rte opcode, by Magnus Damm.

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

16 years agoAdd FRQCR read support, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:51:40 +0000 (19:51 +0000)]
Add FRQCR read support, by Magnus Damm.

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

16 years agoAdd INTC controller prototype, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:47:44 +0000 (19:47 +0000)]
Add INTC controller prototype, by Magnus Damm.

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

16 years agoStand-alone SCI/SCIF emulation code, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:43:54 +0000 (19:43 +0000)]
Stand-alone SCI/SCIF emulation code, by Magnus Damm.

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

16 years agoStand-alone TMU emulation code, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:40:09 +0000 (19:40 +0000)]
Stand-alone TMU emulation code, by Magnus Damm.

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

16 years agoAdd R2D-PLUS support, by Magnus Damm.
ths [Sat, 29 Sep 2007 19:24:41 +0000 (19:24 +0000)]
Add R2D-PLUS support, by Magnus Damm.

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

16 years agoSupervisor mode implementation, by Aurelien Jarno.
ths [Sat, 29 Sep 2007 19:21:36 +0000 (19:21 +0000)]
Supervisor mode implementation, by Aurelien Jarno.

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

16 years agoLess magic constants.
ths [Sat, 29 Sep 2007 19:19:59 +0000 (19:19 +0000)]
Less magic constants.

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

16 years agoPowerPC emulation optimization:
j_mayer [Sat, 29 Sep 2007 15:02:38 +0000 (15:02 +0000)]
PowerPC emulation optimization:
avoid stopping translation after most SPR updates
when a context-synchronization instruction is also needed.

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

16 years agoCode provision for hypervisor timers resources,
j_mayer [Sat, 29 Sep 2007 13:21:37 +0000 (13:21 +0000)]
Code provision for hypervisor timers resources,
 as described in PowerPC 2.04 specification.

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

16 years agoFix PowerPC target objects dependencies
j_mayer [Sat, 29 Sep 2007 13:20:12 +0000 (13:20 +0000)]
Fix PowerPC target objects dependencies

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

16 years agoProvision for x86_64-linux-user target: needs get_sp_from_cpustate
j_mayer [Sat, 29 Sep 2007 13:12:58 +0000 (13:12 +0000)]
Provision for x86_64-linux-user target: needs get_sp_from_cpustate

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

16 years agoRework PowerPC exceptions model to make it more versatile:
j_mayer [Sat, 29 Sep 2007 13:06:16 +0000 (13:06 +0000)]
Rework PowerPC exceptions model to make it more versatile:
* don't use exception vectors as the exception number.
  Use vectors numbers as defined in the PowerPC embedded specification instead
  and extend this model to cover all emulated PowerPC variants exceptions.
* add some missing exceptions definitions, from PowerPC 2.04 specification
  and actual PowerPC implementations.
* add code provision for hypervisor exceptions handling.
* define exception vectors and prefix in CPUPPCState to emulate BookE exception
  vectors without any hacks.
* define per CPU model valid exception vectors.
* handle all known exceptions in user-mode only emulations.
* fix hardware interrupts priorities in most cases.
* change RET_EXCP macros name into GEN_EXCP as they don't return.
* do not stop translation on most instructions that are not defined as
  context-synchronizing in PowerPC specification.
* fix PowerPC 64 jump targets and link register update when in 32 bits mode.
* Fix PowerPC 464 and 464F definitions.

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

16 years agomake cpu_abort dump cpu state in logfile, which is useful for debugging.
j_mayer [Sat, 29 Sep 2007 12:18:20 +0000 (12:18 +0000)]
make cpu_abort dump cpu state in logfile, which is useful for debugging.

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

16 years agoalways_inline gcc directive can be useful.
j_mayer [Sat, 29 Sep 2007 12:17:25 +0000 (12:17 +0000)]
always_inline gcc directive can be useful.

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

16 years agohost_utils.o may also be useful for user-mode emulation.
j_mayer [Sat, 29 Sep 2007 12:15:39 +0000 (12:15 +0000)]
host_utils.o may also be useful for user-mode emulation.

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

16 years agoDefine the proper bfd_mach to be used by the disassembler for each
j_mayer [Sat, 29 Sep 2007 12:01:46 +0000 (12:01 +0000)]
Define the proper bfd_mach to be used by the disassembler for each
PowerPC emulated CPU.

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

16 years agoChange POWERPC_PPC_GENERIC to POWERPC_DEFAULT.
j_mayer [Sat, 29 Sep 2007 11:51:08 +0000 (11:51 +0000)]
Change POWERPC_PPC_GENERIC to POWERPC_DEFAULT.
Use it as default for workstation targets.
Fix PowerPC 750fl and 750gl definitions.

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

16 years agoFix MIPS FP underflow handling, spotted by Daniel Jacobowitz.
ths [Fri, 28 Sep 2007 19:30:36 +0000 (19:30 +0000)]
Fix MIPS FP underflow handling, spotted by Daniel Jacobowitz.

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

16 years agoBuild fix, ppc64 needs also a get_sp_from_cpustate function now.
ths [Fri, 28 Sep 2007 18:45:59 +0000 (18:45 +0000)]
Build fix, ppc64 needs also a get_sp_from_cpustate function now.

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

16 years agoMove get_sp_from_cpustate from cpu.h to target_signal.h.
ths [Thu, 27 Sep 2007 16:44:32 +0000 (16:44 +0000)]
Move get_sp_from_cpustate from cpu.h to target_signal.h.
Enable sigaltstack processing for more architectures.

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

16 years agolinux-user sigaltstack() syscall, by Thayne Harbaugh.
ths [Thu, 27 Sep 2007 13:57:58 +0000 (13:57 +0000)]
linux-user sigaltstack() syscall, by Thayne Harbaugh.

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

16 years agoBuild fix for PowerPC hosts, where "PPC" is a predefined macro name.
ths [Thu, 27 Sep 2007 12:48:11 +0000 (12:48 +0000)]
Build fix for PowerPC hosts, where "PPC" is a predefined macro name.

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

16 years agoImplement size bit in PowerPC 64 comparisons.
j_mayer [Thu, 27 Sep 2007 04:47:25 +0000 (04:47 +0000)]
Implement size bit in PowerPC 64 comparisons.
Allow 'weight' field in sync instruction.

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

16 years agomemset string pages to zero to avoid putting random data on the stack
j_mayer [Thu, 27 Sep 2007 04:10:43 +0000 (04:10 +0000)]
memset string pages to zero to avoid putting random data on the stack
 that may make some program crash at startup.
Fix unsigned long / target_ulong confusion (more to do).
Fix missing g2h macros.

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

16 years agoSVM VINTR fix, by Alexander Graf.
ths [Thu, 27 Sep 2007 01:52:00 +0000 (01:52 +0000)]
SVM VINTR fix, by Alexander Graf.

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

16 years agoFixes for PowerPC 64 rotate and mask instructions.
j_mayer [Thu, 27 Sep 2007 01:32:19 +0000 (01:32 +0000)]
Fixes for PowerPC 64 rotate and mask instructions.

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

16 years agoNew ppc64-linux-user target.
j_mayer [Thu, 27 Sep 2007 01:14:15 +0000 (01:14 +0000)]
New ppc64-linux-user target.
Allow use of PowerPC 970 for debugging (softmmu would not run, for now).

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

16 years agoAdd flags to support PowerPC 405 bootinfos variations.
j_mayer [Wed, 26 Sep 2007 23:55:31 +0000 (23:55 +0000)]
Add flags to support PowerPC 405 bootinfos variations.

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

16 years agoGreat rework and cleanups to ease PowerPC implementations definitions.
j_mayer [Wed, 26 Sep 2007 23:54:22 +0000 (23:54 +0000)]
Great rework and cleanups to ease PowerPC implementations definitions.
* cleanup cpu.h, removing definitions used only in translate.c/translate_init.c
* add new flags to define instructions sets more precisely
* various changes in MMU models definitions
* add definitions for PowerPC 440/460 support (insns and SPRs).
* add definitions for PowerPC 401/403 and 620 input pins model
* Fix definitions for most PowerPC 401, 403, 405, 440, 601, 602, 603 and 7x0
* Preliminary support for PowerPC 74xx (aka G4) without altivec.
* Code provision for other PowerPC support (7x5, 970, ...).
* New SPR and PVR defined, from PowerPC 2.04 specification and other sources
* Misc code bugs, error messages and styles fixes.
* Update status files for PowerPC cores support.

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

16 years agohflags computation cleanup, by Aurelien Jarno.
ths [Wed, 26 Sep 2007 23:52:06 +0000 (23:52 +0000)]
hflags computation cleanup, by Aurelien Jarno.

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

16 years agoWrap a few often used tests with unlikely(), by Aurelien Jarno.
ths [Wed, 26 Sep 2007 23:50:39 +0000 (23:50 +0000)]
Wrap a few often used tests with unlikely(), by Aurelien Jarno.

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

16 years agoConvert syscall arguments and return value from long to int or target_long.
j_mayer [Wed, 26 Sep 2007 23:01:49 +0000 (23:01 +0000)]
Convert syscall arguments and return value from long to int or target_long.

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

16 years agolinux-user utimensat() syscall, by Thayne Harbaugh.
ths [Tue, 25 Sep 2007 17:50:37 +0000 (17:50 +0000)]
linux-user utimensat() syscall, by Thayne Harbaugh.

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

16 years ago Remove the target dependency introduced by previous patch
blueswir1 [Tue, 25 Sep 2007 17:30:09 +0000 (17:30 +0000)]
 Remove the target dependency introduced by previous patch

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

16 years ago Fix monitor expressions
blueswir1 [Tue, 25 Sep 2007 17:28:42 +0000 (17:28 +0000)]
 Fix monitor expressions

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

16 years agoTimer start/stop implementation, by Aurelien Jarno.
ths [Tue, 25 Sep 2007 16:53:15 +0000 (16:53 +0000)]
Timer start/stop implementation, by Aurelien Jarno.

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

16 years agoCheck if the hosts defines a symlinkat syscall.
ths [Tue, 25 Sep 2007 16:09:22 +0000 (16:09 +0000)]
Check if the hosts defines a symlinkat syscall.

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

16 years agoOptimise instructions accessing CP0, by Aurelien Jarno.
ths [Tue, 25 Sep 2007 14:49:47 +0000 (14:49 +0000)]
Optimise instructions accessing CP0, by Aurelien Jarno.

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

16 years agovvfat mbr fixes, by Ivan Kalvachev.
ths [Tue, 25 Sep 2007 14:47:03 +0000 (14:47 +0000)]
vvfat mbr fixes, by Ivan Kalvachev.

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

16 years agoImprove completion in monitor, by Pascal Terjan.
ths [Tue, 25 Sep 2007 14:45:23 +0000 (14:45 +0000)]
Improve completion in monitor, by Pascal Terjan.

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

16 years agoMove ECC calculation to a more appropriate place.
balrog [Tue, 25 Sep 2007 01:17:04 +0000 (01:17 +0000)]
Move ECC calculation to a more appropriate place.

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

16 years ago CPU boot mode
blueswir1 [Mon, 24 Sep 2007 19:44:09 +0000 (19:44 +0000)]
 CPU boot mode

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

16 years ago Fix loading above 4G
blueswir1 [Mon, 24 Sep 2007 18:41:27 +0000 (18:41 +0000)]
 Fix loading above 4G

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

16 years ago Fix >4G physical memory dump for Sparc32
blueswir1 [Mon, 24 Sep 2007 18:39:04 +0000 (18:39 +0000)]
 Fix >4G physical memory dump for Sparc32

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

16 years agoPer-CPU instruction decoding implementation, by Aurelien Jarno.
ths [Mon, 24 Sep 2007 12:48:00 +0000 (12:48 +0000)]
Per-CPU instruction decoding implementation, by Aurelien Jarno.

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

16 years agolinux-user faccessat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:27:49 +0000 (09:27 +0000)]
linux-user faccessat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user fchmodat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:26:51 +0000 (09:26 +0000)]
linux-user fchmodat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user readlinkat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:26:10 +0000 (09:26 +0000)]
linux-user readlinkat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user symlinkat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:25:40 +0000 (09:25 +0000)]
linux-user symlinkat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user linkat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:25:06 +0000 (09:25 +0000)]
linux-user linkat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user renameat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:24:37 +0000 (09:24 +0000)]
linux-user renameat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user unlinkat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:24:11 +0000 (09:24 +0000)]
linux-user unlinkat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user fchownat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:23:34 +0000 (09:23 +0000)]
linux-user fchownat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user mknodat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:23:05 +0000 (09:23 +0000)]
linux-user mknodat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user mkdirat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:22:32 +0000 (09:22 +0000)]
linux-user mkdirat() syscall, by Thayne Harbaugh.

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

16 years agolinux-user openat() syscall, by Thayne Harbaugh.
ths [Mon, 24 Sep 2007 09:21:55 +0000 (09:21 +0000)]
linux-user openat() syscall, by Thayne Harbaugh.

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

16 years agoUpdate Linux kernel syscall list.
ths [Mon, 24 Sep 2007 00:11:26 +0000 (00:11 +0000)]
Update Linux kernel syscall list.

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

16 years agoSync termbits.h with current Linux kernel.
ths [Sun, 23 Sep 2007 23:27:46 +0000 (23:27 +0000)]
Sync termbits.h with current Linux kernel.

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

16 years agoAdd new MIPS/Linux syscalls.
ths [Sun, 23 Sep 2007 18:07:05 +0000 (18:07 +0000)]
Add new MIPS/Linux syscalls.

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

16 years agoCorrect and update mips termbits.h.
ths [Sun, 23 Sep 2007 17:55:00 +0000 (17:55 +0000)]
Correct and update mips termbits.h.

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

16 years agoFix mips usermode emulation.
ths [Sun, 23 Sep 2007 17:54:29 +0000 (17:54 +0000)]
Fix mips usermode emulation.

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

16 years agoAdd missing svm.h header, and add a Changelog entry.
ths [Sun, 23 Sep 2007 15:30:28 +0000 (15:30 +0000)]
Add missing svm.h header, and add a Changelog entry.

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

16 years agoSVM Support, by Alexander Graf.
ths [Sun, 23 Sep 2007 15:28:04 +0000 (15:28 +0000)]
SVM Support, by Alexander Graf.

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

16 years ago Fix Caps lock and Num lock handling
blueswir1 [Sun, 23 Sep 2007 11:48:47 +0000 (11:48 +0000)]
 Fix Caps lock and Num lock handling

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

16 years ago Add missing break statements
blueswir1 [Sun, 23 Sep 2007 11:40:57 +0000 (11:40 +0000)]
 Add missing break statements

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

16 years agoOnly build qemu-img with softmmu targets.
pbrook [Sat, 22 Sep 2007 16:49:14 +0000 (16:49 +0000)]
Only build qemu-img with softmmu targets.

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

16 years ago Fix breakage on big endian hosts (Aurelien Jarno)
blueswir1 [Sat, 22 Sep 2007 12:09:09 +0000 (12:09 +0000)]
 Fix breakage on big endian hosts (Aurelien Jarno)

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

16 years ago Rework ASI instructions (Aurelien Jarno)
blueswir1 [Fri, 21 Sep 2007 19:10:53 +0000 (19:10 +0000)]
 Rework ASI instructions (Aurelien Jarno)

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

16 years ago Improve keyboard handling
blueswir1 [Fri, 21 Sep 2007 19:09:35 +0000 (19:09 +0000)]
 Improve keyboard handling

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

16 years agoAvoid compilation warnings on 32 bits hosts.
j_mayer [Fri, 21 Sep 2007 06:32:17 +0000 (06:32 +0000)]
Avoid compilation warnings on 32 bits hosts.

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

16 years agoAvoid compilation warnings on 64 bits hosts.
j_mayer [Fri, 21 Sep 2007 06:09:39 +0000 (06:09 +0000)]
Avoid compilation warnings on 64 bits hosts.

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

16 years agoMore PowerPC definitions, from POWER 2.04 specifications and misc sources.
j_mayer [Fri, 21 Sep 2007 05:50:37 +0000 (05:50 +0000)]
More PowerPC definitions, from POWER 2.04 specifications and misc sources.
Check that at least instructions set and SPRs are correct for
 PowerPC 401, 403, 405 and 440 cores.
Implement PowerPC 401 MMU model (real-mode only).
Improve INSNs and SPRs dump to ease parse with standard shell tools.
Add more precise status for most PowerPC cores families.

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

16 years agoRework PowerPC 440 TLB management (thanks to Hollis Blanchard)
j_mayer [Fri, 21 Sep 2007 05:28:33 +0000 (05:28 +0000)]
Rework PowerPC 440 TLB management (thanks to Hollis Blanchard)

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

16 years agoMake CPU hflags be a masked version of the PowerPC MSR.
j_mayer [Fri, 21 Sep 2007 05:23:26 +0000 (05:23 +0000)]
Make CPU hflags be a masked version of the PowerPC MSR.
As a side effect, avoid potential bits shadowing in TB flags on 64 bits BookE.

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

16 years agoExtend TB flags to 64 bits (Alexander Graf).
j_mayer [Thu, 20 Sep 2007 22:47:42 +0000 (22:47 +0000)]
Extend TB flags to 64 bits (Alexander Graf).

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

16 years ago Change ldl_phys to cpu_physical_memory_read, fix pte address
blueswir1 [Thu, 20 Sep 2007 16:01:51 +0000 (16:01 +0000)]
 Change ldl_phys to cpu_physical_memory_read, fix pte address

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

16 years ago Fix tadd op generation with GCC 4.x
blueswir1 [Thu, 20 Sep 2007 15:21:32 +0000 (15:21 +0000)]
 Fix tadd op generation with GCC 4.x

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

16 years ago Detabify
blueswir1 [Thu, 20 Sep 2007 14:54:22 +0000 (14:54 +0000)]
 Detabify

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

16 years agoMake likely/unlikely accessible also in hw/.
balrog [Thu, 20 Sep 2007 13:24:53 +0000 (13:24 +0000)]
Make likely/unlikely accessible also in hw/.
Revert the logfile->stderr change.

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

16 years agoUse logfile only when loglevel is set (http://bugzilla.openmoko.org/cgi-bin/bugz
balrog [Thu, 20 Sep 2007 12:42:24 +0000 (12:42 +0000)]
Use logfile only when loglevel is set (bugzilla.openmoko.org/cgi-bin/bugz
illa/show_bug.cgi?id=886).
raw_pread() and raw_pwrite() are expected to return number of bytes read.

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

16 years agoMove likely and unlikely macros in a common place (Aurelien Jarno).
j_mayer [Thu, 20 Sep 2007 09:44:48 +0000 (09:44 +0000)]
Move likely and unlikely macros in a common place (Aurelien Jarno).

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

16 years agoMore PowerPC registers definitions.
j_mayer [Wed, 19 Sep 2007 05:49:13 +0000 (05:49 +0000)]
More PowerPC registers definitions.
Avoid duplicating code and, as a side effect, fix missing bits in MSR.

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

16 years agoTARGET_FMT_lu may also be useful.
j_mayer [Wed, 19 Sep 2007 05:46:03 +0000 (05:46 +0000)]
TARGET_FMT_lu may also be useful.
Fix compilation warnings.

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

16 years agoCode provision for PowerPC BookE MMU model support.
j_mayer [Wed, 19 Sep 2007 05:44:04 +0000 (05:44 +0000)]
Code provision for PowerPC BookE MMU model support.
Better MSR flags initialisation.

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

16 years agoImprove PowerPC target implementation, using computed hflags as TB flags.
j_mayer [Wed, 19 Sep 2007 05:37:56 +0000 (05:37 +0000)]
Improve PowerPC target implementation, using computed hflags as TB flags.

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

16 years agoAvoid Linux to stay stucked in an infinite loop when requesting a reboot.
j_mayer [Wed, 19 Sep 2007 04:46:57 +0000 (04:46 +0000)]
Avoid Linux to stay stucked in an infinite loop when requesting a reboot.

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

16 years agoCode provision for PowerPC 64 MMU model support.
j_mayer [Wed, 19 Sep 2007 04:36:02 +0000 (04:36 +0000)]
Code provision for PowerPC 64 MMU model support.

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

16 years agoMore PowerPC target cleanups:
j_mayer [Wed, 19 Sep 2007 04:34:09 +0000 (04:34 +0000)]
More PowerPC target cleanups:
- remove unuseful historical macros and definitions
- fix comments (bugs and cosmetics)

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

16 years agoFix invalid MAP_xxx flags for PowerPC targets.
j_mayer [Tue, 18 Sep 2007 21:54:57 +0000 (21:54 +0000)]
Fix invalid MAP_xxx flags for PowerPC targets.

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

16 years agoAlways keep the bootinfo structure in the first 16 MB,
j_mayer [Tue, 18 Sep 2007 21:47:18 +0000 (21:47 +0000)]
Always keep the bootinfo structure in the first 16 MB,
 as suggested by Andrew May.
Fix compilation warnings introduced by variables types changes.

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

16 years agoFix PowerPC 32 emulation on 64 bits hosts:
j_mayer [Tue, 18 Sep 2007 11:17:30 +0000 (11:17 +0000)]
Fix PowerPC 32 emulation on 64 bits hosts:
we can use 64 bits registers but not pretend page is 1kB long
As it seems most Linux programs assume page-size is 4kB, never allow
1kB pages for user-mode only emulation.

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

16 years agoPrevent segfaulting when -clock is specified multiple times.
balrog [Mon, 17 Sep 2007 21:25:20 +0000 (21:25 +0000)]
Prevent segfaulting when -clock is specified multiple times.

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

16 years agoPass correct pointer to HID keyboard event handler, fixes regression from IDLE mode...
balrog [Mon, 17 Sep 2007 17:27:00 +0000 (17:27 +0000)]
Pass correct pointer to HID keyboard event handler, fixes regression from IDLE mode introduction.

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

16 years agoPowerPC flags update/use fixes:
j_mayer [Mon, 17 Sep 2007 09:51:40 +0000 (09:51 +0000)]
PowerPC flags update/use fixes:
- fix confusion between overflow/summary overflow, as reported by S Bansal.
- reset carry in addic. optimized case (as it was already done in addic).

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

16 years agoCoding style fixes in PowerPC related code (no functional change):
j_mayer [Mon, 17 Sep 2007 08:21:54 +0000 (08:21 +0000)]
Coding style fixes in PowerPC related code (no functional change):
- avoid useless blanks at EOL.
- avoid tabs.
- fix wrapping lines on 80 chars terminals.
- add missing ';' at macros EOL to avoid confusing auto-identers.
- fix identation.
- Remove historical macros in micro-ops (PARAM, SPARAM, PPC_OP, regs)

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