/[qemu]/qemu/target-i386/ops_template.h
ViewVC logotype

Diff of /qemu/target-i386/ops_template.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by bellard, Thu Nov 13 00:13:08 2003 UTC revision 1.3 by bellard, Tue Dec 2 22:01:31 2003 UTC
# Line 229  static int glue(compute_all_sar, SUFFIX) Line 229  static int glue(compute_all_sar, SUFFIX)
229      return cf | pf | af | zf | sf | of;      return cf | pf | af | zf | sf | of;
230  }  }
231    
232    #if DATA_BITS == 32
233    static int glue(compute_c_mul, SUFFIX)(void)
234    {
235        int cf;
236        cf = (CC_SRC != 0);
237        return cf;
238    }
239    #endif
240    
241    /* NOTE: we compute the flags like the P4. On olders CPUs, only OF and
242       CF are modified and it is slower to do that. */
243    static int glue(compute_all_mul, SUFFIX)(void)
244    {
245        int cf, pf, af, zf, sf, of;
246        cf = (CC_SRC != 0);
247        pf = parity_table[(uint8_t)CC_DST];
248        af = 0; /* undefined */
249        zf = ((DATA_TYPE)CC_DST == 0) << 6;
250        sf = lshift(CC_DST, 8 - DATA_BITS) & 0x80;
251        of = cf << 11;
252        return cf | pf | af | zf | sf | of;
253    }
254    
255  /* various optimized jumps cases */  /* various optimized jumps cases */
256    
257  void OPPROTO glue(op_jb_sub, SUFFIX)(void)  void OPPROTO glue(op_jb_sub, SUFFIX)(void)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26