Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 135) sorted by relevance

123456

/qemu/util/
H A Dqemu-thread-posix.c177 err = pthread_cond_init(&cond->cond, &attr); in qemu_cond_init()
185 cond->initialized = true; in qemu_cond_init()
192 assert(cond->initialized); in qemu_cond_destroy()
193 cond->initialized = false; in qemu_cond_destroy()
194 err = pthread_cond_destroy(&cond->cond); in qemu_cond_destroy()
203 assert(cond->initialized); in qemu_cond_signal()
204 err = pthread_cond_signal(&cond->cond); in qemu_cond_signal()
213 assert(cond->initialized); in qemu_cond_broadcast()
214 err = pthread_cond_broadcast(&cond->cond); in qemu_cond_broadcast()
225 err = pthread_cond_wait(&cond->cond, &mutex->lock); in qemu_cond_wait_impl()
[all …]
H A Dqemu-thread-win32.c140 void qemu_cond_init(QemuCond *cond) in qemu_cond_init() argument
142 memset(cond, 0, sizeof(*cond)); in qemu_cond_init()
144 cond->initialized = true; in qemu_cond_init()
147 void qemu_cond_destroy(QemuCond *cond) in qemu_cond_destroy() argument
149 assert(cond->initialized); in qemu_cond_destroy()
150 cond->initialized = false; in qemu_cond_destroy()
154 void qemu_cond_signal(QemuCond *cond) in qemu_cond_signal() argument
156 assert(cond->initialized); in qemu_cond_signal()
162 assert(cond->initialized); in qemu_cond_broadcast()
168 assert(cond->initialized); in qemu_cond_wait_impl()
[all …]
/qemu/tcg/arm/
H A Dtcg-target.c.inc1199 return cond;
1202 cond = tcg_tst_eqne_cond(cond);
1212 return cond;
1218 return cond;
1228 TCGCond cond = args[4];
1232 switch (cond) {
1246 return cond;
1264 return cond;
1351 ARMCond cond;
1732 h.cond = COND_EQ;
[all …]
/qemu/include/block/
H A Daio-wait.h78 #define AIO_WAIT_WHILE_INTERNAL(ctx, cond) ({ \ argument
87 while ((cond)) { \
94 while ((cond)) { \
102 #define AIO_WAIT_WHILE(ctx, cond) \ argument
103 AIO_WAIT_WHILE_INTERNAL(ctx, cond)
106 #define AIO_WAIT_WHILE_UNLOCKED(ctx, cond) \ argument
107 AIO_WAIT_WHILE_INTERNAL(ctx, cond)
/qemu/target/arm/
H A Dsyndrome.h177 | (cv << 24) | (cond << 20) | (opc2 << 17) | (opc1 << 14) in syn_cp14_rt_trap()
187 | (cv << 24) | (cond << 20) | (opc2 << 17) | (opc1 << 14) in syn_cp15_rt_trap()
197 | (cv << 24) | (cond << 20) | (opc1 << 16) in syn_cp14_rrt_trap()
207 | (cv << 24) | (cond << 20) | (opc1 << 16) in syn_cp15_rrt_trap()
211 static inline uint32_t syn_fp_access_trap(int cv, int cond, bool is_16bit, in syn_fp_access_trap() argument
217 | (cv << 24) | (cond << 20) | coproc; in syn_fp_access_trap()
225 | (cv << 24) | (cond << 20) | (1 << 5); in syn_simd_access_trap()
264 static inline uint32_t syn_bxjtrap(int cv, int cond, int rm) in syn_bxjtrap() argument
267 (cv << 24) | (cond << 20) | rm; in syn_bxjtrap()
336 static inline uint32_t syn_wfx(int cv, int cond, int ti, bool is_16bit) in syn_wfx() argument
[all …]
/qemu/scripts/
H A Dminikconf.py160 self.cond = cond
161 if not (self.cond is None):
165 if self.cond is None:
175 (self.cond is None or self.cond.evaluate()):
191 def __init__(self, dest, cond): argument
193 self.cond = cond
199 if self.cond.evaluate():
290 cond = (cond & var) if cond is not None else var
296 cond = (cond & var) if cond is not None else var
509 cond = self.parse_condition()
[all …]
/qemu/chardev/
H A Dchar-fd.c48 static gboolean fd_chr_read(QIOChannel *chan, GIOCondition cond, void *opaque) in fd_chr_read() argument
90 GIOCondition cond; member
99 return src->cond != 0; in fd_source_prepare()
107 return src->cond != 0; in fd_source_check()
118 if (src->cond) { in fd_source_dispatch()
119 ret = func(NULL, src->cond, user_data); in fd_source_dispatch()
120 src->cond = 0; in fd_source_dispatch()
144 parent->cond |= condition; in child_func()
149 static GSource *fd_chr_add_watch(Chardev *chr, GIOCondition cond) in fd_chr_add_watch() argument
155 g_autoptr(GSource) child = qio_channel_create_watch(s->ioc_out, cond & ~G_IO_IN); in fd_chr_add_watch()
[all …]
/qemu/target/loongarch/tcg/insn_trans/
H A Dtrans_branch.c.inc36 target_long offs, TCGCond cond)
39 tcg_gen_brcond_tl(cond, src1, src2, l);
46 static bool gen_rr_bc(DisasContext *ctx, arg_rr_offs *a, TCGCond cond)
51 gen_bc(ctx, src1, src2, a->offs, cond);
55 static bool gen_rz_bc(DisasContext *ctx, arg_r_offs *a, TCGCond cond)
60 gen_bc(ctx, src1, src2, a->offs, cond);
64 static bool gen_cz_bc(DisasContext *ctx, arg_c_offs *a, TCGCond cond)
71 gen_bc(ctx, src1, src2, a->offs, cond);
H A Dtrans_fcmp.c.inc7 static uint32_t get_fcmp_flags(int cond)
11 if (cond & 0x1) {
14 if (cond & 0x2) {
17 if (cond & 0x4) {
20 if (cond & 0x8) {
/qemu/target/hexagon/
H A Dgenptr.c476 if (cond != TCG_COND_ALWAYS) { in gen_write_new_pc_addr()
491 if (cond != TCG_COND_ALWAYS) { in gen_write_new_pc_addr()
506 ctx->branch_cond = cond; in gen_write_new_pc_pcrel()
595 TCGCond cond, TCGv pred) in gen_cond_jumpr() argument
681 gen_cond_jump(ctx, cond, pred, pc_off); in gen_cmpnd_tstbit0_jmp()
690 gen_cond_jump(ctx, cond, pred, pc_off); in gen_testbit0_jumpnv()
725 tcg_gen_brcondi_tl(cond, lsb, 0, skip); in gen_cond_call()
736 tcg_gen_brcondi_tl(cond, lsb, 0, skip); in gen_cond_callr()
832 tcg_gen_brcondi_tl(cond, LSB, 0, skip); in gen_cond_return()
979 tcg_gen_setcond_tl(cond, pred, val, src); in gen_cmp_jumpnv()
[all …]
/qemu/target/sparc/
H A Dinsns.decode10 &bcc i a cond cc
11 BPcc 00 a:1 cond:4 001 cc:1 0 - i:s19 &bcc
12 Bicc 00 a:1 cond:4 010 i:s22 &bcc cc=0
13 FBPfcc 00 a:1 cond:4 101 cc:2 - i:s19 &bcc
17 BPr 00 a:1 0 cond:3 011 .. - rs1:5 .............. i=%d16
213 Tcc_r 10 0 cond:4 111010 rs1:5 0 cc:1 0000000 rs2:5
219 Tcc_i_v7 10 0 cond:4 111010 rs1:5 1 ------ i:7
223 Tcc_i_v9 10 0 cond:4 111010 rs1:5 1 cc:1 0 000 i:8
288 FMOVscc 10 rd:5 110101 0 cond:4 1 cc:1 0 000001 rs2:5
289 FMOVdcc 10 rd:5 110101 0 cond:4 1 cc:1 0 000010 rs2:5
[all …]
/qemu/scripts/qapi/
H A Dcommon.py232 def gen_if(cond: str) -> str:
233 if not cond:
237 ''', cond=cond)
240 def gen_endif(cond: str) -> str:
241 if not cond:
245 ''', cond=cond)
H A Dexpr.py267 def _check_if(cond: Union[str, object]) -> None:
268 if isinstance(cond, str):
269 if not re.fullmatch(r'[A-Z][A-Z0-9_]*', cond):
273 % (cond, source))
276 if not isinstance(cond, dict):
282 if len(cond) != 1:
287 if 'not' in cond:
288 _check_if(cond['not'])
289 elif 'all' in cond:
290 _check_infix('all', cond['all'])
[all …]
/qemu/include/qemu/
H A Dthread.h150 void qemu_cond_init(QemuCond *cond);
151 void qemu_cond_destroy(QemuCond *cond);
158 void qemu_cond_signal(QemuCond *cond);
159 void qemu_cond_broadcast(QemuCond *cond);
160 void TSA_NO_TSA qemu_cond_wait_impl(QemuCond *cond, QemuMutex *mutex,
162 bool qemu_cond_timedwait_impl(QemuCond *cond, QemuMutex *mutex, int ms,
165 static inline void (qemu_cond_wait)(QemuCond *cond, QemuMutex *mutex)
167 qemu_cond_wait(cond, mutex);
171 static inline bool (qemu_cond_timedwait)(QemuCond *cond, QemuMutex *mutex,
174 return qemu_cond_timedwait(cond, mutex, ms);
H A Dthread-posix.h25 pthread_cond_t cond; member
31 QemuCond cond; member
38 pthread_cond_t cond; member
/qemu/scripts/tracetool/backend/
H A Dlog.py36 cond = "true"
38 cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper())
56 cond=cond,
H A Dsyslog.py35 cond = "true"
37 cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper())
44 cond=cond,
H A Dsimple.py78 cond = "true"
80 cond = "trace_event_get_state(%s)" % event_id
90 cond=cond,
/qemu/tcg/
H A Dtcg-op.c507 if (cond == TCG_COND_ALWAYS) { in tcg_gen_brcond_i32()
509 } else if (cond != TCG_COND_NEVER) { in tcg_gen_brcond_i32()
517 if (cond == TCG_COND_ALWAYS) { in tcg_gen_brcondi_i32()
519 } else if (cond != TCG_COND_NEVER) { in tcg_gen_brcondi_i32()
527 if (cond == TCG_COND_ALWAYS) { in tcg_gen_setcond_i32()
545 if (cond == TCG_COND_ALWAYS) { in tcg_gen_negsetcond_i32()
1131 if (cond == TCG_COND_ALWAYS) { in tcg_gen_movcond_i32()
1927 if (cond == TCG_COND_ALWAYS) { in tcg_gen_brcond_i64()
1961 if (cond == TCG_COND_ALWAYS) { in tcg_gen_setcond_i64()
2004 if (cond == TCG_COND_ALWAYS) { in tcg_gen_negsetcond_i64()
[all …]
/qemu/scripts/tracetool/format/
H A Dh.py74 cond = "true"
87 cond=cond)
/qemu/ui/
H A Dvnc-jobs.c57 QemuCond cond; member
118 qemu_cond_broadcast(&queue->cond); in vnc_job_push()
139 qemu_cond_wait(&queue->cond, &queue->mutex); in vnc_jobs_join()
248 qemu_cond_wait(&queue->cond, &queue->mutex); in vnc_worker_thread_loop()
332 qemu_cond_broadcast(&queue->cond); in vnc_worker_thread_loop()
342 qemu_cond_init(&queue->cond); in vnc_queue_init()
350 qemu_cond_destroy(&queue->cond); in vnc_queue_clear()
/qemu/include/tcg/
H A Dtcg-op-common.h124 void tcg_gen_setcond_i32(TCGCond cond, TCGv_i32 ret,
126 void tcg_gen_setcondi_i32(TCGCond cond, TCGv_i32 ret,
128 void tcg_gen_negsetcond_i32(TCGCond cond, TCGv_i32 ret,
130 void tcg_gen_negsetcondi_i32(TCGCond cond, TCGv_i32 ret,
132 void tcg_gen_movcond_i32(TCGCond cond, TCGv_i32 ret, TCGv_i32 c1,
227 void tcg_gen_setcond_i64(TCGCond cond, TCGv_i64 ret,
229 void tcg_gen_setcondi_i64(TCGCond cond, TCGv_i64 ret,
231 void tcg_gen_negsetcond_i64(TCGCond cond, TCGv_i64 ret,
233 void tcg_gen_negsetcondi_i64(TCGCond cond, TCGv_i64 ret,
456 void tcg_gen_cmp_vec(TCGCond cond, unsigned vece, TCGv_vec r,
[all …]
/qemu/hw/misc/macio/
H A Dmac_dbdma.c126 int cond; in conditional_interrupt() local
146 cond = (status & sel_mask) == (sel_value & sel_mask); in conditional_interrupt()
150 if (cond) { in conditional_interrupt()
156 if (!cond) { in conditional_interrupt()
170 int cond; in conditional_wait() local
187 cond = (status & sel_mask) == (sel_value & sel_mask); in conditional_wait()
191 if (cond) { in conditional_wait()
197 if (!cond) { in conditional_wait()
232 int cond; in conditional_branch() local
257 if (cond) { in conditional_branch()
[all …]
/qemu/tcg/sparc64/
H A Dtcg-target.c.inc678 tcg_out_cmp(s, cond, c1, c2, c2const);
686 int rcond = tcg_cond_to_rcond[cond];
718 int rcond = tcg_cond_to_rcond[cond];
731 switch (cond) {
747 cond = (cond == TCG_COND_EQ ? TCG_COND_GEU : TCG_COND_LTU);
756 cond = (cond == TCG_COND_TSTEQ ? TCG_COND_GEU : TCG_COND_LTU);
769 cond = tcg_swap_cond(cond);
781 tcg_out_cmp(s, cond, c1, c2, c2const);
782 if (cond == TCG_COND_LTU) {
807 switch (cond) {
[all …]
/qemu/disas/
H A Dsparc.c1285 #define cond(bop, top, mask, flags) \ macro
1293 cond ("b", "ta", CONDA, F_UNBR),
1297 cond ("bcc", "tcc", CONDCC, F_CONDBR),
1298 cond ("bcs", "tcs", CONDCS, F_CONDBR),
1299 cond ("be", "te", CONDE, F_CONDBR),
1301 cond ("bg", "tg", CONDG, F_CONDBR),
1306 cond ("bl", "tl", CONDL, F_CONDBR),
1311 cond ("bn", "tn", CONDN, F_CONDBR),
1320 #undef cond
1408 …{ opcode, F3(2, 0x2c, 1)|MCOND(cond,1)|XCC, F3(~2, ~0x2c, ~1)|MCOND(~cond,~1)|(1<<11), "Z,I,d"…
[all …]

123456