aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-06-28 09:45:27 -0700
committerAlexander Graf <agraf@suse.de>2014-07-08 12:10:36 +0200
commita74029f6cbce43074793dc30534fb6b3aeab7584 (patch)
tree3429f63ff52f734a07b2ef27d0f1da5e709ad909 /target-ppc
parent4bce526ec4b88362a684fd858e0e14c83ddf0db4 (diff)
downloadqemu-a74029f6cbce43074793dc30534fb6b3aeab7584.zip
qemu-a74029f6cbce43074793dc30534fb6b3aeab7584.tar.gz
qemu-a74029f6cbce43074793dc30534fb6b3aeab7584.tar.bz2
target-ppc: Change default cpu for ppc64le-linux-user
The default, 970fx, doesn't support MSR_LE. So even though we set LE in ppc_cpu_reset, it gets cleared again in hreg_store_msr. Error out if a user-selected cpu model doesn't support LE. Signed-off-by: Richard Henderson <rth@twiddle.net> [agraf: switch to POWER7 as default for BE and LE] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 2ab2810..7b4d9be 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -9551,6 +9551,10 @@ static void ppc_cpu_reset(CPUState *s)
#endif
#if !defined(TARGET_WORDS_BIGENDIAN)
msr |= (target_ulong)1 << MSR_LE; /* Little-endian user mode */
+ if (!((env->msr_mask >> MSR_LE) & 1)) {
+ fprintf(stderr, "Selected CPU does not support little-endian.\n");
+ exit(1);
+ }
#endif
#endif