fix simpleCpu to be compilable with the latest API