From: Edgar E. Iglesias Date: Mon, 15 Feb 2010 10:20:30 +0000 (+0100) Subject: crisv10: Always clear the V and C flags on btst. X-Git-Tag: v0.13.0-rc0~1379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95475216f23216683b85c420132849553319eae2;p=thirdparty%2Fqemu.git crisv10: Always clear the V and C flags on btst. Signed-off-by: Edgar E. Iglesias --- diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c index b44b9325ff6..a60da94f309 100644 --- a/target-cris/op_helper.c +++ b/target-cris/op_helper.c @@ -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;