/qemu/target/s390x/tcg/ |
H A D | insn-format.h.inc | 5 F2(RI_a, R(1, 8), I(2,16,16)) 6 F2(RI_b, R(1, 8), I(2,16,16)) 7 F2(RI_c, M(1, 8), I(2,16,16)) 8 F3(RIE_a, R(1, 8), I(2,16,16), M(3,32)) 9 F4(RIE_b, R(1, 8), R(2,12), M(3,32), I(4,16,16)) 10 F4(RIE_c, R(1, 8), I(2,32, 8), M(3,12), I(4,16,16)) 11 F3(RIE_d, R(1, 8), I(2,16,16), R(3,12)) 12 F3(RIE_e, R(1, 8), I(2,16,16), R(3,12)) 13 F5(RIE_f, R(1, 8), R(2,12), I(3,16,8), I(4,24,8), I(5,32,8)) 14 F3(RIE_g, R(1, 8), I(2,16,16), M(3,12)) [all …]
|
H A D | vec.h | 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 18 uint64_t doubleword[2]; 30 * B: [ 0][ 1][ 2][ 3][ 4][ 5][ 6][ 7] - [ 8][ 9][10][11][12][13][14][15] 31 * HW: [ 0][ 1][ 2][ 3] - [ 4][ 5][ 6][ 7] 32 * W: [ 0][ 1] - [ 2][ 3] 36 * B: [ 7][ 6][ 5][ 4][ 3][ 2][ 1][ 0] - [15][14][13][12][11][10][ 9][ 8] 37 * HW: [ 3][ 2][ 1][ 0] - [ 7][ 6][ 5][ 4] 38 * W: [ 1][ 0] - [ 3][ 2] 51 static inline uint8_t s390_vec_read_element8(const S390Vector *v, uint8_t enr) in s390_vec_read_element8() argument 54 return v->byte[H1(enr)]; in s390_vec_read_element8() [all …]
|
/qemu/tests/unit/ |
H A D | test-string-input-visitor.c | 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 20 Visitor *v; member 26 if (data->v) { in visitor_input_teardown() 27 visit_free(data->v); in visitor_input_teardown() 28 data->v = NULL; in visitor_input_teardown() 41 data->v = string_input_visitor_new(string); in visitor_input_test_init() 42 g_assert(data->v); in visitor_input_test_init() 43 return data->v; in visitor_input_test_init() 51 Visitor *v; in test_visitor_in_int() local 53 v = visitor_input_test_init(data, "-42"); in test_visitor_in_int() [all …]
|
H A D | test-keyval.c | 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 59 params = g_strdup_printf("k.%s=v", long_key); in test_keyval_parse() 60 qdict = keyval_parse(params + 2, NULL, NULL, &err); in test_keyval_parse() 71 params = g_strdup_printf("k.%s=v", long_key + 1); in test_keyval_parse() 72 qdict = keyval_parse(params + 2, NULL, NULL, &error_abort); in test_keyval_parse() 74 g_assert_cmpstr(qdict_get_try_str(qdict, long_key + 1), ==, "v"); in test_keyval_parse() 83 g_assert_cmpstr(qdict_get_try_str(sub_qdict, long_key + 1), ==, "v"); in test_keyval_parse() 93 qdict = keyval_parse("a=1,b=2,,x,a=3", NULL, NULL, &error_abort); in test_keyval_parse() 94 g_assert_cmpuint(qdict_size(qdict), ==, 2); in test_keyval_parse() 96 g_assert_cmpstr(qdict_get_try_str(qdict, "b"), ==, "2,x"); in test_keyval_parse() [all …]
|
H A D | test-fifo.c | 9 * This work is licensed under the terms of the GNU LGPL, version 2 or later. 31 * head --v-- tail used = 0 in test_fifo8_pop_bufptr_wrap() 37 * head --v ]-- tail used = 4 in test_fifo8_pop_bufptr_wrap() 38 * FIFO: [ 1 2 3 4 . . . . ] in test_fifo8_pop_bufptr_wrap() 40 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr_wrap() 42 * head --v ]-- tail used = 2 in test_fifo8_pop_bufptr_wrap() 43 * FIFO: [ 1 2 3 4 . . . . ] in test_fifo8_pop_bufptr_wrap() 44 * buf --^ count = 2 in test_fifo8_pop_bufptr_wrap() 46 g_assert(count == 2); in test_fifo8_pop_bufptr_wrap() 51 * tail --]v-- head used = 8 in test_fifo8_pop_bufptr_wrap() [all …]
|
H A D | test-qobject-input-visitor.c | 10 * This work is licensed under the terms of the GNU GPL, version 2 or later. 71 Visitor *v; in visitor_input_test_init_full() local 75 v = test_init_internal(data, keyval, in visitor_input_test_init_full() 78 return v; in visitor_input_test_init_full() 81 static G_GNUC_PRINTF(2, 3) 85 Visitor *v; in visitor_input_test_init() local 89 v = test_init_internal(data, false, in visitor_input_test_init() 92 return v; in visitor_input_test_init() 115 Visitor *v; in test_visitor_in_int() local 117 v = visitor_input_test_init(data, "%d", value); in test_visitor_in_int() [all …]
|
H A D | test-opts-visitor.c | 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 40 Visitor *v; in setup_fixture() local 46 v = opts_visitor_new(opts); in setup_fixture() 47 visit_type_UserDefOptions(v, NULL, &f->userdef, &f->err); in setup_fixture() 48 visit_free(v); in setup_fixture() 182 Visitor *v; in test_opts_range_unvisited() local 184 opts = qemu_opts_parse(qemu_find_opts("userdef"), "ilist=0-2", false, in test_opts_range_unvisited() 187 v = opts_visitor_new(opts); in test_opts_range_unvisited() 189 visit_start_struct(v, NULL, NULL, 0, &error_abort); in test_opts_range_unvisited() 192 visit_start_list(v, "ilist", (GenericList **)&list, sizeof(*list), in test_opts_range_unvisited() [all …]
|
/qemu/hw/display/ |
H A D | vga-helpers.h | 30 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 33 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 75 uint32_t font_data, xorcol, v; in vga_draw_glyph9() local 82 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9() 85 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9() 87 v = (-((font_data >> 0) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9() 88 ((uint32_t *)d)[7] = v; in vga_draw_glyph9() 90 ((uint32_t *)d)[8] = v; in vga_draw_glyph9() 104 uint32_t plane_mask, *palette, data, v; in vga_draw_line2() local 118 v = expand2[GET_PLANE(data, 0)]; in vga_draw_line2() [all …]
|
H A D | omap_lcdc.c | 8 * published by the Free Software Foundation; either version 2 of 60 if (s->palette_done && (s->interrupts & 2)) { in omap_lcd_interrupts() 74 * 2-bit colour 80 uint8_t v, r, g, b; in draw_line2_32() local 83 v = ldub_p((void *) s); in draw_line2_32() 84 r = (pal[v & 3] >> 4) & 0xf0; in draw_line2_32() 85 g = pal[v & 3] & 0xf0; in draw_line2_32() 86 b = (pal[v & 3] << 4) & 0xf0; in draw_line2_32() 89 v >>= 2; in draw_line2_32() 90 r = (pal[v & 3] >> 4) & 0xf0; in draw_line2_32() [all …]
|
/qemu/target/hexagon/imported/mmvec/ |
H A D | ext.idef | 6 * the Free Software Foundation; either version 2 of the License, or 241 …4) " SYNTAXA "(Rx32++#s3)" NT SYNTAXB, ATTRIB,DESCR, { if (fLSBOLD(SYNTAXP##V)) { fEA_REG(RxV); BE… 242 …4) " SYNTAXA "(Rt32+#s4)" NT SYNTAXB, ATTRIB,DESCR, { if (fLSBOLD(SYNTAXP##V)) { fEA_RI(RtV,siV*f… 243 …4) " SYNTAXA "(Rx32++Mu2)" NT SYNTAXB,ATTRIB,DESCR, { if (fLSBOLD(SYNTAXP##V)) { fEA_REG(RxV); BE… 246 …) " SYNTAXA "(Rx32++#s3)" NT SYNTAXB,ATTRIB,DESCR,{ if (fLSBOLDNOT(SYNTAXP##V)) { fEA_REG(RxV); BE… 247 …) " SYNTAXA "(Rt32+#s4)" NT SYNTAXB,ATTRIB,DESCR, { if (fLSBOLDNOT(SYNTAXP##V)) { fEA_RI(RtV,siV*f… 248 …) " SYNTAXA "(Rx32++Mu2)" NT SYNTAXB,ATTRIB,DESCR,{ if (fLSBOLDNOT(SYNTAXP##V)) { fEA_REG(RxV); BE… 451 VddV.v[0].uh[i] = fZE8_16(fGETUBYTE(0, VuV.uh[i])); 452 VddV.v[1].uh[i] = fZE8_16(fGETUBYTE(1, VuV.uh[i]))) 456 VddV.v[0].h[i] = fSE8_16(fGETBYTE(0, VuV.h[i])); [all …]
|
/qemu/host/include/loongarch64/host/ |
H A D | bufferiszero.c.inc | 20 asm("vld $vr0,%2,0\n\t" /* first: buf + 0 */ 24 "vld $vr4,%3,32\n\t" /* e[2] */ 29 "vor.v $vr0,$vr0,$vr1\n\t" 30 "vor.v $vr2,$vr2,$vr3\n\t" 31 "vor.v $vr4,$vr4,$vr5\n\t" 32 "vor.v $vr6,$vr6,$vr7\n\t" 33 "vor.v $vr0,$vr0,$vr2\n\t" 34 "vor.v $vr4,$vr4,$vr6\n\t" 35 "vor.v $vr0,$vr0,$vr4\n\t" 36 "vor.v $vr0,$vr0,$vr8\n\t" [all …]
|
/qemu/host/include/i386/host/ |
H A D | bufferiszero.c.inc | 19 __m128i v = *(__m128i_u *)(buf); 27 v |= e[-1]; w |= e[-2]; 28 SSE_REASSOC_BARRIER(v, w); 29 v |= e[-3]; w |= e[-4]; 30 SSE_REASSOC_BARRIER(v, w); 31 v |= e[-5]; w |= e[-6]; 32 SSE_REASSOC_BARRIER(v, w); 33 v |= e[-7]; v |= w; 41 v = _mm_cmpeq_epi8(v, zero); 42 if (unlikely(_mm_movemask_epi8(v) != 0xFFFF)) { [all …]
|
/qemu/tests/tcg/ppc64/ |
H A D | vsx_f2i_nan.c | 13 vsx_convert_##SRC_T##_vec_to_##DEST_T##_vec(vsx_##SRC_T##_vec_t v) \ 16 asm(#INSN " %x0, %x1" : "=wa" (result) : "wa" (v)); \ 29 static inline vsx_float32_vec_t vsx_float32_is_nan(vsx_float32_vec_t v) in DEFINE_VSX_F2I_FUNC() 36 asm("xvabssp %x0, %x1" : "=wa" (abs_v) : "wa" (v)); in DEFINE_VSX_F2I_FUNC() 37 asm("vcmpgtuw %0, %1, %2" in DEFINE_VSX_F2I_FUNC() 38 : "=v" (result_mask) in DEFINE_VSX_F2I_FUNC() 39 : "v" (abs_v), "v" (f32_pos_inf_bits)); in DEFINE_VSX_F2I_FUNC() 43 static inline vsx_float64_vec_t vsx_float64_is_nan(vsx_float64_vec_t v) in vsx_float64_is_nan() argument 50 asm("xvabsdp %x0, %x1" : "=wa" (abs_v) : "wa" (v)); in vsx_float64_is_nan() 51 asm("vcmpgtud %0, %1, %2" in vsx_float64_is_nan() [all …]
|
/qemu/hw/uefi/ |
H A D | var-service-json.c | 30 '0', '1', '2', '3', '4', '5', '6', '7', in generate_hexstr() 37 dest = g_malloc(len * 2 + 1); in generate_hexstr() 38 for (i = 0; i < len * 2;) { in generate_hexstr() 52 UefiVariable *v; in uefi_vars_to_qapi() local 57 vs->version = 2; in uefi_vars_to_qapi() 65 v = g_new0(UefiVariable, 1); in uefi_vars_to_qapi() 67 v->guid = qemu_uuid_unparse_strdup(&be); in uefi_vars_to_qapi() 68 v->name = uefi_ucs2_to_ascii(var->name, var->name_size); in uefi_vars_to_qapi() 69 v->attr = var->attributes; in uefi_vars_to_qapi() 71 v->data = generate_hexstr(var->data, var->data_size); in uefi_vars_to_qapi() [all …]
|
/qemu/tests/tcg/s390x/ |
H A D | vxeh2_vcvt.c | 2 * vxeh2_vcvt: vector-enhancements facility 2 vector convert * 15 : [v1] "=v" (v1->v) in vcfps() 16 : [v2] "v" (v2->v) in vcfps() 26 : [v1] "=v" (v1->v) in vcfpl() 27 : [v2] "v" (v2->v) in vcfpl() 37 : [v1] "=v" (v1->v) in vcsfp() 38 : [v2] "v" (v2->v) in vcsfp() 48 : [v1] "=v" (v1->v) in vclfp() 49 : [v2] "v" (v2->v) in vclfp() 58 S390Vector vs_i32 = { .w[0] = 1, .w[1] = 64, .w[2] = 1024, .w[3] = -10 }; in main() [all …]
|
/qemu/target/i386/tcg/ |
H A D | decode-new.c.inc | 34 * "v" or "z" sizes. The decoder simply makes them separate operand sizes. 65 * The main difference is that the V, U and W types are extended to 73 * the V/U/H/W types to P/N/P/Q if there is no prefix, as well as changing 98 * table 2-16, but with a few exceptions. 125 * (+) Not found in Intel's table 2-16 180 X86_OP_GROUP3(op, op0, s0, 2op, s0, None, None, ## __VA_ARGS__) 182 X86_OP_GROUP3(op, op0, s0, 2op, s0, op1, s1, ## __VA_ARGS__) 218 X86_OP_ENTRY3(op, op0, s0, 2op, s0, op1, s1, ## __VA_ARGS__) 224 X86_OP_ENTRY3(op, op0, s0, 2op, s0, None, None, ## __VA_ARGS__) 243 #define vex2 .vex_class = 2, [all …]
|
/qemu/target/mips/system/ |
H A D | machine.c | 26 fpr_t *v = pv; in get_fpr() local 29 qemu_get_sbe64s(f, &v->wr.d[i]); in get_fpr() 38 fpr_t *v = pv; in put_fpr() local 41 qemu_put_sbe64s(f, &v->wr.d[i]); in put_fpr() 108 .version_id = 2, 109 .minimum_version_id = 2, 115 .version_id = 2, 116 .minimum_version_id = 2, 139 r4k_tlb_t *v = pv; in get_tlb() local 142 qemu_get_betls(f, &v->VPN); in get_tlb() [all …]
|
/qemu/target/i386/ |
H A D | ops_sse.h | 48 #define PACK_WIDTH (LANE_WIDTH / 2) 109 for (int i = 0; i < 2 << SHIFT; i++) { in glue() 124 for (int i = 0; i < 2 << SHIFT; i++) { in glue() 138 for (int i = 0; i < 2 << SHIFT; i++) { in glue() 221 void glue(name, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) \ 225 d->elem(i) = F(v->elem(i), s->elem(i)); \ 236 SSE_HELPER_2(name, L, 2 << SHIFT, F) 317 d->W(2) = FMULHRW(d->W(2), s->W(2)); in SSE_HELPER_W() 325 void glue(helper_pmuludq, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s) in SSE_HELPER_B() 330 d->Q(i) = (uint64_t)s->L(i * 2) * (uint64_t)v->L(i * 2); in SSE_HELPER_B() [all …]
|
/qemu/audio/ |
H A D | pwaudio.c | 61 PWVoice v; member 66 PWVoice v; member 69 #define PW_VOICE_IN(v) ((PWVoiceIn *)v) argument 70 #define PW_VOICE_OUT(v) ((PWVoiceOut *)v) argument 75 PWVoice *v = (PWVoice *) data; in stream_destroy() local 76 spa_hook_remove(&v->stream_listener); in stream_destroy() 77 v->stream = NULL; in stream_destroy() 84 PWVoice *v = data; in playback_on_process() local 91 assert(v->stream); in playback_on_process() 94 b = pw_stream_dequeue_buffer(v->stream); in playback_on_process() [all …]
|
H A D | mixeng_template.h | 38 static inline mixeng_real glue (conv_, ET) (IN_T v) in glue() 40 IN_T nv = ENDIAN_CONVERT (v); in glue() 44 return nv * (2.f / ((mixeng_real)IN_MAX - IN_MIN)); in glue() 46 return (nv - HALF) * (2.f / (mixeng_real)IN_MAX); in glue() 50 return nv / (((mixeng_real)IN_MAX - IN_MIN) / 2.f); in glue() 52 return (nv - HALF) / ((mixeng_real)IN_MAX / 2.f); in glue() 57 static inline IN_T glue (clip_, ET) (mixeng_real v) in glue() 59 if (v >= 1.f) { in glue() 61 } else if (v < -1.f) { in glue() 66 return ENDIAN_CONVERT((IN_T)(v * (((mixeng_real)IN_MAX - IN_MIN) / 2.f))); in glue() [all …]
|
/qemu/host/include/ppc/host/crypto/ |
H A D | aes-round.h | 30 asm("lvx %0, 0, %1" : "=v"(r) : "r"(p), "m"(*p)); in aes_accel_ld() 33 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, in aes_accel_ld() 36 "vperm %0, %0, %0, %2" in aes_accel_ld() 37 : "=v"(r) : "r"(p), "v"(rev), "m"(*p)); in aes_accel_ld() 40 asm("lxvb16x %x0, 0, %1" : "=v"(r) : "r"(p), "m"(*p)); in aes_accel_ld() 43 "xxpermdi %x0, %x0, %x0, 2" in aes_accel_ld() 44 : "=v"(r) : "r"(p), "m"(*p)); in aes_accel_ld() 53 asm("stvx %1, 0, %2" : "=m"(*p) : "v"(r), "r"(p)); in aes_accel_st() 56 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, in aes_accel_st() 58 asm("vperm %1, %1, %1, %2\n\t" in aes_accel_st() [all …]
|
/qemu/target/hexagon/mmvec/ |
H A D | macros.h | 6 * the Free Software Foundation; either version 2 of the License, or 76 ((fGETQBIT(QREG, (IDX * 4 + 2)) ? 0xFF : 0x0) << 16) | \ 79 #define fGETCRUMB(IDX, SRC) (fSXTN(2, 8, (SRC >> (2 * IDX)) & 0x3)) 81 ((fGETCRUMB(IDX, SRC) >= 0 ? (2 - fGETCRUMB(IDX, SRC)) \ 84 (((fGETQBIT(QREG, (IDX * 2 + 0)) ? 0xFF : 0x0) << 0) | \ 85 ((fGETQBIT(QREG, (IDX * 2 + 1)) ? 0xFF : 0x0) << 8)) 141 for (int i0 = 0; i0 < 2; i0++) { \ 143 LOG_VTCM_BYTE(va + i0, log_byte, INC.ub[2 * IDX + i0], \ 144 2 * IDX + i0); \ 154 for (int i0 = 0; i0 < 2; i0++) { \ [all …]
|
/qemu/pc-bios/ |
HD | openbios-ppc | ... | ff|` v | v`` ~ | 00 006 v l8 l l8l ~ ~L 2~ p p ... |
/qemu/tests/tcg/i386/ |
H A D | x86.csv | 16 # 2. The Go assembler instruction mnemonic. For example, "SHRL imm8, r/m32". 105 # V, I, N.E., N.P., N.S., or N.I. 107 # column is "V" (valid) or not. 110 # with an incorrect "V" in the Valid32 column. 176 "PUSH imm32","-/PUSHL/PUSHQ imm32","-/pushl/pushq imm32","68 id","V","N.S.","","operand32","r","Y",… 177 "PUSH imm32","-/PUSHL/PUSHQ imm32","-/pushl/pushq imm32","68 id","N.S.","V","","default64","r","Y",… 178 "AAA","AAA","aaa","37","V","N.S.","","","","","" 179 "AAD","AAD","aad","D5 0A","V","I","","pseudo","","","" 180 "AAD imm8u","AAD imm8u","aad imm8u","D5 ib","V","N.S.","","","r","","" 181 "AAM","AAM","aam","D4 0A","V","I","","pseudo","","","" [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 171 | 11 # the Free Software Foundation; either version 2 of the License, or 35 trap "_cleanup; exit \$status" 0 1 2 3 15 76 $QEMU_IO -c "read -v $((img_offset-2)) 4" $TEST_IMG | _filter_qemu_io 84 $QEMU_IO -c "write $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io 104 $QEMU_IO -c "read $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io 125 $QEMU_IO -c "read -v $((img_offset-2)) 4" $TEST_IMG | _filter_qemu_io 129 $QEMU_IO -c "write -z $((test_size-1)) 2" "$(img_json)" | _filter_qemu_io 133 $QEMU_IO -c "write -z $((test_size-2)) 2" "$(img_json)" | _filter_qemu_io 134 $QEMU_IO -c "read -v $((img_offset+test_size-2)) 2" $TEST_IMG | _filter_qemu_io 135 $QEMU_IO -c "read -v $((img_offset+test_size)) 2" $TEST_IMG | _filter_qemu_io [all …]
|