core: add cpu context