qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
@ 2012-05-22 17:02 Peter Maydell
  2012-06-19 15:12 ` Peter Maydell
  2012-06-20  1:33 ` Peter Crosthwaite
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2012-05-22 17:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Crosthwaite, patches

Make the state fields rx_desc_addr and tx_desc_addr uint32_t;
this matches the VMStateDescription, and also conforms to how
hardware works: the registers don't magically become larger
if the device is attached to a CPU with a larger physical
address size. It also fixes a compile failure if the
target_phys_addr_t type is changed to 64 bits.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
I'm going through fixing problems with moving target-arm to
a larger physical address width so we can support the A15
Large Physical Address Extensions...

 hw/cadence_gem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c
index e2140ae..e563409 100644
--- a/hw/cadence_gem.c
+++ b/hw/cadence_gem.c
@@ -339,8 +339,8 @@ typedef struct {
     uint8_t phy_loop; /* Are we in phy loopback? */
 
     /* The current DMA descriptor pointers */
-    target_phys_addr_t rx_desc_addr;
-    target_phys_addr_t tx_desc_addr;
+    uint32_t rx_desc_addr;
+    uint32_t tx_desc_addr;
 
 } GemState;
 
-- 
1.7.1

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

* Re: [Qemu-devel] [PATCH] hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
  2012-05-22 17:02 [Qemu-devel] [PATCH] hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t Peter Maydell
@ 2012-06-19 15:12 ` Peter Maydell
  2012-06-20  1:33 ` Peter Crosthwaite
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2012-06-19 15:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Crosthwaite, patches

Peter C: ping? I was hoping for a review or ack for this
one before I stick it into an arm-devs pullreq.

thanks
-- PMM

On 22 May 2012 18:02, Peter Maydell <peter.maydell@linaro.org> wrote:
> Make the state fields rx_desc_addr and tx_desc_addr uint32_t;
> this matches the VMStateDescription, and also conforms to how
> hardware works: the registers don't magically become larger
> if the device is attached to a CPU with a larger physical
> address size. It also fixes a compile failure if the
> target_phys_addr_t type is changed to 64 bits.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> I'm going through fixing problems with moving target-arm to
> a larger physical address width so we can support the A15
> Large Physical Address Extensions...
>
>  hw/cadence_gem.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c
> index e2140ae..e563409 100644
> --- a/hw/cadence_gem.c
> +++ b/hw/cadence_gem.c
> @@ -339,8 +339,8 @@ typedef struct {
>     uint8_t phy_loop; /* Are we in phy loopback? */
>
>     /* The current DMA descriptor pointers */
> -    target_phys_addr_t rx_desc_addr;
> -    target_phys_addr_t tx_desc_addr;
> +    uint32_t rx_desc_addr;
> +    uint32_t tx_desc_addr;
>
>  } GemState;
>
> --
> 1.7.1

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

* Re: [Qemu-devel] [PATCH] hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
  2012-05-22 17:02 [Qemu-devel] [PATCH] hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t Peter Maydell
  2012-06-19 15:12 ` Peter Maydell
@ 2012-06-20  1:33 ` Peter Crosthwaite
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Crosthwaite @ 2012-06-20  1:33 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel, patches

On Wed, May 23, 2012 at 3:02 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> Make the state fields rx_desc_addr and tx_desc_addr uint32_t;
> this matches the VMStateDescription, and also conforms to how
> hardware works: the registers don't magically become larger
> if the device is attached to a CPU with a larger physical
> address size. It also fixes a compile failure if the
> target_phys_addr_t type is changed to 64 bits.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>

> ---
> I'm going through fixing problems with moving target-arm to
> a larger physical address width so we can support the A15
> Large Physical Address Extensions...
>
>  hw/cadence_gem.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c
> index e2140ae..e563409 100644
> --- a/hw/cadence_gem.c
> +++ b/hw/cadence_gem.c
> @@ -339,8 +339,8 @@ typedef struct {
>     uint8_t phy_loop; /* Are we in phy loopback? */
>
>     /* The current DMA descriptor pointers */
> -    target_phys_addr_t rx_desc_addr;
> -    target_phys_addr_t tx_desc_addr;
> +    uint32_t rx_desc_addr;
> +    uint32_t tx_desc_addr;
>
>  } GemState;
>
> --
> 1.7.1
>

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

end of thread, other threads:[~2012-06-20  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-22 17:02 [Qemu-devel] [PATCH] hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t Peter Maydell
2012-06-19 15:12 ` Peter Maydell
2012-06-20  1:33 ` Peter Crosthwaite

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