/qemu/linux-user/hppa/ |
H A D | cpu_loop.c | 32 abi_ulong new = env->gr[24]; in hppa_lws() local 44 new = tswap32(new); in hppa_lws() 45 ret = qatomic_cmpxchg((uint32_t *)g2h(cs, addr), old, new); in hppa_lws() 54 if (((addr | old | new) & ((1 << size) - 1)) in hppa_lws() 57 || !access_ok(cs, VERIFY_READ, new, 1 << size)) { in hppa_lws() 65 new = *(uint8_t *)g2h(cs, new); in hppa_lws() 66 ret = qatomic_cmpxchg((uint8_t *)g2h(cs, addr), old, new); in hppa_lws() 71 new = *(uint16_t *)g2h(cs, new); in hppa_lws() 72 ret = qatomic_cmpxchg((uint16_t *)g2h(cs, addr), old, new); in hppa_lws() 77 new = *(uint32_t *)g2h(cs, new); in hppa_lws() [all …]
|
/qemu/host/include/generic/host/ |
H A D | store-insert-al16.h.inc | 24 Int128Alias old, new; 31 new.s = int128_and(old.s, msk); 32 new.s = int128_or(new.s, val); 33 } while (!__atomic_compare_exchange_n(pu, &old.u, new.u, true, 36 Int128 old, new, cmp; 43 new = int128_and(old, msk); 44 new = int128_or(new, val); 45 old = atomic16_cmpxchg(ps, cmp, new);
|
H A D | atomic128-cas.h | 16 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) in atomic16_cmpxchg() argument 22 n.s = new; in atomic16_cmpxchg() 29 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) in atomic16_cmpxchg() argument 35 n.s = new; in atomic16_cmpxchg() 43 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new);
|
H A D | atomic128-ldst.h | 63 Int128Alias new; in atomic16_set() local 65 new.s = val; in atomic16_set() 68 } while (!__sync_bool_compare_and_swap_16(ptr_align, old, new.i)); in atomic16_set()
|
/qemu/target/s390x/tcg/ |
H A D | insn-data.h.inc | 26 C(0x1a00, AR, RR_a, Z, r1, r2, new, r1_32, add, adds32) 27 C(0xb9f8, ARK, RRF_a, DO, r2, r3, new, r1_32, add, adds32) 44 C(0xc209, AFI, RIL_a, EI, r1, i2, new, r1_32, add, adds32) 46 C(0xecd8, AHIK, RIE_d, DO, r3, i2, new, r1_32, add, adds32) 57 C(0xa70a, AHI, RI_a, Z, r1, i2, new, r1_32, add, adds32) 91 C(0x1400, NR, RR_a, Z, r1, r2, new, r1_32, and, nz32) 92 C(0xb9f4, NRK, RRF_a, DO, r2, r3, new, r1_32, and, nz32) 386 C(0xb24f, EAR, RRE, Z, 0, 0, new, r1_32, ear, 0) 481 C(0xe376, LB, RXY_a, LD, 0, a2, new, r1_32, ld8s, 0) 523 C(0xe394, LLC, RXY_a, EI, 0, a2, new, r1_32, ld8u, 0) [all …]
|
/qemu/util/ |
H A D | lockcnt.c | 84 *val = qatomic_cmpxchg(&lockcnt->count, expected, new); in qemu_lockcnt_cmpxchg_or_wait() 86 *val = new; in qemu_lockcnt_cmpxchg_or_wait() 258 int expected, new, val; in qemu_lockcnt_inc_and_unlock() local 264 trace_lockcnt_unlock_attempt(lockcnt, val, new); in qemu_lockcnt_inc_and_unlock() 265 val = qatomic_cmpxchg(&lockcnt->count, val, new); in qemu_lockcnt_inc_and_unlock() 268 trace_lockcnt_unlock_success(lockcnt, val, new); in qemu_lockcnt_inc_and_unlock() 276 int expected, new, val; in qemu_lockcnt_unlock() local 281 new = val & ~QEMU_LOCKCNT_STATE_MASK; in qemu_lockcnt_unlock() 282 trace_lockcnt_unlock_attempt(lockcnt, val, new); in qemu_lockcnt_unlock() 283 val = qatomic_cmpxchg(&lockcnt->count, val, new); in qemu_lockcnt_unlock() [all …]
|
H A D | qht.c | 538 struct qht_map *new = NULL; in qht_reset_size() local 552 return !!new; in qht_reset_size() 654 new = b; in qht_insert__locked() 664 if (new) { in qht_insert__locked() 690 qht_do_resize(ht, new); in qht_grow_maybe() 903 struct qht_map *new; member 910 struct qht_map *new = data->new; in qht_map_copy() local 937 if (new == NULL) { in qht_do_resize_reset() 944 data.new = new; in qht_do_resize_reset() 960 struct qht_map *new; in qht_resize() local [all …]
|
H A D | qsp.c | 549 QSPEntry *new; in qsp_iter_diff() local 551 new = qht_lookup(ht, old, hash); in qsp_iter_diff() 553 g_assert(new != NULL); in qsp_iter_diff() 555 g_assert(new->n_acqs >= old->n_acqs); in qsp_iter_diff() 556 g_assert(new->ns >= old->ns); in qsp_iter_diff() 558 new->n_acqs -= old->n_acqs; in qsp_iter_diff() 559 new->ns -= old->ns; in qsp_iter_diff() 562 if (new->n_acqs == 0 && new->ns == 0) { in qsp_iter_diff() 566 g_free(new); in qsp_iter_diff() 572 qht_iter(orig, qsp_iter_diff, new); in qsp_diff() [all …]
|
H A D | interval-tree.c | 61 void (*copy)(RBNode *old, RBNode *new); 62 void (*rotate)(RBNode *old, RBNode *new); 182 qatomic_set(&root->rb_node, new); in rb_change_child() 184 qatomic_set(&parent->rb_left, new); in rb_change_child() 186 qatomic_set(&parent->rb_right, new); in rb_change_child() 196 rb_set_pc(new, pc); in rb_rotate_set_parents() 197 rb_set_parent_color(old, new, color); in rb_rotate_set_parents() 198 rb_change_child(old, new, parent, root); in rb_rotate_set_parents() 690 IntervalTreeNode *new = rb_to_itree(rb_new); in interval_tree_copy() local 692 new->subtree_last = old->subtree_last; in interval_tree_copy() [all …]
|
H A D | trace-events | 5 run_poll_handlers_end(void *ctx, bool progress, int64_t timeout) "ctx %p progress %d new timeout %"… 6 poll_shrink(void *ctx, int64_t old, int64_t new) "ctx %p old %"PRId64" new %"PRId64 7 poll_grow(void *ctx, int64_t old, int64_t new) "ctx %p old %"PRId64" new %"PRId64 22 buffer_resize(const char *buf, size_t olen, size_t len) "%s: old %zd, new %zd" 65 lockcnt_fast_path_attempt(const void *lockcnt, int expected, int new) "lockcnt %p fast path %d->%d" 66 lockcnt_fast_path_success(const void *lockcnt, int expected, int new) "lockcnt %p fast path %d->%d … 67 lockcnt_unlock_attempt(const void *lockcnt, int expected, int new) "lockcnt %p unlock %d->%d" 68 lockcnt_unlock_success(const void *lockcnt, int expected, int new) "lockcnt %p unlock %d->%d succee… 69 lockcnt_futex_wait_prepare(const void *lockcnt, int expected, int new) "lockcnt %p preparing slow p… 71 lockcnt_futex_wait_resume(const void *lockcnt, int new) "lockcnt %p after wait: %d"
|
/qemu/accel/tcg/ |
H A D | atomic_template.h | 139 XDATA_TYPE *haddr, cmp, old, new, val = xval; \ in GEN_ATOMIC_HELPER() 144 old = cmp; new = FN(old, val); \ in GEN_ATOMIC_HELPER() 157 GEN_ATOMIC_HELPER_FN(smin_fetch, MIN, SDATA_TYPE, new) 158 GEN_ATOMIC_HELPER_FN(umin_fetch, MIN, DATA_TYPE, new) 159 GEN_ATOMIC_HELPER_FN(smax_fetch, MAX, SDATA_TYPE, new) 160 GEN_ATOMIC_HELPER_FN(umax_fetch, MAX, DATA_TYPE, new) 259 GEN_ATOMIC_HELPER_FN(smin_fetch, MIN, SDATA_TYPE, new) 260 GEN_ATOMIC_HELPER_FN(umin_fetch, MIN, DATA_TYPE, new) 261 GEN_ATOMIC_HELPER_FN(smax_fetch, MAX, SDATA_TYPE, new) 262 GEN_ATOMIC_HELPER_FN(umax_fetch, MAX, DATA_TYPE, new) [all …]
|
/qemu/target/hexagon/imported/ |
H A D | branch.idef | 138 /* V4 new-value jumps (NCJ) */ 146 STD_CMPJUMPNEWRS(cmpeqi_t,"cmp.eq(Ns8.new,#U5)",(fNEWREG(NsN)==(UiV))) 147 STD_CMPJUMPNEWRS(cmpeqi_f,"!cmp.eq(Ns8.new,#U5)",(fNEWREG(NsN)!=(UiV))) 148 STD_CMPJUMPNEWRS(cmpgti_t,"cmp.gt(Ns8.new,#U5)",(fNEWREG(NsN)>(UiV))) 149 STD_CMPJUMPNEWRS(cmpgti_f,"!cmp.gt(Ns8.new,#U5)",!(fNEWREG(NsN)>(UiV))) 154 STD_CMPJUMPNEWRS(cmpeqn1_t,"cmp.eq(Ns8.new,#-1)",(fNEWREG(NsN)==(-1))) 156 STD_CMPJUMPNEWRS(cmpgtn1_t,"cmp.gt(Ns8.new,#-1)",(fNEWREG(NsN)>(-1))) 158 STD_CMPJUMPNEWRS(tstbit0_t,"tstbit(Ns8.new,#0)",((fNEWREG(NsN)) & 1)) 162 STD_CMPJUMPNEWRS(cmpeq_t, "cmp.eq(Ns8.new,Rt32)", (fNEWREG(NsN)==RtV)) 163 STD_CMPJUMPNEWRS(cmpgt_t, "cmp.gt(Ns8.new,Rt32)", (fNEWREG(NsN)>RtV)) [all …]
|
H A D | ldst.idef | 184 COND_RETURN_TF(TG,new_pt,".new",12,0,SPECULATE_TAKEN,ATTRIBS,fLSBNEW,PvN,":t") \ 185 COND_RETURN_TF(TG,new_pnt,".new",12,0,SPECULATE_NOT_TAKEN,ATTRIBS,fLSBNEW,PvN,":nt") \ 229 Q6INSN(L4_p##TAG##tnew_rr,"if (Pv4.new) "OPER"(Rs32+Rt32<<#u2)",ATTRIB,DESCR,{fEA_RRs(RsV,RtV,uiV);… 230 Q6INSN(L4_p##TAG##fnew_rr,"if (!Pv4.new) "OPER"(Rs32+Rt32<<#u2)",ATTRIB,DESCR,{fEA_RRs(RsV,RtV,uiV)… 235 Q6INSN(L4_p##TAG##tnew_abs,"if (Pt4.new) "OPER"(#u6)",ATTRIB,DESCR,{fMUST_IMMEXT(uiV); fEA_IMM(uiV)… 236 Q6INSN(L4_p##TAG##fnew_abs,"if (!Pt4.new) "OPER"(#u6)",ATTRIB,DESCR,{fMUST_IMMEXT(uiV); fEA_IMM(uiV… 259 Q6INSN(S4_p##TAG##tnew_rr,"if (Pv4.new) "OPER"(Rs32+Ru32<<#u2)="DEST,ATTRIB,DESCR,{fEA_RRs(RsV,RuV,… 265 Q6INSN(S4_p##TAG##tnew_abs,"if (Pv4.new) "OPER"(#u6)="DEST,ATTRIB,DESCR,{fMUST_IMMEXT(uiV);fEA_IMM(… 266 Q6INSN(S4_p##TAG##fnew_abs,"if (!Pv4.new) "OPER"(#u6)="DEST,ATTRIB,DESCR,{fMUST_IMMEXT(uiV);fEA_IMM… 319 Q6INSN(S4_##TAG##tnew_io,"if (Pv4.new) "OPER"(Rs32+#u6:"SHFT")="DEST,ATTRIB,DESCR,{fEA_RI(RsV,uiV);… [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 293 | 78 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=active,${PR}new-secret=sec4,${PR}iter-time=10,${PR}ke… 80 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=active,${PR}new-secret=sec1,${PR}iter-time=10 82 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=active,${PR}new-secret=sec3,${PR}iter-time=10,${PR}ke… 85 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec2,${PR}iter-time=10 114 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec2,${PR}iter-time=10 119 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec0,${PR}iter-time=10 123 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec3,${PR}iter-time=10 127 $QEMU_IMG amend $SECRETS $IMGS2 -o ${PR}state=active,${PR}new-secret=sec3,${PR}iter-time=10 158 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec0,${PR}iter-time=10 171 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=active,${PR}new-secret=sec1,${PR}keyslot=0 [all …]
|
/qemu/target/sparc/ |
H A D | trace-events | 18 int_helper_set_softint(uint32_t softint) "new 0x%08x" 19 int_helper_clear_softint(uint32_t softint) "new 0x%08x" 20 int_helper_write_softint(uint32_t softint) "new 0x%08x" 23 sparc64_cpu_check_irqs_set_irq(unsigned int i, int old, int new) "Set CPU IRQ %d old=0x%x new=0x%x" 28 …e(uint32_t pstate_regs, uint32_t new_pstate_regs) "change_pstate: switching regs old=0x%x new=0x%x" 29 win_helper_no_switch_pstate(uint32_t new_pstate_regs) "change_pstate: regs new=0x%x (unchanged)" 30 win_helper_wrpil(uint32_t psrpil, uint32_t new_pil) "old=0x%x new=0x%x"
|
/qemu/hw/net/rocker/ |
H A D | rocker_desc.c | 252 bool desc_ring_set_head(DescRing *ring, uint32_t new) in desc_ring_set_head() argument 261 if (new >= ring->size) { in desc_ring_set_head() 263 new, ring->index, ring->size); in desc_ring_set_head() 267 if (((head < tail) && ((new >= tail) || (new < head))) || in desc_ring_set_head() 268 ((head > tail) && ((new >= tail) && (new < head)))) { in desc_ring_set_head() 271 ring->index, head, tail, new); in desc_ring_set_head() 275 if (new == ring->head) { in desc_ring_set_head() 276 DPRINTF("WARNING: setting head (%d) to current head position\n", new); in desc_ring_set_head() 279 ring->head = new; in desc_ring_set_head()
|
/qemu/hw/rtc/ |
H A D | twl92230.c | 66 struct tm new; member 560 tm.tm_sec = s->rtc.new.tm_sec; in menelaus_write() 563 tm.tm_min = s->rtc.new.tm_min; in menelaus_write() 566 if (s->rtc.new.tm_hour > 23) in menelaus_write() 571 if (s->rtc.new.tm_mday < 1) in menelaus_write() 577 if (s->rtc.new.tm_mon < 0 || s->rtc.new.tm_mon > 11) in menelaus_write() 579 tm.tm_mon = s->rtc.new.tm_mon; in menelaus_write() 589 if (s->rtc.new.tm_hour > 23) in menelaus_write() 591 if (s->rtc.new.tm_mday < 1) in menelaus_write() 593 if (s->rtc.new.tm_mon < 0 || s->rtc.new.tm_mon > 11) in menelaus_write() [all …]
|
/qemu/tests/tcg/hexagon/ |
H A D | test_dotnew.S | 12 memw(sp+#0) = r0.new 16 memw(sp+#4) = r1.new 20 memw(sp+#8) = r2.new 36 p0 = cmp.eq(r3, #2); if (p0.new) jump:t pass
|
H A D | test_fibonacci.S | 11 p0 = cmp.gt(r2, #0); if (!p0.new) jump:nt .LBB0_3 22 p0 = cmp.gt(r2, r5); if (p0.new) jump:nt .LBB0_2 28 p0 = cmp.eq(r3, #144); if (p0.new) jump:t pass
|
H A D | test_bitcnt.S | 20 p0 = cmp.eq(r2, #23); if (p0.new) jump:t test2 29 p0 = cmp.eq(r2, #55); if (p0.new) jump:t test3 38 p0 = cmp.eq(r2, #1); if (p0.new) jump:t pass
|
/qemu/io/ |
H A D | trace-events | 4 qio_task_new(void *task, void *source, void *func, void *opaque) "Task new task=%p source=%p func=%… 14 qio_channel_null_new(void *ioc) "Null new ioc=%p" 17 qio_channel_socket_new(void *ioc) "Socket new ioc=%p" 18 qio_channel_socket_new_fd(void *ioc, int fd) "Socket new ioc=%p fd=%d" 36 qio_channel_file_new_fd(void *ioc, int fd) "File new fd ioc=%p fd=%d" 37 qio_channel_file_new_path(void *ioc, const char *path, int flags, int mode, int fd) "File new fd io… 40 qio_channel_tls_new_client(void *ioc, void *master, void *creds, const char *hostname) "TLS new cli… 41 qio_channel_tls_new_server(void *ioc, void *master, void *creds, const char *aclname) "TLS new clie… 51 qio_channel_websock_new_server(void *ioc, void *master) "Websock new client ioc=%p master=%p" 66 qio_channel_command_new_pid(void *ioc, int writefd, int readfd, int pid) "Command new pid ioc=%p wr… [all …]
|
/qemu/hw/mem/ |
H A D | memory-device.c | 220 Range as, new = range_empty; in memory_device_get_free_addr() local 240 if (range_init(&new, *hint, size) || !range_contains_range(&as, &new)) { in memory_device_get_free_addr() 248 if (range_init(&new, QEMU_ALIGN_UP(range_lob(&as), align), size)) { in memory_device_get_free_addr() 269 if (range_overlaps_range(&tmp, &new)) { in memory_device_get_free_addr() 278 if (!next_addr || range_init(&new, next_addr, range_size(&new))) { in memory_device_get_free_addr() 279 range_make_empty(&new); in memory_device_get_free_addr() 282 } else if (range_lob(&tmp) > range_upb(&new)) { in memory_device_get_free_addr() 287 if (!range_contains_range(&as, &new)) { in memory_device_get_free_addr() 293 return range_lob(&new); in memory_device_get_free_addr()
|
/qemu/host/include/aarch64/host/ |
H A D | atomic128-cas.h | 18 static inline Int128 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) in atomic16_cmpxchg() argument 21 uint64_t newl = int128_getlo(new), newh = int128_gethi(new); in atomic16_cmpxchg()
|
/qemu/contrib/plugins/ |
H A D | execlog.c | 21 GByteArray *new; member 96 g_byte_array_set_size(reg->new, 0); in insn_check_regs() 97 sz = qemu_plugin_read_register(reg->handle, reg->new); in insn_check_regs() 100 if (memcmp(reg->last->data, reg->new->data, sz)) { in insn_check_regs() 106 reg->new->data[i]); in insn_check_regs() 108 reg->last = reg->new; in insn_check_regs() 109 reg->new = temp; in insn_check_regs() 307 reg->new = g_byte_array_new(); in init_vcpu_register()
|
/qemu/host/include/x86_64/host/ |
H A D | atomic128-ldst.h | 59 X86Int128Union new = { .s = val }; in atomic16_set() local 62 asm("vmovdqa %1, %0" : "=m"(*ptr_align) : "x" (new.v)); in atomic16_set() 67 } while (!__sync_bool_compare_and_swap_16(ptr_align, old, new.i)); in atomic16_set()
|