qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC] TCG new op: setcond


From: Laurent Desnogues
Subject: [Qemu-devel] [RFC] TCG new op: setcond
Date: Sat, 8 Nov 2008 20:13:01 +0100

Hello,

this patch implements a new TCG op, setcond, that sets a temp
to 1 if the condition is true, else to 0.  The benefit is the potential
removal of brcond instructions, and helpers size reduction which
can lead to using TCG instead of helpers.

setcond(i)_i{32,64} have been implemented only for x86_64 and
i386 TCG back-ends.

One ARM helper was converted to TCG using setcond.  Alpha
and MIPS are also patched to use setcond.

On my TODO list:

 - implement it in all backends (arm, ppc, ppc64, sparc)
 - use it at least once in every frontend

Comments starting with // in the patch are questions and/or
TODO.

Please feel free to comment.


Laurent

Signed-off-by: Laurent Desnogues <address@hidden>

Attachment: setcond-3.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]