exec: prepare for splitting

Make s_cputlb_empty_entry 'const'.

Rename tlb_flush_jmp_cache() to tb_flush_jmp_cache().

Refactor code to add cpu_tlb_reset_dirty_all(),
memory_region_section_get_iotlb() and
memory_region_is_unassigned().

Remove unused cpu_tlb_update_dirty().

Fix coding style in areas to be moved.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2 files changed
tree: e2d57c9ce580d8db050b77dca39dd3ea4d779c15
  1. audio/
  2. block/
  3. bsd-user/
  4. default-configs/
  5. docs/
  6. fpu/
  7. fsdev/
  8. gdb-xml/
  9. hw/
  10. include/
  11. libcacard/
  12. linux-headers/
  13. linux-user/
  14. net/
  15. pc-bios/
  16. qapi/
  17. qga/
  18. QMP/
  19. qom/
  20. roms/
  21. scripts/
  22. slirp/
  23. sysconfigs/
  24. target-alpha/
  25. target-arm/
  26. target-cris/
  27. target-i386/
  28. target-lm32/
  29. target-m68k/
  30. target-microblaze/
  31. target-mips/
  32. target-ppc/
  33. target-s390x/
  34. target-sh4/
  35. target-sparc/
  36. target-unicore32/
  37. target-xtensa/
  38. tcg/
  39. tests/
  40. trace/
  41. ui/
  42. .gitignore
  43. .gitmodules
  44. .mailmap
  45. a.out.h
  46. acl.c
  47. acl.h
  48. aes.c
  49. aes.h
  50. aio.c
  51. alpha-dis.c
  52. alpha.ld
  53. arch_init.c
  54. arch_init.h
  55. arm-dis.c
  56. arm-semi.c
  57. arm.ld
  58. async.c
  59. balloon.c
  60. balloon.h
  61. bitmap.c
  62. bitmap.h
  63. bitops.c
  64. bitops.h
  65. block-migration.c
  66. block-migration.h
  67. block.c
  68. block.h
  69. block_int.h
  70. blockdev.c
  71. blockdev.h
  72. bswap.h
  73. bt-host.c
  74. bt-host.h
  75. bt-vhci.c
  76. buffered_file.c
  77. buffered_file.h
  78. cache-utils.c
  79. cache-utils.h
  80. Changelog
  81. cmd.c
  82. cmd.h
  83. CODING_STYLE
  84. compatfd.c
  85. compatfd.h
  86. compiler.h
  87. config.h
  88. configure
  89. console.c
  90. console.h
  91. COPYING
  92. COPYING.LIB
  93. coroutine-gthread.c
  94. coroutine-sigaltstack.c
  95. coroutine-ucontext.c
  96. coroutine-win32.c
  97. cpu-all.h
  98. cpu-common.h
  99. cpu-defs.h
  100. cpu-exec.c
  101. cpus.c
  102. cpus.h
  103. cris-dis.c
  104. cursor.c
  105. cursor_hidden.xpm
  106. cursor_left_ptr.xpm
  107. cutils.c
  108. def-helper.h
  109. device_tree.c
  110. device_tree.h
  111. dis-asm.h
  112. disas.c
  113. disas.h
  114. dma-helpers.c
  115. dma.h
  116. dyngen-exec.h
  117. elf.h
  118. envlist.c
  119. envlist.h
  120. error.c
  121. error.h
  122. error_int.h
  123. event_notifier.c
  124. event_notifier.h
  125. exec-all.h
  126. exec-memory.h
  127. exec-obsolete.h
  128. exec.c
  129. gdbstub.c
  130. gdbstub.h
  131. gen-icount.h
  132. HACKING
  133. hmp-commands.hx
  134. hmp.c
  135. hmp.h
  136. host-utils.c
  137. host-utils.h
  138. hppa-dis.c
  139. hppa.ld
  140. i386-dis.c
  141. i386.ld
  142. ia64-dis.c
  143. ia64.ld
  144. input.c
  145. int128.h
  146. iohandler.c
  147. ioport-user.c
  148. ioport.c
  149. ioport.h
  150. iorange.h
  151. iov.c
  152. iov.h
  153. json-lexer.c
  154. json-lexer.h
  155. json-parser.c
  156. json-parser.h
  157. json-streamer.c
  158. json-streamer.h
  159. kvm-all.c
  160. kvm-stub.c
  161. kvm.h
  162. libfdt_env.h
  163. LICENSE
  164. linux-aio.c
  165. lm32-dis.c
  166. m68k-dis.c
  167. m68k-semi.c
  168. m68k.ld
  169. main-loop.c
  170. main-loop.h
  171. MAINTAINERS
  172. Makefile
  173. Makefile.dis
  174. Makefile.hw
  175. Makefile.objs
  176. Makefile.target
  177. Makefile.user
  178. memory.c
  179. memory.h
  180. microblaze-dis.c
  181. migration-exec.c
  182. migration-fd.c
  183. migration-tcp.c
  184. migration-unix.c
  185. migration.c
  186. migration.h
  187. mips-dis.c
  188. mips.ld
  189. module.c
  190. module.h
  191. monitor.c
  192. monitor.h
  193. nbd.c
  194. nbd.h
  195. net.c
  196. net.h
  197. notify.c
  198. notify.h
  199. os-posix.c
  200. os-win32.c
  201. osdep.c
  202. osdep.h
  203. oslib-posix.c
  204. oslib-win32.c
  205. path.c
  206. pci-ids.txt
  207. pflib.c
  208. pflib.h
  209. poison.h
  210. posix-aio-compat.c
  211. ppc-dis.c
  212. ppc.ld
  213. ppc64.ld
  214. qapi-schema-guest.json
  215. qapi-schema-test.json
  216. qapi-schema.json
  217. qbool.c
  218. qbool.h
  219. qdict-test-data.txt
  220. qdict.c
  221. qdict.h
  222. qemu-aio.h
  223. qemu-barrier.h
  224. qemu-bridge-helper.c
  225. qemu-char.c
  226. qemu-char.h
  227. qemu-common.h
  228. qemu-config.c
  229. qemu-config.h
  230. qemu-coroutine-int.h
  231. qemu-coroutine-io.c
  232. qemu-coroutine-lock.c
  233. qemu-coroutine-sleep.c
  234. qemu-coroutine.c
  235. qemu-coroutine.h
  236. qemu-doc.texi
  237. qemu-error.c
  238. qemu-error.h
  239. qemu-file.h
  240. qemu-ga.c
  241. qemu-img-cmds.hx
  242. qemu-img.c
  243. qemu-img.texi
  244. qemu-io.c
  245. qemu-lock.h
  246. qemu-log.h
  247. qemu-nbd.c
  248. qemu-nbd.texi
  249. qemu-objects.h
  250. qemu-option.c
  251. qemu-option.h
  252. qemu-options-wrapper.h
  253. qemu-options.h
  254. qemu-options.hx
  255. qemu-os-posix.h
  256. qemu-os-win32.h
  257. qemu-progress.c
  258. qemu-queue.h
  259. qemu-sockets.c
  260. qemu-tech.texi
  261. qemu-thread-posix.c
  262. qemu-thread-posix.h
  263. qemu-thread-win32.c
  264. qemu-thread-win32.h
  265. qemu-thread.h
  266. qemu-timer-common.c
  267. qemu-timer.c
  268. qemu-timer.h
  269. qemu-tls.h
  270. qemu-tool.c
  271. qemu-user.c
  272. qemu-x509.h
  273. qemu-xattr.h
  274. qemu.sasl
  275. qemu_socket.h
  276. qerror.c
  277. qerror.h
  278. qfloat.c
  279. qfloat.h
  280. qint.c
  281. qint.h
  282. qjson.c
  283. qjson.h
  284. qlist.c
  285. qlist.h
  286. qmp-commands.hx
  287. qmp.c
  288. qobject.h
  289. qstring.c
  290. qstring.h
  291. qtest.c
  292. qtest.h
  293. range.h
  294. readline.c
  295. readline.h
  296. README
  297. rules.mak
  298. s390-dis.c
  299. s390.ld
  300. savevm.c
  301. sh4-dis.c
  302. softmmu-semi.h
  303. softmmu_defs.h
  304. softmmu_exec.h
  305. softmmu_header.h
  306. softmmu_template.h
  307. sparc-dis.c
  308. sparc.ld
  309. sparc64.ld
  310. spice-qemu-char.c
  311. sysemu.h
  312. targphys.h
  313. tcg-runtime.c
  314. tci-dis.c
  315. tci.c
  316. thunk.c
  317. thunk.h
  318. TODO
  319. trace-events
  320. translate-all.c
  321. uboot_image.h
  322. user-exec.c
  323. VERSION
  324. version.rc
  325. vgafont.h
  326. vl.c
  327. vmstate.h
  328. x86_64.ld
  329. xen-all.c
  330. xen-mapcache.c
  331. xen-mapcache.h
  332. xen-stub.c
  333. xtensa-semi.c