diff options
| author | Mitsyanko Igor <i.mitsyanko@samsung.com> | 2012-03-14 15:37:53 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2012-03-16 18:09:55 +0000 |
| commit | 27424dcc6804e630602a61229e57e42b14050869 (patch) | |
| tree | 37091fd036394e927d1b7692c59a4ed89a7050f5 /hw/omap_i2c.c | |
| parent | a10394e1daff859517566b9882d4bdec0f6969ca (diff) | |
| download | focaccia-qemu-27424dcc6804e630602a61229e57e42b14050869.tar.gz focaccia-qemu-27424dcc6804e630602a61229e57e42b14050869.zip | |
hw/pxa2xx_lcd.c: drop target_phys_addr_t usage in device state
Pxa2xx LCD controller is intended to work with 32-bit bus and it has no knowledge of system's physical address size, so it should not use target_phys_addr_t in it's state. Convert three variables in DMAChannel state from target_phys_addr_t to uint32_t, use VMSTATE_UINT32 instead of VMSTATE_UINTTL for these variables. We can do this safely because: 1) pxa2xx has 32-bit physical address; 2) rest of the code in file never assumes converted variables to have any size different from uint32_t; 3) we shouldn't have used VMSTATE_UINTTL in the first place because this macro is for target_ulong type (which can be different from target_phys_addr_t). Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/omap_i2c.c')
0 files changed, 0 insertions, 0 deletions