qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: fix running programs with iwmmxt instructions
@ 2010-03-15 12:39 Lars Munch
  2010-03-15 12:53 ` Paul Brook
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Munch @ 2010-03-15 12:39 UTC (permalink / raw)
  To: qemu-devel


When using linux-user for emulating an pxa270 we cannot generate an illegal
instruction trap to the kernel to save/load the iwmmxt registers.

Signed-off-by: Lars Munch <lars@segv.dk>
---
 target-arm/translate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/target-arm/translate.c b/target-arm/translate.c
index cdfe946..6b621b1 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -5802,9 +5802,11 @@ static int disas_coproc_insn(CPUState * env, DisasContext *s, uint32_t insn)
     int cpnum;
 
     cpnum = (insn >> 8) & 0xf;
+#if !defined(CONFIG_USER_ONLY)
     if (arm_feature(env, ARM_FEATURE_XSCALE)
 	    && ((env->cp15.c15_cpar ^ 0x3fff) & (1 << cpnum)))
 	return 1;
+#endif
 
     switch (cpnum) {
       case 0:
-- 
1.7.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-15 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15 12:39 [Qemu-devel] [PATCH] linux-user: fix running programs with iwmmxt instructions Lars Munch
2010-03-15 12:53 ` Paul Brook
2010-03-15 16:14   ` Lars Munch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).