Thread (24 messages) 24 messages, 5 authors, 2015-03-11

[Qemu-devel] [PATCH 6/6] target-arm/cpu.h: document why env->spsr exists

From: Greg Bellows <hidden>
Date: 2015-03-11 15:39:47
Also in: kvm, kvmarm, qemu-devel

On Wed, Feb 25, 2015 at 10:02 AM, Alex Benn?e [off-list ref] wrote:
quoted hunk ↗ jump to hunk
I was getting very confused about the duplication of state. Perhaps we
should just get rid of env->spsr and use helpers that understand the
banking?

Signed-off-by: Alex Benn?e <redacted>
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 11845a6..d7fd13f 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -155,6 +155,11 @@ typedef struct CPUARMState {
        This contains all the other bits.  Use cpsr_{read,write} to access
        the whole CPSR.  */
     uint32_t uncached_cpsr;
+    /* The spsr is a alias for spsr_elN where N is the current
"an alias"
+     * exception level. It is provided for here so the TCG msr/mrs
remove "for here"
+     * implementation can access one register. Care needs to be taken
+     * to ensure the banked_spsr[] is also updated.
+     */
     uint32_t spsr;

     /* Banked registers.  */
--
2.3.0
Otherwise...

Reviewed-by: Greg Bellows <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help