common: Move some cache and MMU functions out of common.h