target-arm: Add write_type argument to cpsr_write()