def coproc_poke(coproc, opcode_1, CRn, CRm, opcode_2, value): reg_entry = _coprocwrite_index(coproc, opcode_1, CRn, CRm, opcode_2) if reg_entry is None: raise ValueError('coprocessor register not present/supported') mem.checkvalue(4, value) _metalcpu.coproc_write(reg_entry[1], value)
def poke(self, value): if not self.writable: raise TypeError('not a writable register') mem.checkvalue(self.bytes, value) self._write(value)