'Get the size of a register.
:param int reg_offset: Offset of the register.
:return: Size in bytes.
:rtype: int'

def _get_register_size(self, reg_offset):

    if (reg_offset in self.project.arch.register_names):
        reg_name = self.project.arch.register_names[reg_offset]
        reg_size = self.project.arch.registers[reg_name][1]
        return reg_size
    l.warning('_get_register_size():    unsupported    register    offset    %d.    Assum    size    1.    More    register    name    mappings    should    be    implemented    in    archinfo.', reg_offset)
    return 1
