qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] correcting ARM CPSR register bit position comment
@ 2009-12-14 11:09 nemesisofstate
  2009-12-14 12:07 ` Paul Brook
  0 siblings, 1 reply; 3+ messages in thread
From: nemesisofstate @ 2009-12-14 11:09 UTC (permalink / raw)
  To: qemu-devel

From: nemesis <nemesis@nemesis-laptop.(none)>

---
 target-arm/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 4a1c53f..910604f 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -90,7 +90,7 @@ typedef struct CPUARMState {
 
     /* cpsr flag cache for faster execution */
     uint32_t CF; /* 0 or 1 */
-    uint32_t VF; /* V is the bit 31. All other bits are undefined */
+    uint32_t VF; /* V is the bit 28. */
     uint32_t NF; /* N is bit 31. All other bits are undefined.  */
     uint32_t ZF; /* Z set if zero.  */
     uint32_t QF; /* 0 or 1 */
-- 
1.6.3.3

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

* Re: [Qemu-devel] [PATCH] correcting ARM CPSR register bit position comment
  2009-12-14 11:09 [Qemu-devel] [PATCH] correcting ARM CPSR register bit position comment nemesisofstate
@ 2009-12-14 12:07 ` Paul Brook
  2009-12-14 12:15   ` Laurent Desnogues
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Brook @ 2009-12-14 12:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: nemesisofstate

> -    uint32_t VF; /* V is the bit 31. All other bits are undefined */
> +    uint32_t VF; /* V is the bit 28. */

No. The original comment is correct.

Paul

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

* Re: [Qemu-devel] [PATCH] correcting ARM CPSR register bit position comment
  2009-12-14 12:07 ` Paul Brook
@ 2009-12-14 12:15   ` Laurent Desnogues
  0 siblings, 0 replies; 3+ messages in thread
From: Laurent Desnogues @ 2009-12-14 12:15 UTC (permalink / raw)
  To: nemesisofstate; +Cc: qemu-devel

On Mon, Dec 14, 2009 at 1:07 PM, Paul Brook <paul@codesourcery.com> wrote:
>> -    uint32_t VF; /* V is the bit 31. All other bits are undefined */
>> +    uint32_t VF; /* V is the bit 28. */
>
> No. The original comment is correct.

And so that the answer is at least a bit useful:  these fields
are not directly mapped to CPSR;  they are the results of
computations and can then be translated to bits in CPSR
(look for cpsr_read/cpsr_write in helper.c).  If you want to
see how VF is set, look for add_cc in op_helper.c.  This is
done this way to speed up simulation.

HTH,

Laurent

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

end of thread, other threads:[~2009-12-14 12:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 11:09 [Qemu-devel] [PATCH] correcting ARM CPSR register bit position comment nemesisofstate
2009-12-14 12:07 ` Paul Brook
2009-12-14 12:15   ` Laurent Desnogues

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