arm: prevent coprocessor IO reset
PATCH 1/1 arm: prevent coprocessor IO reset
This prevent coprocessor IO structure from being reset on cpu reset. This was a problem for PXA which uses coprocessor 6 and 14.
Signed-off-by Lars Munch <[email protected]>
--- target-arm/cpu.h | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
target-arm/cpu.h +7 -7
@@ -148,13 +148,6 @@ typedef struct CPUARMState {int pending_exception; } v7m; -/* Coprocessor IO used by peripherals */ -struct { -ARMReadCPFunc *cp_read; -ARMWriteCPFunc *cp_write; -void *opaque; - } cp[15 ]; -/* Thumb-2 EE state. */ uint32_t teecr;uint32_t teehbr;
@@ -204,6 +197,13 @@ typedef struct CPUARMState {CPU_COMMON /* These fields after the common ones so they are preserved on reset. */ + +/* Coprocessor IO used by peripherals */ + struct { +ARMReadCPFunc *cp_read; +ARMWriteCPFunc *cp_write; +void *opaque; + } cp[15 ];void *nvic;struct arm_boot_info *boot_info; } CPUARMState;
Signature · 1 line
1.7.1
Aurelien Jarno
AppliedQuoted 4 lines · Lars Munch
This prevent coprocessor IO structure from being reset on cpu reset. This was a problem for PXA which uses coprocessor 6 and 14.
Signed-off-by Lars Munch <[email protected]>
Thanks, applied.
Quoted 42 lines
--- target-arm/cpu.h | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)target-arm/cpu.h +7
-7@@ -148,13 +148,6 @@ typedef struct CPUARMState {int pending_exception; } v7m; -/* Coprocessor IO used by peripherals */ -struct { -ARMReadCPFunc *cp_read; -ARMWriteCPFunc *cp_write; -void *opaque; - } cp[15 ]; -/* Thumb-2 EE state. */ uint32_t teecr;uint32_t teehbr;@@ -204,6 +197,13 @@ typedef struct CPUARMState {CPU_COMMON /* These fields after the common ones so they are preserved on reset. */ + +/* Coprocessor IO used by peripherals */ + struct { +ARMReadCPFunc *cp_read; +ARMWriteCPFunc *cp_write; +void *opaque; + } cp[15 ];void *nvic;struct arm_boot_info *boot_info; } CPUARMState;Signature · 1 line
1.7.1
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net