Commit 72cc3881048edcb70912318ea9574baa4c7bf902

Authored by bellard
1 parent 378180d8

fixed SHL C flag computation


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@151 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 6 additions and 1 deletions
ops_template.h
@@ -204,9 +204,14 @@ static int glue(compute_all_shl, SUFFIX)(void) @@ -204,9 +204,14 @@ static int glue(compute_all_shl, SUFFIX)(void)
204 return cf | pf | af | zf | sf | of; 204 return cf | pf | af | zf | sf | of;
205 } 205 }
206 206
207 -#if DATA_BITS == 32  
208 static int glue(compute_c_shl, SUFFIX)(void) 207 static int glue(compute_c_shl, SUFFIX)(void)
209 { 208 {
  209 + return (CC_SRC >> (DATA_BITS - 1)) & CC_C;
  210 +}
  211 +
  212 +#if DATA_BITS == 32
  213 +static int glue(compute_c_sar, SUFFIX)(void)
  214 +{
210 return CC_SRC & 1; 215 return CC_SRC & 1;
211 } 216 }
212 #endif 217 #endif