Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
qemu では、命令を与えると、特定のアーキテクチャのマシン コードに変換されます。このコードをファイルに書きたいと思います。そのために、cpu-exec.cで生成されたコードが取得されると思います(実行のために返されます)。ファイルにコピーするにはどうすればよいですか?
/qemu-0.14.0/cpu-exec.c
find cpu_gen_code() @ translate-all.c:57, -to-> @ line104: log_disas(tb->tc_ptr, *gen_code_size_ptr); ハッキングしてみてください。