Fixes for obvious ARMv7 bugs in emulator.

This CL doesn't fix ARMv7 problems in the emulator (emulated system still
crashes, although with these fixes it crashes much later than without them),
however, this CL fixes real bugs related to IT block translations.
In particular, it fixes:
- Wrong ITSTATE calculation on condition that gen_intermediate_code_internal
is called with search_pc parameter set to 1. In the original code ITSTATE was
blindly inherited from the CPU's condexec_bits field, without consideration
that translation could be performed starting from an address that has nothing
to do with the current ITSTATE.

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