Replace R/W flags on INTMask register.