• Home
  • Raw
  • Download

Lines Matching refs:insn_cache

544 	cs_mem_free(ud->insn_cache);  in cs_close()
829 cs_insn *insn_cache; // cache contains disassembled instructions in cs_disasm() local
872 insn_cache = total; in cs_disasm()
883 insn_cache->detail = cs_mem_malloc(sizeof(cs_detail)); in cs_disasm()
885 insn_cache->detail = NULL; in cs_disasm()
889 mci.flat_insn = insn_cache; in cs_disasm()
906 handle->insn_id(handle, insn_cache, mci.Opcode); in cs_disasm()
909 fill_insn(handle, insn_cache, ss.buffer, &mci, handle->post_printer, buffer); in cs_disasm()
913 insn_cache->id += mci.popcode_adjust; in cs_disasm()
921 cs_mem_free(insn_cache->detail); in cs_disasm()
943 insn_cache->id = 0; // invalid ID for this "data" instruction in cs_disasm()
944 insn_cache->address = offset; in cs_disasm()
945 insn_cache->size = (uint16_t)skipdata_bytes; in cs_disasm()
946 memcpy(insn_cache->bytes, buffer, skipdata_bytes); in cs_disasm()
948 insn_cache->mnemonic[0] = '\0'; in cs_disasm()
949 insn_cache->op_str[0] = '\0'; in cs_disasm()
951 strncpy(insn_cache->mnemonic, handle->skipdata_setup.mnemonic, in cs_disasm()
952 sizeof(insn_cache->mnemonic) - 1); in cs_disasm()
953 skipdata_opstr(insn_cache->op_str, buffer, skipdata_bytes); in cs_disasm()
955 insn_cache->detail = NULL; in cs_disasm()
976 insn_cache = (cs_insn *)total; in cs_disasm()
977 for (i = 0; i < c; i++, insn_cache++) in cs_disasm()
978 cs_mem_free(insn_cache->detail); in cs_disasm()
989 insn_cache = (cs_insn *)((char *)total + sizeof(cs_insn) * c); in cs_disasm()
994 insn_cache++; in cs_disasm()
1007 tmp = cs_mem_realloc(total, total_size - (cache_size - f) * sizeof(*insn_cache)); in cs_disasm()
1011 insn_cache = (cs_insn *)total; in cs_disasm()
1012 for (i = 0; i < c; i++, insn_cache++) in cs_disasm()
1013 cs_mem_free(insn_cache->detail); in cs_disasm()