x86: Move common CPU code to its own place