linux-user: introduce functions to detect CPU type