I am new to QEMU, and I am trying to get a basic understanding of QEMU's internal operations. There are two statements I've come across in the documentation that I am trying to figure out how they fit together.
Like bochs , QEMU emulates an x86 CPU.
The whole translation task thus consists of two parts: blocks of target code (TBs) being rewritten in TCG ops - a kind of machine-independent intermediate notation, and subsequently this notation being compiled for the host's architecture by TCG.
Since the target code is getting translated to TCG ops, and QEMU is emulating an x86 CPU, then wouldn't the TCG ops need to get translated to x86 to run on the emulated x86 CPU? Why would TCG ops get compiled into the host's architecture?
Any help or reference to additional documentation is appreciated.