Lines Matching defs:size
204 /** Converts an integer size number into an equivalent hardware register value.
207 * @param size An integer for the operand size of the breakpoint.
211 convertSizeToArch(uint16_t bp_num, word_t type, word_t size)
218 size = 0;
220 switch (size) {
222 size = X86_DEBUG_BP_SIZE_1B;
225 size = X86_DEBUG_BP_SIZE_2B;
228 size = X86_DEBUG_BP_SIZE_8B;
231 assert(size == 4);
232 size = X86_DEBUG_BP_SIZE_4B;
238 return size << X86_DEBUG_BP0_SIZE_SHIFT;
240 return size << X86_DEBUG_BP1_SIZE_SHIFT;
242 return size << X86_DEBUG_BP2_SIZE_SHIFT;
245 return size << X86_DEBUG_BP3_SIZE_SHIFT;
249 /** Reverse of convertSizeToArch(): converts a hardware-specific size value
253 * @return Converted size value.
287 /* Force size to 0 if type is instruction breakpoint. */
418 * @param size positive integer indicating the byte-range size that should
424 uint16_t bp_num, word_t vaddr, word_t types, word_t size, word_t rw)
431 dr7val |= convertSizeToArch(bp_num, types, size);
476 ret.size = convertArchToSize(dr7val, bp_num);