Home
last modified time | relevance | path

Searched refs:code_ptr (Results 1 – 17 of 17) sorted by relevance

/openbmc/qemu/tcg/
H A Dtcg-pool.c.inc136 a = (void *)ROUND_UP((uintptr_t)s->code_ptr,
138 tcg_out_nop_fill(s->code_ptr, (tcg_insn_unit *)a - s->code_ptr);
160 s->code_ptr = a;
H A Dtcg-ldst.c.inc46 if (unlikely((void *)s->code_ptr > s->code_gen_highwater)) {
H A Dtcg.c67 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
258 *s->code_ptr++ = v; in tcg_out8()
272 *s->code_ptr++ = v; in tcg_out16()
274 tcg_insn_unit *p = s->code_ptr; in tcg_out16()
276 s->code_ptr = p + (2 / TCG_TARGET_INSN_UNIT_SIZE); in tcg_out16()
295 *s->code_ptr++ = v; in tcg_out32()
297 tcg_insn_unit *p = s->code_ptr; in tcg_out32()
299 s->code_ptr = p + (4 / TCG_TARGET_INSN_UNIT_SIZE); in tcg_out32()
318 *s->code_ptr++ = v; in tcg_out64()
320 tcg_insn_unit *p = s->code_ptr; in tcg_out64()
[all …]
H A Dregion.c867 region.after_prologue = s->code_ptr; in tcg_region_prologue_set()
/openbmc/qemu/tcg/tci/
H A Dtcg-target.c.inc232 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
235 intptr_t diff = value - (intptr_t)(code_ptr + 1);
241 tcg_patch32(code_ptr, deposit32(*code_ptr, 32 - type, type, diff));
260 tcg_out_reloc(s, s->code_ptr, 20, l0, 0);
274 diff = p0 - (void *)(s->code_ptr + 1);
314 tcg_out_reloc(s, s->code_ptr, 20, l1, 0);
540 new_pool_label(s, arg, 20, s->code_ptr, 0);
662 new_pool_l2(s, 20, s->code_ptr, 0, (uintptr_t)func, (uintptr_t)cif);
/openbmc/qemu/tcg/mips/
H A Dtcg-target.c.inc159 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
165 return reloc_pc16(code_ptr, (const tcg_insn_unit *)value);
170 *code_ptr = deposit32(*code_ptr, 0, 16, value);
469 uintptr_t from = (uintptr_t)tcg_splitwx_to_rx(s->code_ptr) + 4;
555 new_pool_label(s, arg, R_MIPS_16, s->code_ptr, tcg_tbrel_diff(s, NULL));
995 tcg_out_reloc(s, s->code_ptr, R_MIPS_PC16, l, 0);
1041 tcg_out_reloc(s, s->code_ptr, R_MIPS_PC16, l, 0);
1135 const tcg_insn_unit *tgt_rx = tcg_splitwx_to_rx(s->code_ptr);
1153 if (!reloc_pc16(s->code_ptr - 1, l->raddr)) {
1164 const tcg_insn_unit *tgt_rx = tcg_splitwx_to_rx(s->code_ptr);
[all …]
/openbmc/qemu/tcg/ppc/
H A Dtcg-target.c.inc754 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
766 return reloc_pc14(code_ptr, target);
768 return reloc_pc24(code_ptr, target);
770 return reloc_pc34(code_ptr, target);
781 *code_ptr = (*code_ptr & ~0xfffc) | (value & 0xfffc);
794 code_ptr[0] = deposit32(code_ptr[0], 0, 16, hi >> 16);
795 code_ptr[1] = deposit32(code_ptr[1], 0, 16, lo);
806 return ((uintptr_t)s->code_ptr & 0x3f) == 0x3c;
1239 new_pool_label(s, arg, R_PPC_ADDR16, s->code_ptr,
1246 new_pool_label(s, arg, R_PPC64_PCREL34, s->code_ptr - 2, 0);
[all …]
/openbmc/qemu/tcg/aarch64/
H A Dtcg-target.c.inc120 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
127 return reloc_pc26(code_ptr, (const tcg_insn_unit *)value);
129 return reloc_pc19(code_ptr, (const tcg_insn_unit *)value);
131 return reloc_pc14(code_ptr, (const tcg_insn_unit *)value);
643 uint32_t v = *(uint32_t *)s->code_ptr;
1037 new_pool_l2(s, R_AARCH64_CONDBR19, s->code_ptr, 0, v64, v64);
1040 new_pool_label(s, v64, R_AARCH64_CONDBR19, s->code_ptr, 0);
1132 intptr_t src_rx = (intptr_t)tcg_splitwx_to_rx(s->code_ptr);
1169 new_pool_label(s, value, R_AARCH64_CONDBR19, s->code_ptr, 0);
1433 tcg_out_reloc(s, s->code_ptr, R_AARCH64_JUMP26, l, 0);
[all …]
/openbmc/qemu/tcg/sparc64/
H A Dtcg-target.c.inc464 new_pool_label(s, arg, R_SPARC_13, s->code_ptr,
646 tcg_out_reloc(s, s->code_ptr, R_SPARC_WDISP19, l, 0);
693 tcg_out_reloc(s, s->code_ptr, R_SPARC_WDISP16, l, 0);
981 tcg_code_gen_epilogue = tcg_splitwx_to_rx(s->code_ptr);
1010 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 0)) {
1022 return patch_reloc(s->code_ptr - 1, R_SPARC_WDISP19,
1031 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 0)) {
1039 return patch_reloc(s->code_ptr - 1, R_SPARC_WDISP19,
1124 ldst->label_ptr[0] = s->code_ptr;
1144 ldst->label_ptr[0] = s->code_ptr;
[all …]
/openbmc/qemu/tcg/i386/
H A Dtcg-target.c.inc166 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
172 value -= (uintptr_t)tcg_splitwx_to_rx(code_ptr);
178 tcg_patch32(code_ptr, value);
181 value -= (uintptr_t)tcg_splitwx_to_rx(code_ptr);
185 tcg_patch8(code_ptr, value);
777 intptr_t pc = (intptr_t)s->code_ptr + 5 + ~rm;
1035 new_pool_label(s, arg, R_386_32, s->code_ptr - 4, 0);
1045 new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4);
1047 new_pool_l2(s, R_386_32, s->code_ptr - 4, 0, arg, arg >> 32);
1067 new_pool_label(s, arg, R_386_PC32, s->code_ptr - 4, -4);
[all …]
/openbmc/qemu/include/tcg/
H A Dtcg.h477 tcg_insn_unit *code_ptr; /* pointer for running end of tb */ member
930 return tcg_ptr_byte_diff(target, tcg_splitwx_to_rx(s->code_ptr)); in tcg_pcrel_diff()
956 return tcg_ptr_byte_diff(s->code_ptr, s->code_buf); in tcg_current_code_size()
/openbmc/qemu/tcg/loongarch64/
H A Dtcg-target.c.inc272 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
278 return reloc_br_sk16(code_ptr, (tcg_insn_unit *)value);
280 return reloc_br_sd10k16(code_ptr, (tcg_insn_unit *)value);
395 src_rx = (intptr_t)tcg_splitwx_to_rx(s->code_ptr);
743 tcg_out_reloc(s, s->code_ptr, R_LOONGARCH_BR_SK16, l, 0);
927 return reloc_br_sd10k16(s->code_ptr - 1, target);
939 if (!reloc_br_sk16(l->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) {
954 if (!reloc_br_sk16(l->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) {
1040 ldst->label_ptr[0] = s->code_ptr;
1060 ldst->label_ptr[0] = s->code_ptr;
[all …]
/openbmc/qemu/tcg/riscv/
H A Dtcg-target.c.inc666 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
672 return reloc_sbimm12(code_ptr, (tcg_insn_unit *)value);
674 return reloc_jimm20(code_ptr, (tcg_insn_unit *)value);
676 return reloc_call(code_ptr, (tcg_insn_unit *)value);
825 ret = reloc_call(s->code_ptr - 2, (const tcg_insn_unit *)val);
857 new_pool_label(s, val, R_RISCV_CALL, s->code_ptr, 0);
1213 tcg_out_reloc(s, s->code_ptr, R_RISCV_BRANCH, l, 0);
1596 ret = reloc_call(s->code_ptr - 2, arg);
1639 bool ok = reloc_jimm20(s->code_ptr - 1, target);
1658 if (!reloc_sbimm12(l->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) {
[all …]
/openbmc/qemu/tcg/arm/
H A Dtcg-target.c.inc325 static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
331 return reloc_pc24(code_ptr, (const tcg_insn_unit *)value);
333 return reloc_pc13(code_ptr, (const tcg_insn_unit *)value);
335 return reloc_pc11(code_ptr, (const tcg_insn_unit *)value);
337 return reloc_pc8(code_ptr, (const tcg_insn_unit *)value);
779 new_pool_label(s, arg, R_ARM_PC13, s->code_ptr, 0);
1180 tcg_out_reloc(s, s->code_ptr, R_ARM_PC24, l, 0);
1379 if (!reloc_pc24(lb->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) {
1395 if (!reloc_pc24(lb->label_ptr[0], tcg_splitwx_to_rx(s->code_ptr))) {
1651 ldst->label_ptr[0] = s->code_ptr;
[all …]
/openbmc/qemu/tcg/s390x/
H A Dtcg-target.c.inc1591 tcg_out_reloc(s, s->code_ptr, R_390_PC16DBL, l, 2);
1592 s->code_ptr += 1;
1599 tcg_out_reloc(s, s->code_ptr + 1, R_390_PC16DBL, l, 2);
1609 tcg_out_reloc(s, s->code_ptr + 1, R_390_PC16DBL, l, 2);
1823 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 2)) {
1840 (intptr_t)tcg_splitwx_to_rx(s->code_ptr), 2)) {
1921 ldst->label_ptr[0] = s->code_ptr++;
1945 ldst->label_ptr[0] = s->code_ptr++;
1977 ldst->raddr = tcg_splitwx_to_rx(s->code_ptr);
1993 ldst->raddr = tcg_splitwx_to_rx(s->code_ptr);
[all …]
/openbmc/qemu/target/hexagon/idef-parser/
H A Dparser-helpers.c38 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()
/openbmc/linux/sound/pci/cs46xx/
H A Dcs46xx_dsp_scb_types.h960 code_ptr,