qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: SV: [Qemu-devel] ARM CPSR and conditional instructions
@ 2006-11-23  8:05  Torbjörn Andersson
  2006-11-23 15:28 ` Paul Brook
  0 siblings, 1 reply; 5+ messages in thread
From:  Torbjörn Andersson @ 2006-11-23  8:05 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 3501 bytes --]

We are currently debugging the situation and we are actually not sure about the real reason for our current situation.

However, we have seen that the condition bits in CPSR differers compared to one other arm instruction set simulator, running the same binary. This indicate for us that there might be something wrong i QEMU (translate.c op.c for ARM). However, it is not proven yet.

However, our understanding for the situation would improve if the strategy for simulating the conditional execution of ARM instructions is understood. 

Is a conditional ARM instruction treated as a branch-point, an end marker for a TB?
 If not, jumps qemu within a TB?   
Is it possible to describe the strategy with a reasonable effort? I would be very greatfull.

/Torbjörn

> Från: Wolfgang Schildbach <Wolfgang.Schildbach@codingtechnologies.com>
> Till: qemu-devel@nongnu.org
> Rubrik: Re: SV: [Qemu-devel] ARM CPSR and conditional instructions
> Datum: Thu, 23 Nov 2006 08:43:50 +0100

> I very much doubt there is any problem with the CPSR. The ARM emulation 
> has correctly run hundreds of millions of instructions coming from many 
> different compilers and hand-written assembly. Can you be more precise in 
> what the effect is that you see?
> 
> - Wolfgang
> 
> qemu-devel-bounces+wolfgang.schildbach=codingtechnologies.com@nongnu.org 
> wrote on 22.11.2006 22:13:01:
> 
> > I?m sorry for spamming you mailing list with my duplicate posts. I 
> > had some problems sending my mail. 
> > 
> > /Torbjörn
> > 
> > Från: qemu-devel-bounces+tobbe.tt_home.se=spray.se@nongnu.org 
> > [mailto:qemu-devel-bounces+tobbe.tt_home.se=spray.se@nongnu.org] För 
> > Torbjörn Andersson
> > Skickat: den 21 november 2006 22:16
> > Till: qemu-devel@nongnu.org
> > Ämne: [Qemu-devel] ARM CPSR and conditional instructions
> > 
> > Hello qemu developers!
> > 
> > I´m using QEMU for some ARM debugging and I have som questions 
> > regardning the CPSR register. I get the feeling that the CPSR 
> > condition code bits, representing the results from the ALU, are not 
> > maintained at all points. Is the JIT in QEMU tailored in any way 
> > towards GCC output? (Resulting in issues with the output of other 
> > compilers that make use of the conditional execution of instructions 
> etc.)
> > 
> > What I want to do is to try to verify QEMU maintains the CPSR 
> > register and if not fix it. However, it is not trivial identify 
> > where the updates should be placed. The relationship between 
> > translate.c and op.c is not trival I must say :)
> > I would be happy I anyone here could give me some pointers on how 
> > the updates of the CPSR register is done today and what the strategy
> > is. I guess there are plenty of performance ideas here as in the rest of 
> qemu.
> > 
> > Does anyone have any reflection on this topic or can anyone give me 
> > some pointers?
> > 
> > Torbjörn
> >  _______________________________________________
> > Qemu-devel mailing list
> > Qemu-devel@nongnu.org
> > <a
> href=http://lists.nongnu.org/mailman/listinfo/qemu-devel>http://listsnongnu
> .org/mailman/listinfo/qemu-devel</a>
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> <a
> href=http://lists.nongnu.org/mailman/listinfo/qemu-devel>http://listsnongnu
> .org/mailman/listinfo/qemu-devel</a>


Kärlek och hur mycket pengar? Få svar idag om din morgondag! http://horoskop.spray.se/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [Qemu-devel] ARM CPSR and conditional instructions
@ 2006-11-21 21:16 Torbjörn Andersson
  2006-11-22 21:13 ` SV: " Torbjörn Andersson
  0 siblings, 1 reply; 5+ messages in thread
From: Torbjörn Andersson @ 2006-11-21 21:16 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]

Hello qemu developers!

I´m using QEMU for some ARM debugging and I have som questions regardning
the CPSR register. I get the feeling that the CPSR condition code bits,
representing the results from the ALU, are not maintained at all points. Is
the JIT in QEMU tailored in any way towards GCC output? (Resulting in issues
with the output of other compilers that make use of the conditional
execution of instructions etc.)


What I want to do is to try to verify QEMU maintains the CPSR register and
if not fix it. However, it is not trivial identify where the updates should
be placed. The relationship between translate.c and op.c is not trival I
must say :)

I would be happy I anyone here could give me some pointers on how the
updates of the CPSR register is done today and what the strategy is. I guess
there are plenty of performance ideas here as in the rest of qemu.

Does anyone have any reflection on this topic or can anyone give me some
pointers?

Torbjörn

 


[-- Attachment #2: Type: text/html, Size: 2888 bytes --]

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

end of thread, other threads:[~2006-11-24 23:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-23  8:05 Re: SV: [Qemu-devel] ARM CPSR and conditional instructions  Torbjörn Andersson
2006-11-23 15:28 ` Paul Brook
  -- strict thread matches above, loose matches on Subject: below --
2006-11-21 21:16 Torbjörn Andersson
2006-11-22 21:13 ` SV: " Torbjörn Andersson
2006-11-23  7:43   ` Wolfgang Schildbach
2006-11-23 18:22     ` Justin Fletcher

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).