hw/tcx: Remove unused 'addr' field and the property that sets it
PATCH 1/1 hw/tcx: Remove unused 'addr' field and the property that sets it
Remove the 'addr' field from TCXState (since it is completely unused), also the qdev property which sets it. This seems to be a relic from many years past; devices don't need to know where they are mapped.
---
Random minor cleanup, but I'm hoping we might be able to get rid of the 'taddr' properties altogether; there aren't very many of them...
hw/sparc/sun4m.c | 1 - hw/tcx.c | 2 -- 2 files changed, 3 deletions(-)
hw/sparc/sun4m.c +0 -1
@@ -575,7 +575,6 @@ static void tcx_init(hwaddr addr, int vram_size, int width,SysBusDevice *s; dev =qdev_create (NULL ,"SUNW,tcx" ); -qdev_prop_set_taddr (dev,"addr" , addr);qdev_prop_set_uint32 (dev,"vram_size" , vram_size);qdev_prop_set_uint16 (dev,"width" , width);qdev_prop_set_uint16 (dev,"height" , height);
hw/tcx.c +0 -2
@@ -37,7 +37,6 @@ typedef struct TCXState { SysBusDevice busdev; - hwaddr addr; QemuConsole *con; uint8_t *vram; uint32_t *vram24, *cplane;
@@ -707,7 +706,6 @@ write_err: }static Property tcx_properties[] = { -DEFINE_PROP_TADDR ("addr" , TCXState, addr,-1 ),DEFINE_PROP_HEX32 ("vram_size" , TCXState, vram_size,-1 ),DEFINE_PROP_UINT16 ("width" , TCXState, width,-1 ),DEFINE_PROP_UINT16 ("height" , TCXState, height,-1 ),
Signature · 1 line
1.7.9.5
Stefan Hajnoczi
AppliedQuoted 4 lines · Peter Maydell
Remove the 'addr' field from TCXState (since it is completely unused), also the qdev property which sets it. This seems to be a relic from many years past; devices don't need to know where they are mapped.
Quoted 8 lines
Signed-off-by Peter Maydell <[email protected]>---
Random minor cleanup, but I'm hoping we might be able to get rid of the 'taddr' properties altogether; there aren't very many of them...hw/sparc/sun4m.c | 1 - hw/tcx.c | 2 -- 2 files changed, 3 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan