From: bellard Date: Sat, 10 May 2003 21:38:19 +0000 (+0000) Subject: fixed SHL C flag computation X-Git-Tag: v0.2.0~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72cc3881048edcb70912318ea9574baa4c7bf902;p=thirdparty%2Fqemu.git fixed SHL C flag computation git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@151 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/ops_template.h b/ops_template.h index 4cada782c22..7adf7be6a73 100644 --- a/ops_template.h +++ b/ops_template.h @@ -204,8 +204,13 @@ static int glue(compute_all_shl, SUFFIX)(void) return cf | pf | af | zf | sf | of; } -#if DATA_BITS == 32 static int glue(compute_c_shl, SUFFIX)(void) +{ + return (CC_SRC >> (DATA_BITS - 1)) & CC_C; +} + +#if DATA_BITS == 32 +static int glue(compute_c_sar, SUFFIX)(void) { return CC_SRC & 1; }