func (u *uc) RegWriteMmr(reg int, value *X86Mmr) error { var val C.uc_x86_mmr val.selector = C.uint16_t(value.Selector) val.base = C.uint64_t(value.Base) val.limit = C.uint32_t(value.Limit) val.flags = C.uint32_t(value.Flags) ucerr := C.uc_reg_write(u.handle, C.int(reg), unsafe.Pointer(&val)) return errReturn(ucerr) }
func (u *uc) RegWrite(reg int, value uint64) error { var val C.uint64_t = C.uint64_t(value) ucerr := C.uc_reg_write(u.handle, C.int(reg), unsafe.Pointer(&val)) return errReturn(ucerr) }