sim: fixup cache addresses and masks.