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

[qemu-xen staging] tcg: Save/restore vecop_list around minmax fallback



commit 69c918d2ef319ac63cd759c527debc2a2bdf3a0c
Author:     Richard Henderson <richard.henderson@xxxxxxxxxx>
AuthorDate: Tue Jun 9 16:32:09 2020 -0700
Commit:     Richard Henderson <richard.henderson@xxxxxxxxxx>
CommitDate: Thu Jul 16 13:09:22 2020 -0700

    tcg: Save/restore vecop_list around minmax fallback
    
    Forgetting this asserts when tcg_gen_cmp_vec is called from
    within tcg_gen_cmpsel_vec.
    
    Fixes: 72b4c792c7a
    Signed-off-by: Richard Henderson <richard.henderson@xxxxxxxxxx>
---
 tcg/tcg-op-vec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c
index f784517d84..ed6fb55fe1 100644
--- a/tcg/tcg-op-vec.c
+++ b/tcg/tcg-op-vec.c
@@ -657,7 +657,9 @@ static void do_minmax(unsigned vece, TCGv_vec r, TCGv_vec a,
                       TCGv_vec b, TCGOpcode opc, TCGCond cond)
 {
     if (!do_op3(vece, r, a, b, opc)) {
+        const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL);
         tcg_gen_cmpsel_vec(cond, vece, r, a, b, a, b);
+        tcg_swap_vecop_list(hold_list);
     }
 }
 
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.