5cb5c0b8c5145dc0002b24e1421a3fa7a697475e |
|
17-Feb-2014 |
David 'Digit' Turner <digit@google.com> |
savevm.c: Getting closer to upstream. This patch refactors savevm.c considerably to get much closer to upstream. The main benefit is the introduction of savevm_register() and savevm_unregister() functions, which allow the client to provide a description of the state through a VMStateDescription structure. The 'legacy' register_savevm() and unregister_savevm() are still provided (just like upstream does). Future patches will 'upgrade' our virtual devices to the new interface. NOTE: Since DeviceState is not implemented properly yet, qdev_get_path() is stubbed to always return NULL. Change-Id: I7bfa201da40a0e470fafde6ccc002a4216ecd9c1
/external/qemu/hw/android/goldfish/timer.c
|
dcda949f769a11b197f4784fe299a448d87e6e14 |
|
16-Feb-2014 |
David 'Digit' Turner <digit@google.com> |
qemu-timer.c: Use upstream version. This completely modifies the implementation of timers to match upstream, the only difference is that the oddly-placed qemu_gpoll_ns() function is disabled (it's not used yet). Most of the changes here (but not all), were applied through the following sed script: s|qemu_get_clock\s*(\s*vm_clock\s*)|qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)|g s|qemu_get_clock\s*(\s*rt_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_REALTIME)|g s|qemu_get_clock_ns\s*(\s*vm_clock\s*)|qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)|g s|qemu_get_clock_ns\s*(\s*rt_clock\s*)|qemu_clock_get_ns(QEMU_CLOCK_REALTIME)|g s|qemu_get_clock_ms\s*(\s*vm_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL)|g s|qemu_get_clock_ms\s*(\s*rt_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_REALTIME)|g s|qemu_get_clock_ms\s*(\s*host_clock\s*)|qemu_clock_get_ms(QEMU_CLOCK_HOST)|g s|qemu_get_clock_ms\s*(\s*SHAPER_CLOCK\s*)|qemu_clock_get_ms(SHAPER_CLOCK)|g s|qemu_mod_timer\s*(|timer_mod(|g s|qemu_del_timer\s*(|timer_del(|g s|qemu_free_timer\s*(|timer_free(|g s|qemu_new_timer_ms\s*(\s*rt_clock,|timer_new(QEMU_CLOCK_REALTIME, SCALE_MS,|g s|qemu_new_timer_ns\s*(\s*rt_clock,|timer_new(QEMU_CLOCK_REALTIME, SCALE_NS,|g s|qemu_new_timer_ms\s*(\s*vm_clock,|timer_new(QEMU_CLOCK_VIRTUAL, SCALE_MS,|g s|qemu_new_timer_ns\s*(\s*vm_clock,|timer_new(QEMU_CLOCK_VIRTUAL, SCALE_NS,|g s|qemu_new_timer_ms\s*(\s*host_clock,|timer_new(QEMU_CLOCK_HOST, SCALE_MS,|g s|qemu_new_timer_ns\s*(\s*host_clock,|timer_new(QEMU_CLOCK_HOST, SCALE_NS,|g s|qemu_new_timer_ms\s*(\s*SHAPER_CLOCK\s*,|timer_new(SHAPER_CLOCK, SCALE_MS,|g s|qemu_put_timer\s*(|timer_put(|g s|qemu_get_timer\s*(|timer_get(|g s|qemu_timer_pending\s*(|timer_pending(|g s|qemu_clock_next_deadline\s*(\s*vm_clock|qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL|g s|qemu_clock_next_deadline\s*(\s*rt_clock|qemu_clock_deadline_ns_all(QEMU_CLOCK_REALTIME|g s|qemu_clock_next_deadline\s*(\s*host_clock|qemu_clock_deadline_ns_all(QEMU_CLOCK_HOST|g + Disable icount-based clock warping/adjustments. It will be re-enabled in the future after cpu emulation has been completely refactored. Change-Id: Ifbcf4a52654eed3a08dfe59b0546a75d4627f758
/external/qemu/hw/android/goldfish/timer.c
|
a2c14f947951612b45024095afd2210aa7368773 |
|
04-Feb-2014 |
David 'Digit' Turner <digit@google.com> |
Cleanup: Remove 100+ compiler warnings. This is a big cleanup that removes compiler warnings by performing the following: - Remove unused functions or variables. - Change pointer cast to be alias safe using unions. - Use __attribute__((unused)) on some local variable definitions when their usage depends on conditional defines that are not always true when compiling the same source several times. - Fix a couple array indexing bugs. There are still a few warnings from the JSON lexer, libjpeg and the TCG helpers though, but the overall compilation is much cleaner. BUG=NONE Change-Id: Ic4483e6402b266ecfd7bca8c92a73d8fcf392a1f
/external/qemu/hw/android/goldfish/timer.c
|
bcde1092aca184dbd7860078af020de7d1e4e22f |
|
09-Jan-2014 |
David 'Digit' Turner <digit@android.com> |
rename target_phy_addr_t to hwaddr to match upstream. Upstream got rid of the target_phys_addr_t and replaced it with 'hwaddr', so do the corresponding rename here. Note that: - This also renames <exec/targphys.h> to <exec/hwaddr.h> - Upstream always deins hwaddr as a 64-bit type, while the size of our own hwaddr is still controlled by TARGET_PHYS_ADDR_BITS, and will be 32 for now. A future patch will change the type definition to fully match upstream, but it is more risky / requires more cleanups. It's simply cleaner / simpler to put the related work in a separate patch, given the large number of sources touched by the current change. Change-Id: Iee30869a57798c12109b6a23570b166232bb9244
/external/qemu/hw/android/goldfish/timer.c
|
f0665425f3d93ce5c43147e00d8d5259708f0176 |
|
17-Dec-2013 |
David 'Digit' Turner <digit@android.com> |
hw/goldfish_* -> hw/android/goldfish/* Change-Id: I96fd376258e3bcd8357625373176ba53cdde12d0
/external/qemu/hw/android/goldfish/timer.c
|