* [Qemu-devel] [PATCH] arm: prevent coprocessor IO reset
@ 2010-05-08 20:42 Lars Munch
2010-05-28 19:25 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Lars Munch @ 2010-05-08 20:42 UTC (permalink / raw)
To: qemu-devel; +Cc: 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 <lars@segv.dk>
---
target-arm/cpu.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index 1e34541..f3d138d 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -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;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] arm: prevent coprocessor IO reset
2010-05-08 20:42 [Qemu-devel] [PATCH] arm: prevent coprocessor IO reset Lars Munch
@ 2010-05-28 19:25 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2010-05-28 19:25 UTC (permalink / raw)
To: Lars Munch; +Cc: qemu-devel
On Sat, May 08, 2010 at 10:42:43PM +0200, Lars Munch wrote:
> 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 <lars@segv.dk>
Thanks, applied.
> ---
> target-arm/cpu.h | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/target-arm/cpu.h b/target-arm/cpu.h
> index 1e34541..f3d138d 100644
> --- a/target-arm/cpu.h
> +++ b/target-arm/cpu.h
> @@ -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;
> --
> 1.7.1
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-28 19:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-08 20:42 [Qemu-devel] [PATCH] arm: prevent coprocessor IO reset Lars Munch
2010-05-28 19:25 ` Aurelien Jarno
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).