x86_common refactor part1 done