Fix suspending and resuming timers.

This brings the code for saving and restoring the vm clock up to
date with the current codebase. It also includes a workaround for an
issue that occurred when the state of a goldfish timer was restored.
For unexplained reasons, the compiler generated code to copy the
least significant 32 bits only when reading a 64 bit number,
dropping the remaining 32 bits.

In order to facilitate debugging, the variables in the goldfish
timer code have been suffixed with their units ("ns" for nanoseconds
or "tks" for ticks).
2 files changed
tree: 0697b0290c7e710fa74797b820bcd8a184edc74a
  1. android/
  2. audio/
  3. block/
  4. distrib/
  5. docs/
  6. elff/
  7. fpu/
  8. gdb-xml/
  9. hw/
  10. images/
  11. memcheck/
  12. pc-bios/
  13. proxy/
  14. slirp/
  15. slirp-android/
  16. target-arm/
  17. tcg/
  18. telephony/
  19. .gitignore
  20. a.out.h
  21. acl.c
  22. acl.h
  23. aes.c
  24. aes.h
  25. aio-android.c
  26. aio.c
  27. alpha.ld
  28. android-configure.sh
  29. android-rebuild.sh
  30. Android.mk
  31. arm-dis.c
  32. arm-semi.c
  33. arm.ld
  34. balloon.h
  35. block.c
  36. block.h
  37. block_int.h
  38. bswap.h
  39. bt-host.c
  40. bt-host.h
  41. bt-vhci.c
  42. buffered_file.c
  43. buffered_file.h
  44. cache-utils.c
  45. cache-utils.h
  46. cbuffer.c
  47. cbuffer.h
  48. Changelog
  49. CHANGES.TXT
  50. charpipe.c
  51. charpipe.h
  52. CleanSpec.mk
  53. compatfd.c
  54. compatfd.h
  55. console.c
  56. console.h
  57. COPYING
  58. COPYING.LIB
  59. cpu-all.h
  60. cpu-common.h
  61. cpu-defs.h
  62. cpu-exec.c
  63. curses.c
  64. curses_keys.h
  65. cutils.c
  66. d3des.c
  67. d3des.h
  68. dcache.c
  69. dcache.h
  70. def-helper.h
  71. device_tree.c
  72. device_tree.h
  73. dis-asm.h
  74. disas.c
  75. disas.h
  76. dma-helpers.c
  77. dma.h
  78. dyngen-exec.h
  79. dynlink-static.c
  80. dynlink.h
  81. elf.h
  82. elf_ops.h
  83. envlist.c
  84. envlist.h
  85. exec-all.h
  86. exec.c
  87. feature_to_c.sh
  88. framebuffer.c
  89. framebuffer.h
  90. gdbstub.c
  91. gdbstub.h
  92. gen-charmap.py
  93. gen-icount.h
  94. gen-skin.py
  95. host-defs.h
  96. host-utils.c
  97. host-utils.h
  98. hostregs_helper.h
  99. hpet.h
  100. hxtool
  101. i386-dis.c
  102. i386-vl.ld
  103. i386.ld
  104. ia64.ld
  105. INSTALL
  106. iolooper-select.c
  107. iolooper.h
  108. ioport-user.c
  109. ioport.c
  110. ioport.h
  111. json-lexer.c
  112. json-lexer.h
  113. json-parser.c
  114. json-parser.h
  115. json-streamer.c
  116. json-streamer.h
  117. keymaps.c
  118. keymaps.h
  119. kqemu.c
  120. kqemu.h
  121. kvm.h
  122. LICENSE
  123. linux_keycodes.h
  124. loader.c
  125. loadpng.c
  126. m68k.ld
  127. Makefile
  128. Makefile.android
  129. migration-dummy-android.c
  130. migration-exec.c
  131. migration-tcp-android.c
  132. migration-tcp.c
  133. migration.c
  134. migration.h
  135. module.c
  136. module.h
  137. MODULE_LICENSE_GPL
  138. monitor.c
  139. monitor.h
  140. net-android.c
  141. net-checksum.c
  142. net.c
  143. net.h
  144. NOTICE
  145. offset_layout.py
  146. osdep.c
  147. osdep.h
  148. ppc-dis.c
  149. ppc.ld
  150. qbool.c
  151. qbool.h
  152. qdict.c
  153. qdict.h
  154. qemu-aio.h
  155. qemu-char-android.c
  156. qemu-char.c
  157. qemu-char.h
  158. qemu-common.h
  159. qemu-io.c
  160. qemu-lock.h
  161. qemu-log.h
  162. qemu-malloc.c
  163. qemu-monitor.hx
  164. qemu-objects.h
  165. qemu-option.c
  166. qemu-option.h
  167. qemu-options.hx
  168. qemu-queue.h
  169. qemu-sockets-android.c
  170. qemu-sockets.c
  171. qemu-thread.c
  172. qemu-thread.h
  173. qemu-timer.h
  174. qemu_debug.h
  175. qemu_file.h
  176. qemu_socket.h
  177. qemu_timers.h
  178. qerror.c
  179. qerror.h
  180. qfloat.c
  181. qfloat.h
  182. qint.c
  183. qint.h
  184. qjson.c
  185. qjson.h
  186. qlist.c
  187. qlist.h
  188. qobject.h
  189. qstring.c
  190. qstring.h
  191. readline.c
  192. readline.h
  193. README
  194. savevm.c
  195. sdl_keysym.h
  196. shaper.c
  197. shaper.h
  198. sockets.c
  199. sockets.h
  200. softmmu-semi.h
  201. softmmu_defs.h
  202. softmmu_exec.h
  203. softmmu_header.h
  204. softmmu_outside_jit.c
  205. softmmu_outside_jit.h
  206. softmmu_template.h
  207. sparc.ld
  208. sys-tree.h
  209. sysemu.h
  210. tap-win32.c
  211. targphys.h
  212. tcpdump.c
  213. tcpdump.h
  214. thunk.c
  215. thunk.h
  216. trace.c
  217. trace.h
  218. trace_common.h
  219. translate-all.c
  220. translate-op.c
  221. translate.make
  222. uboot_image.h
  223. usb-dummy-android.c
  224. usb-linux.c
  225. user-events-qemu.c
  226. user-events.h
  227. varint.c
  228. varint.h
  229. vgafont.h
  230. vl-android.c
  231. vl.c
  232. vnc-android.c
  233. vnc-tls.h
  234. vnc.c
  235. vnc.h
  236. vnc_keysym.h
  237. vnchextile.h
  238. x86_64.ld