/qemu/tcg/mips/ |
H A D | tcg-target.c.inc | 170 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 176 return reloc_pc16(code_ptr, (const tcg_insn_unit *)value); 181 *code_ptr = deposit32(*code_ptr, 0, 16, value); 474 uintptr_t from = (uintptr_t)tcg_splitwx_to_rx(s->code_ptr) + 4; 560 new_pool_label(s, arg, R_MIPS_16, s->code_ptr, tcg_tbrel_diff(s, NULL)); 914 tcg_out_reloc(s, s->code_ptr, R_MIPS_PC16, l, 0); 982 tcg_out_reloc(s, s->code_ptr, R_MIPS_PC16, l, 0); 1092 const tcg_insn_unit *tgt_rx = tcg_splitwx_to_rx(s->code_ptr); 1110 if (!reloc_pc16(s->code_ptr - 1, l->raddr)) { 1121 const tcg_insn_unit *tgt_rx = tcg_splitwx_to_rx(s->code_ptr); [all …]
|
/qemu/tcg/ppc/ |
H A D | tcg-target.c.inc | 756 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 768 return reloc_pc14(code_ptr, target); 770 return reloc_pc24(code_ptr, target); 772 return reloc_pc34(code_ptr, target); 783 *code_ptr = (*code_ptr & ~0xfffc) | (value & 0xfffc); 796 code_ptr[0] = deposit32(code_ptr[0], 0, 16, hi >> 16); 797 code_ptr[1] = deposit32(code_ptr[1], 0, 16, lo); 808 return ((uintptr_t)s->code_ptr & 0x3f) == 0x3c; 1136 new_pool_label(s, arg, R_PPC_ADDR16, s->code_ptr, 1143 new_pool_label(s, arg, R_PPC64_PCREL34, s->code_ptr - 2, 0); [all …]
|
/qemu/include/tcg/ |
H A D | tcg.h | 378 tcg_insn_unit *code_ptr; /* pointer for running end of tb */ member 886 return tcg_ptr_byte_diff(target, tcg_splitwx_to_rx(s->code_ptr)); in tcg_pcrel_diff() 912 return tcg_ptr_byte_diff(s->code_ptr, s->code_buf); in tcg_current_code_size()
|
/qemu/tcg/aarch64/ |
H A D | tcg-target.c.inc | 131 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 138 return reloc_pc26(code_ptr, (const tcg_insn_unit *)value); 140 return reloc_pc19(code_ptr, (const tcg_insn_unit *)value); 142 return reloc_pc14(code_ptr, (const tcg_insn_unit *)value); 656 uint32_t v = *(uint32_t *)s->code_ptr; 1050 new_pool_l2(s, R_AARCH64_CONDBR19, s->code_ptr, 0, v64, v64); 1053 new_pool_label(s, v64, R_AARCH64_CONDBR19, s->code_ptr, 0); 1145 intptr_t src_rx = (intptr_t)tcg_splitwx_to_rx(s->code_ptr); 1182 new_pool_label(s, value, R_AARCH64_CONDBR19, s->code_ptr, 0); 1413 tcg_out_reloc(s, s->code_ptr, R_AARCH64_JUMP26, l, 0); [all …]
|
/qemu/tcg/tci/ |
H A D | tcg-target.c.inc | 96 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 99 intptr_t diff = value - (intptr_t)(code_ptr + 1); 105 tcg_patch32(code_ptr, deposit32(*code_ptr, 32 - type, type, diff)); 124 tcg_out_reloc(s, s->code_ptr, 20, l0, 0); 138 diff = p0 - (void *)(s->code_ptr + 1); 178 tcg_out_reloc(s, s->code_ptr, 20, l1, 0); 355 new_pool_label(s, arg, 20, s->code_ptr, 0); 463 new_pool_l2(s, 20, s->code_ptr, 0, (uintptr_t)func, (uintptr_t)cif);
|
/qemu/tcg/i386/ |
H A D | tcg-target.c.inc | 183 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 189 value -= (uintptr_t)tcg_splitwx_to_rx(code_ptr); 195 tcg_patch32(code_ptr, value); 198 value -= (uintptr_t)tcg_splitwx_to_rx(code_ptr); 202 tcg_patch8(code_ptr, value); 795 intptr_t pc = (intptr_t)s->code_ptr + 5 + ~rm; 1053 new_pool_label(s, arg, R_386_32, s->code_ptr - 4, 0); 1063 new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4); 1065 new_pool_l2(s, R_386_32, s->code_ptr - 4, 0, arg, arg >> 32); 1085 new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4); [all …]
|
/qemu/tcg/loongarch64/ |
H A D | tcg-target.c.inc | 284 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 290 return reloc_br_sk16(code_ptr, (tcg_insn_unit *)value); 292 return reloc_br_sd10k16(code_ptr, (tcg_insn_unit *)value); 407 src_rx = (intptr_t)tcg_splitwx_to_rx(s->code_ptr); 761 tcg_out_reloc(s, s->code_ptr, R_LOONGARCH_BR_SD10K16, l, 0); 795 tcg_out_reloc(s, s->code_ptr, R_LOONGARCH_BR_SK16, l, 0); 984 return reloc_br_sd10k16(s->code_ptr - 1, target); 996 if (!reloc_br_sk16(l->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) { 1011 if (!reloc_br_sk16(l->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) { 1097 ldst->label_ptr[0] = s->code_ptr; [all …]
|
/qemu/tcg/riscv/ |
H A D | tcg-target.c.inc | 653 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 659 return reloc_sbimm12(code_ptr, (tcg_insn_unit *)value); 661 return reloc_jimm20(code_ptr, (tcg_insn_unit *)value); 663 return reloc_call(code_ptr, (tcg_insn_unit *)value); 812 ret = reloc_call(s->code_ptr - 2, (const tcg_insn_unit *)val); 844 new_pool_label(s, val, R_RISCV_CALL, s->code_ptr, 0); 1112 tcg_out_reloc(s, s->code_ptr, R_RISCV_JAL, l, 0); 1145 tcg_out_reloc(s, s->code_ptr, R_RISCV_BRANCH, l, 0); 1574 ret = reloc_call(s->code_ptr - 2, arg); 1617 bool ok = reloc_jimm20(s->code_ptr - 1, target); [all …]
|
/qemu/tcg/ |
H A D | tcg.c | 69 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 267 *s->code_ptr++ = v; in tcg_out8() 281 *s->code_ptr++ = v; in tcg_out16() 283 tcg_insn_unit *p = s->code_ptr; in tcg_out16() 285 s->code_ptr = p + (2 / TCG_TARGET_INSN_UNIT_SIZE); in tcg_out16() 304 *s->code_ptr++ = v; in tcg_out32() 306 tcg_insn_unit *p = s->code_ptr; in tcg_out32() 308 s->code_ptr = p + (4 / TCG_TARGET_INSN_UNIT_SIZE); in tcg_out32() 327 *s->code_ptr++ = v; in tcg_out64() 329 tcg_insn_unit *p = s->code_ptr; in tcg_out64() [all …]
|
H A D | region.c | 864 region.after_prologue = s->code_ptr; in tcg_region_prologue_set()
|
/qemu/tcg/arm/ |
H A D | tcg-target.c.inc | 333 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 339 return reloc_pc24(code_ptr, (const tcg_insn_unit *)value); 341 return reloc_pc13(code_ptr, (const tcg_insn_unit *)value); 343 return reloc_pc11(code_ptr, (const tcg_insn_unit *)value); 345 return reloc_pc8(code_ptr, (const tcg_insn_unit *)value); 781 new_pool_label(s, arg, R_ARM_PC13, s->code_ptr, 0); 1141 tcg_out_reloc(s, s->code_ptr, R_ARM_PC24, l, 0); 1354 if (!reloc_pc24(lb->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) { 1370 if (!reloc_pc24(lb->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) { 1607 ldst->label_ptr[0] = s->code_ptr; [all …]
|
/qemu/tcg/sparc64/ |
H A D | tcg-target.c.inc | 476 new_pool_label(s, arg, R_SPARC_13, s->code_ptr, 643 tcg_out_reloc(s, s->code_ptr, R_SPARC_WDISP19, l, 0); 695 tcg_out_reloc(s, s->code_ptr, R_SPARC_WDISP16, l, 0); 1009 tcg_code_gen_epilogue = tcg_splitwx_to_rx(s->code_ptr); 1038 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 0)) { 1050 return patch_reloc(s->code_ptr - 1, R_SPARC_WDISP19, 1059 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 0)) { 1067 return patch_reloc(s->code_ptr - 1, R_SPARC_WDISP19, 1152 ldst->label_ptr[0] = s->code_ptr; 1172 ldst->label_ptr[0] = s->code_ptr; [all …]
|
/qemu/tcg/s390x/ |
H A D | tcg-target.c.inc | 996 new_pool_label(s, sval, R_390_PC32DBL, s->code_ptr - 2, 2); 1687 tcg_out_reloc(s, s->code_ptr, R_390_PC16DBL, l, 2); 1688 s->code_ptr += 1; 1700 tcg_out_reloc(s, s->code_ptr + 1, R_390_PC16DBL, l, 2); 1710 tcg_out_reloc(s, s->code_ptr + 1, R_390_PC16DBL, l, 2); 1942 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 2)) { 1959 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 2)) { 2040 ldst->label_ptr[0] = s->code_ptr++; 2064 ldst->label_ptr[0] = s->code_ptr++; 2096 ldst->raddr = tcg_splitwx_to_rx(s->code_ptr); [all …]
|
/qemu/target/hexagon/idef-parser/ |
H A D | parser-helpers.c | 38 const char *code_ptr = c->input_buffer; in yyerror() local 44 if (code_ptr[i] != '\n') { in yyerror() 45 fprintf(stderr, "%c", code_ptr[i]); in yyerror() 52 code_ptr[locp->first_column - 10 + i] != '\0' && in yyerror() 53 code_ptr[locp->first_column - 10 + i] != '\n'; in yyerror() 55 fprintf(stderr, "%c", code_ptr[locp->first_column - 10 + i]); in yyerror()
|