Cleanup and refactor.

Refactor qemu_tcg_cpu_thread_fn, marss_sim, and sim_cpu_exec a
little in an attempt to boost performance. Add an assertion to
tcg_exec_all() that ensures tcg never executes code during
simulation.