/qemu/tests/tcg/s390x/ |
H A D | add-logical-with-carry.c | 16 * Each test starts with CC 0 and executes two chained ADD LOGICAL WITH 42 unsigned long c, int *cc) in test32rm() argument 46 asm("xr %[cc],%[cc]\n" in test32rm() 49 "ipm %[cc]" in test32rm() 50 : [a] "+&r" (a32), [cc] "+&r" (*cc) in test32rm() 52 : "cc"); in test32rm() 53 *cc >>= 28; in test32rm() 60 unsigned long c, int *cc) in test32mr() argument 64 asm("xr %[cc],%[cc]\n" in test32mr() 67 "ipm %[cc]" in test32mr() [all …]
|
H A D | ex-relative-long.c | 7 long (*func)(long reg, long *cc); 32 /* Initial cc value. */ 33 #define CC 0 macro 47 F(larl, (long)&mem[MEM_IDX], MEM, CC) \ 48 F(lgfrl, 0xfffffffffedcba98, MEM, CC) \ 49 F(lghrl, 0xfffffffffffffedc, MEM, CC) \ 50 F(lgrl, MEM, MEM, CC) \ 51 F(lhrl, 0x12345678fffffedc, MEM, CC) \ 52 F(llghrl, 0x000000000000fedc, MEM, CC) \ 53 F(llhrl, 0x123456780000fedc, MEM, CC) \ [all …]
|
H A D | rxsbg.c | 10 rxsbg(unsigned long *r1, unsigned long r2, int i3, int i4, int i5, int *cc) in rxsbg() argument 13 "ipm %[cc]" in rxsbg() 14 : [r1] "+r" (*r1), [cc] "=r" (*cc) in rxsbg() 16 : "cc"); in rxsbg() 17 *cc = (*cc >> 28) & 3; in rxsbg() 23 int cc; in test_cc0() local 25 rxsbg(&r1, 3, 61 | 0x80, 62, 1, &cc); in test_cc0() 27 assert(cc == 0); in test_cc0() 33 int cc; in test_cc1() local 35 rxsbg(&r1, 3, 61 | 0x80, 62, 1, &cc); in test_cc1() [all …]
|
H A D | shift.c | 6 static uint64_t _name(uint64_t op1, uint64_t op2, uint64_t *cc) \ 8 asm(" sll %[cc],28\n" \ 9 " spm %[cc]\n" \ 11 " ipm %[cc]\n" \ 12 " srl %[cc],28" \ 14 [cc] "+&r" (*cc) \ 16 : "cc"); \ 27 uint64_t *cc) \ 34 asm(" sll %[cc],28\n" \ 35 " spm %[cc]\n" \ [all …]
|
H A D | clst.c | 9 int cc; in clst() local 15 "ipm %[cc]\n" in clst() 16 "srl %[cc],28" in clst() 17 : [r1] "+r" (r1), [r2] "+r" (r2), "+r" (r0), [cc] "=r" (cc) in clst() 19 : "cc"); in clst() 22 } while (cc == 3); in clst() 24 return cc; in clst() 66 int cc; in main() local 72 cc = clst(t->sep, &s1, &s2); in main() 73 if (cc != t->exp_cc || in main()
|
H A D | chrl.c | 7 uint32_t program_mask, cc; in test_chrl() local 21 cc = program_mask >> 28; in test_chrl() 22 assert(!cc); in test_chrl() 36 cc = program_mask >> 28; in test_chrl() 37 assert(!cc); in test_chrl() 42 uint32_t program_mask, cc; in test_cghrl() local 56 cc = program_mask >> 28; in test_cghrl() 57 assert(!cc); in test_cghrl() 71 cc = program_mask >> 28; in test_cghrl() 72 assert(!cc); in test_cghrl()
|
H A D | csst.c | 15 uint64_t cc; in main() local 21 " ipm %[cc]\n" in main() 25 [cc] "=r" (cc) in main() 28 : "r0", "r1", "cc", "memory"); in main() 29 cc = (cc >> 28) & 3; in main() 30 if (cc) { in main() 31 write(1, "bad cc\n", 7); in main()
|
H A D | exrl-trt.c | 10 uint64_t cc; in main() local 24 " ipm %[cc]\n" in main() 27 [cc] "=r" (cc) in main() 31 : "cc"); in main() 32 cc = (cc >> 28) & 3; in main() 33 if (cc != 2) { in main() 34 write(1, "bad cc\n", 7); in main()
|
H A D | exrl-trtr.c | 10 uint64_t cc; in main() local 24 " ipm %[cc]\n" in main() 27 [cc] "=r" (cc) in main() 31 : "cc"); in main() 32 cc = (cc >> 28) & 3; in main() 33 if (cc != 1) { in main() 34 write(1, "bad cc\n", 7); in main()
|
H A D | lcbb.c | 10 lcbb(long *r1, void *dxb2, int m3, int *cc) in lcbb() argument 13 "ipm %[cc]" in lcbb() 14 : [r1] "+r" (*r1), [cc] "=r" (*cc) in lcbb() 16 : "cc"); in lcbb() 17 *cc = (*cc >> 28) & 3; in lcbb() 26 int cc; in test_lcbb() local 28 lcbb(&r1, p, m3, &cc); in test_lcbb() 30 assert(cc == exp_cc); in test_lcbb()
|
H A D | cdsg.c | 27 int cc; in cdsg() local 34 "ipm %[cc]" in cdsg() 38 , [cc] "=r" (cc) in cdsg() 41 : "cc"); in cdsg() 45 return (cc >> 28) & 3; in cdsg() 51 int cc; in cdsg_loop() local 63 cc = cdsg(&orig0, &orig1, new0, new1, &val); in cdsg_loop() 65 if (cc == 0) { in cdsg_loop() 70 assert(cc == 1); in cdsg_loop()
|
H A D | ipm.c | 8 uint64_t cc = 0xffffffffffffffffull; in main() local 12 " ipm %[cc]\n" in main() 13 : [cc] "+r" (cc) in main() 16 : "cc"); in main() 17 if (cc != 0xffffffff20ffffffull) { in main() 18 write(1, "bad cc\n", 7); in main()
|
H A D | laalg.c | 11 unsigned long cc = 0, op1, op2 = 40, op3 = 2; in main() local 13 asm("slgfi %[cc],1\n" /* Set cc_src = -1. */ in main() 15 "ipm %[cc]" in main() 16 : [cc] "+r" (cc) in main() 20 : "cc"); in main() 22 assert(cc == 0xffffffff10ffffff); in main()
|
H A D | cgebra.c | 14 int cc; in main() local 18 "ipm %[cc]\n" in main() 20 , [cc] "=r" (cc) in main() 24 : "cc"); in main() 25 cc >>= 28; in main() 28 assert(cc == 3); in main()
|
H A D | clgebr.c | 14 int cc; in main() local 18 "ipm %[cc]\n" in main() 20 , [cc] "=r" (cc) in main() 24 : "cc"); in main() 25 cc >>= 28; in main() 28 assert(cc == 3); in main()
|
H A D | ts.c | 11 int cc; in ts() local 14 "ipm %[cc]" in ts() 15 : [cc] "=r" (cc) in ts() 17 : : "cc"); in ts() 19 return (cc >> 28) & 3; in ts()
|
/qemu/tests/qemu-iotests/ |
H A D | 142 | 96 …_qemu -drive "$files","$ids",cache.direct=on | grep -e "Cache" -e "[Cc]annot|[Cc]ould not|[Cc]an't" 98 … -drive "$files","$ids",file.cache.direct=on | grep -e "Cache" -e "[Cc]annot|[Cc]ould not|[Cc]an't" 100 …rive "$files","$ids",backing.cache.direct=on | grep -e "Cache" -e "[Cc]annot|[Cc]ould not|[Cc]an't" 102 …"$files","$ids",backing.file.cache.direct=on | grep -e "Cache" -e "[Cc]annot|[Cc]ould not|[Cc]an't" 108 …-drive "$files","$ids",cache.writeback=off | grep -e "Cache" -e "[Cc]annot\|[Cc]ould not\|[Cc]an't" 119 …u -drive "$files","$ids",cache.no-flush=on | grep -e "Cache" -e "[Cc]annot\|[Cc]ould not\|[Cc]an't" 121 …ive "$files","$ids",file.cache.no-flush=on | grep -e "Cache" -e "[Cc]annot\|[Cc]ould not\|[Cc]an't" 123 … "$files","$ids",backing.cache.no-flush=on | grep -e "Cache" -e "[Cc]annot\|[Cc]ould not\|[Cc]an't" 125 …les","$ids",backing.file.cache.no-flush=on | grep -e "Cache" -e "[Cc]annot\|[Cc]ould not\|[Cc]an't" 238 …rv_file" -drive "$drv_img",cache.direct=on | grep -e "Cache" -e "[Cc]annot\|[Cc]ould not\|[Cc]an't" [all …]
|
/qemu/backends/ |
H A D | cryptodev-vhost.c | 61 crypto->cc = options->cc; in cryptodev_vhost_init() 67 crypto->dev.vq_index = crypto->cc->queue_index * crypto->dev.nvqs; in cryptodev_vhost_init() 118 cryptodev_get_vhost(CryptoDevBackendClient *cc, in cryptodev_get_vhost() argument 124 if (!cc) { in cryptodev_get_vhost() 128 switch (cc->type) { in cryptodev_get_vhost() 131 vhost_crypto = cryptodev_vhost_user_get_vhost(cc, b, queue); in cryptodev_get_vhost() 149 vhost_set_vring_enable(CryptoDevBackendClient *cc, in vhost_set_vring_enable() argument 154 cryptodev_get_vhost(cc, b, queue); in vhost_set_vring_enable() 157 cc->vring_enable = enable; in vhost_set_vring_enable() 181 CryptoDevBackendClient *cc; in cryptodev_vhost_start() local [all …]
|
H A D | cryptodev-vhost-user.c | 64 CryptoDevBackendClient *cc, in cryptodev_vhost_user_get_vhost() argument 70 assert(cc->type == QCRYPTODEV_BACKEND_TYPE_VHOST_USER); in cryptodev_vhost_user_get_vhost() 107 options.cc = b->conf.peers.ccs[i]; in cryptodev_vhost_user_start() 188 CryptoDevBackendClient *cc; in cryptodev_vhost_user_init() local 201 cc = cryptodev_backend_new_client(); in cryptodev_vhost_user_init() 202 cc->info_str = g_strdup_printf("cryptodev-vhost-user%zu to %s ", in cryptodev_vhost_user_init() 204 cc->queue_index = i; in cryptodev_vhost_user_init() 205 cc->type = QCRYPTODEV_BACKEND_TYPE_VHOST_USER; in cryptodev_vhost_user_init() 207 backend->conf.peers.ccs[i] = cc; in cryptodev_vhost_user_init() 240 CryptoDevBackendClient *cc = in cryptodev_vhost_user_crypto_create_session() local [all …]
|
/qemu/hw/core/ |
H A D | cpu-system.c | 36 return cpu->cc->sysemu_ops->has_work(cpu); in cpu_has_work() 41 if (cpu->cc->sysemu_ops->get_paging_enabled) { in cpu_paging_enabled() 42 return cpu->cc->sysemu_ops->get_paging_enabled(cpu); in cpu_paging_enabled() 51 if (cpu->cc->sysemu_ops->get_memory_mapping) { in cpu_get_memory_mapping() 52 return cpu->cc->sysemu_ops->get_memory_mapping(cpu, list, errp); in cpu_get_memory_mapping() 64 if (cpu->cc->sysemu_ops->get_phys_page_attrs_debug) { in cpu_get_phys_page_attrs_debug() 65 paddr = cpu->cc->sysemu_ops->get_phys_page_attrs_debug(cpu, addr, in cpu_get_phys_page_attrs_debug() 70 paddr = cpu->cc->sysemu_ops->get_phys_page_debug(cpu, addr); in cpu_get_phys_page_attrs_debug() 88 if (cpu->cc->sysemu_ops->asidx_from_attrs) { in cpu_asidx_from_attrs() 89 ret = cpu->cc->sysemu_ops->asidx_from_attrs(cpu, attrs); in cpu_asidx_from_attrs() [all …]
|
/qemu/pc-bios/optionrom/ |
H A D | Makefile | 24 cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null 25 cc-option = if $(call cc-test, $1); then \ 31 config-cc.mak: Makefile 32 $(quiet-@)($(call cc-option,-fcf-protection=none); \ 33 $(call cc-option,-fno-pie); \ 34 $(call cc-option,-no-pie); \ 35 $(call cc-option,-fno-stack-protector); \ 36 $(call cc-option,-Wno-array-bounds)) 3> config-cc.mak 37 -include config-cc.mak 44 $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,Assembling) [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | Makefile | 27 $(call quiet-command,$(CC) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \ 52 cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null 53 cc-option = if $(call cc-test, $1); then \ 57 config-cc.mak: Makefile 58 $(quiet-@)($(call cc-option,-Wno-stringop-overflow); \ 59 $(call cc-option,-fno-stack-protector); \ 60 $(call cc-option,-Wno-array-bounds); \ 61 $(call cc-option,-Wno-gnu); \ 62 $(call cc-option,-march=z900,-march=z10)) 3> config-cc.mak 63 -include config-cc.mak [all …]
|
/qemu/accel/ |
H A D | accel-common.c | 35 CPUClass *cc = CPU_CLASS(klass); in accel_init_cpu_int_aux() local 48 cc->accel_cpu = accel_cpu; in accel_init_cpu_int_aux() 50 accel_cpu->cpu_class_init(cc); in accel_init_cpu_int_aux() 52 if (cc->init_accel_cpu) { in accel_init_cpu_int_aux() 53 cc->init_accel_cpu(accel_cpu, cc); in accel_init_cpu_int_aux() 86 if (cpu->cc->accel_cpu && cpu->cc->accel_cpu->cpu_instance_init) { in accel_cpu_instance_init() 87 cpu->cc->accel_cpu->cpu_instance_init(cpu); in accel_cpu_instance_init() 97 if (cpu->cc->accel_cpu in accel_cpu_common_realize() 98 && cpu->cc->accel_cpu->cpu_target_realize in accel_cpu_common_realize() 99 && !cpu->cc->accel_cpu->cpu_target_realize(cpu, errp)) { in accel_cpu_common_realize()
|
/qemu/tests/tcg/aarch64/ |
H A D | Makefile.target | 21 config-cc.mak: Makefile 23 fnia=`$(call cc-test,-fno-integrated-as) && echo -fno-integrated-as`; \ 24 $(call cc-option,-march=armv8.1-a+sve, CROSS_CC_HAS_SVE); \ 25 $(call cc-option,-march=armv8.1-a+sve2, CROSS_CC_HAS_SVE2); \ 26 $(call cc-option,-march=armv8.2-a, CROSS_CC_HAS_ARMV8_2); \ 27 $(call cc-option,-march=armv8.3-a, CROSS_CC_HAS_ARMV8_3); \ 28 $(call cc-option,-march=armv8.5-a, CROSS_CC_HAS_ARMV8_5); \ 29 $(call cc-option,-mbranch-protection=standard, CROSS_CC_HAS_ARMV8_BTI); \ 30 $(call cc-option,-march=armv8.5-a+memtag, CROSS_CC_HAS_ARMV8_MTE); \ 31 … $(call cc-option,-Wa$(COMMA)-march=armv9-a+sme $$fnia, CROSS_AS_HAS_ARMV9_SME)) 3> config-cc.mak [all …]
|
/qemu/ |
H A D | meson.build | 79 cc = meson.get_compiler('c') variable 189 not cc.links(''' 203 if 'syslog' in get_option('trace_backends') and not cc.compiles(''' 405 if host_arch == 'i386' and not cc.links(''' 439 qemu_isa_flags += cc.get_supported_arguments('-mneeded') 482 qemu_common_flags += cc.get_supported_arguments('-fno-pie', '-no-pie') 499 if cc.compiles(stack_protector_probe, args: ['-Werror', arg]) and \ 500 cc.links(stack_protector_probe, args: ['-Werror', arg]) 528 if host_os != 'darwin' and cc.links(ucontext_probe) 552 if get_option('safe_stack') != not cc.compiles(safe_stack_probe) [all …]
|