]> git.proxmox.com Git - qemu.git/commitdiff
crisv10: Always clear the V and C flags on btst.
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 15 Feb 2010 10:20:30 +0000 (11:20 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 15 Feb 2010 10:20:30 +0000 (11:20 +0100)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-cris/op_helper.c

index b44b9325ff6148a9666ca25490025a40550a178f..a60da94f309628df4f4bf9815c769aa1cddd30bf 100644 (file)
@@ -276,6 +276,8 @@ uint32_t helper_btst(uint32_t t0, uint32_t t1, uint32_t ccs)
 
        /* Clear the X, N and Z flags.  */
        ccs = ccs & ~(X_FLAG | N_FLAG | Z_FLAG);
+       if (env->pregs[PR_VR] < 32)
+               ccs &= ~(V_FLAG | C_FLAG);
        /* Set the N and Z flags accordingly.  */
        ccs |= (bset << 3) | (fz << 2);
        return ccs;