]> git.proxmox.com Git - qemu.git/commitdiff
hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 4 Jul 2012 10:50:58 +0000 (10:50 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 4 Jul 2012 10:50:58 +0000 (10:50 +0000)
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>
hw/cadence_gem.c

index dbde3920d0908b8e81467f9fa445baaa2b828b2e..87143caf2da8e1b2b88066d8c0c3cdba71898f86 100644 (file)
@@ -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;