Move some marco and structure delcaration to header file.
Update target qemu.