Rewrite arm cache code to handle more operations, implement more stubs