Permanent fix for workaround of timer issue (commit a7f114bc).

The compiler generated incorrect instructions when loading timers,
because qemu_get_be64 was used before it was declared. This caused
the compiler to assume that a normal (32 bit) int would be returned,
rather than a 64 bit one. Just including the "hw/hw.h" header is
sufficient to correct this.

The makefile for the project has recently been changed to build with
-Wall, which should prevent this from going unnoticed again.

Change-Id: I74c98183287cf26b767a36f7a6ff9ebf0b891826
1 file changed
tree: 8e64b9625b977b0427e7a53c4f95217c5b81efce
  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. input.c
  106. INSTALL
  107. iolooper-select.c
  108. iolooper.h
  109. ioport-user.c
  110. ioport.c
  111. ioport.h
  112. json-lexer.c
  113. json-lexer.h
  114. json-parser.c
  115. json-parser.h
  116. json-streamer.c
  117. json-streamer.h
  118. keymaps.c
  119. keymaps.h
  120. kqemu.c
  121. kqemu.h
  122. kvm.h
  123. LICENSE
  124. linux_keycodes.h
  125. loader.c
  126. loadpng.c
  127. m68k.ld
  128. Makefile
  129. Makefile.android
  130. migration-dummy-android.c
  131. migration-exec.c
  132. migration-tcp-android.c
  133. migration-tcp.c
  134. migration.c
  135. migration.h
  136. module.c
  137. module.h
  138. MODULE_LICENSE_GPL
  139. monitor.c
  140. monitor.h
  141. net-android.c
  142. net-checksum.c
  143. net.c
  144. net.h
  145. NOTICE
  146. notify.c
  147. notify.h
  148. offset_layout.py
  149. osdep.c
  150. osdep.h
  151. path.c
  152. poison.h
  153. ppc-dis.c
  154. ppc.ld
  155. qbool.c
  156. qbool.h
  157. qdict.c
  158. qdict.h
  159. qemu-aio.h
  160. qemu-barrier.h
  161. qemu-char-android.c
  162. qemu-char.c
  163. qemu-char.h
  164. qemu-common.h
  165. qemu-config.c
  166. qemu-config.h
  167. qemu-error.c
  168. qemu-error.h
  169. qemu-io.c
  170. qemu-lock.h
  171. qemu-log.h
  172. qemu-malloc.c
  173. qemu-monitor.hx
  174. qemu-objects.h
  175. qemu-option.c
  176. qemu-option.h
  177. qemu-options.hx
  178. qemu-queue.h
  179. qemu-sockets-android.c
  180. qemu-sockets.c
  181. qemu-thread.c
  182. qemu-thread.h
  183. qemu-timer.c
  184. qemu-timer.h
  185. qemu_debug.h
  186. qemu_file.h
  187. qemu_socket.h
  188. qemu_timers.h
  189. qerror.c
  190. qerror.h
  191. qfloat.c
  192. qfloat.h
  193. qint.c
  194. qint.h
  195. qjson.c
  196. qjson.h
  197. qlist.c
  198. qlist.h
  199. qobject.h
  200. qstring.c
  201. qstring.h
  202. readline.c
  203. readline.h
  204. README
  205. savevm.c
  206. sdl_keysym.h
  207. shaper.c
  208. shaper.h
  209. sockets.c
  210. sockets.h
  211. softmmu-semi.h
  212. softmmu_defs.h
  213. softmmu_exec.h
  214. softmmu_header.h
  215. softmmu_outside_jit.c
  216. softmmu_outside_jit.h
  217. softmmu_template.h
  218. sparc.ld
  219. sys-tree.h
  220. sysemu.h
  221. tap-win32.c
  222. targphys.h
  223. tcpdump.c
  224. tcpdump.h
  225. thunk.c
  226. thunk.h
  227. trace.c
  228. trace.h
  229. trace_common.h
  230. translate-all.c
  231. translate-op.c
  232. translate.make
  233. uboot_image.h
  234. usb-dummy-android.c
  235. usb-linux.c
  236. user-events-qemu.c
  237. user-events.h
  238. varint.c
  239. varint.h
  240. vgafont.h
  241. vl-android.c
  242. vl.c
  243. vnc-android.c
  244. vnc-tls.h
  245. vnc.c
  246. vnc.h
  247. vnc_keysym.h
  248. vnchextile.h
  249. x86_64.ld