Skip to contentSkip to conversation

vga: Fix type of lfb/map_addr/end.

PATCH Applied Richard Henderson 3 participants 3 messages Jun 14, 2011 – Jul 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 vga: Fix type of lfb/map_addr/end.

These addresses have been passed through pci_to_cpu_addr, and thus need to be full target_phys_addr_t.

---

V1->V2:
lfb_addr/end also widened to guest address width.

 hw/vga_int.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
hw/vga_int.h +5 -5
index d2811bd..eee91a8 100644
@@ -106,13 +106,13 @@ typedef void (* vga_update_retrace_info_fn)(struct VGACommonState *s);
 typedef struct VGACommonState {
     uint8_t *vram_ptr;
     ram_addr_t vram_offset;
+    target_phys_addr_t lfb_addr;
+    target_phys_addr_t lfb_end;
+    target_phys_addr_t map_addr;
+    target_phys_addr_t map_end;
     uint32_t vram_size;
-    uint32_t lfb_addr;
-    uint32_t lfb_end;
-    uint32_t map_addr;
-    uint32_t map_end;
-    uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
     uint32_t latch;
+    uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
     uint8_t sr_index;
     uint8_t sr[256];
     uint8_t gr_index;
Signature · 1 line
1.7.4.4
Acked-by on v2 1/1
#1 lore raw
Quoted 26 lines · Richard Henderson

These addresses have been passed through pci_to_cpu_addr, and thus need to be full target_phys_addr_t.

---

V1->V2:
lfb_addr/end also widened to guest address width.

 hw/vga_int.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
hw/vga_int.h +4 -0
index d2811bd..eee91a8 100644
@@ -106,13 +106,13 @@ typedef void (* vga_update_retrace_info_fn)(struct VGACommonState *s);
 typedef struct VGACommonState {
     uint8_t *vram_ptr;
     ram_addr_t vram_offset;
+    target_phys_addr_t lfb_addr;
+    target_phys_addr_t lfb_end;
+    target_phys_addr_t map_addr;
+    target_phys_addr_t map_end;
     uint32_t vram_size;

hw/vga_int.h typedef void (* vga_update_retrace_info_fn)(struct VGACommonState *s); · line 118

Quoted 10 lines
hw/vga_int.h +1 -5
-    uint32_t lfb_addr;
-    uint32_t lfb_end;
-    uint32_t map_addr;
-    uint32_t map_end;
-    uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
     uint32_t latch;
+    uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
     uint8_t sr_index;
     uint8_t sr[256];
     uint8_t gr_index;

But one of us will have to rebase at the end of the day.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#2 lore raw
In reply to Richard Henderson
Quoted 5 lines · Richard Henderson

These addresses have been passed through pci_to_cpu_addr, and thus need to be full target_phys_addr_t.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 31 lines

---

V1->V2:
lfb_addr/end also widened to guest address width.

  hw/vga_int.h |   10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)
hw/vga_int.h +5 -5
index d2811bd..eee91a8 100644
@@ -106,13 +106,13 @@ typedef void (* vga_update_retrace_info_fn)(struct VGACommonState *s);
  typedef struct VGACommonState {
      uint8_t *vram_ptr;
      ram_addr_t vram_offset;
+    target_phys_addr_t lfb_addr;
+    target_phys_addr_t lfb_end;
+    target_phys_addr_t map_addr;
+    target_phys_addr_t map_end;
      uint32_t vram_size;
-    uint32_t lfb_addr;
-    uint32_t lfb_end;
-    uint32_t map_addr;
-    uint32_t map_end;
-    uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
      uint32_t latch;
+    uint32_t lfb_vram_mapped; /* whether 0xa0000 is mapped as ram */
      uint8_t sr_index;
      uint8_t sr[256];
      uint8_t gr_index;