* am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.
authorNick Clifton <nickc@redhat.com>
Mon, 20 Jun 2011 16:50:51 +0000 (16:50 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Jun 2011 16:50:51 +0000 (16:50 +0000)
sim/mn10300/ChangeLog
sim/mn10300/am33.igen

index 2077186881ac6d0e64e3fba301c23dbcb7fd12a7..1543b03cfb78460900971357063fb2b8cd2ffb28 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-20  Nick Clifton  <nickc@redhat.com>
+
+       * am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.
+
 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
 
        * interp.c (sim_store_register): Update return value to
index f17283cfb4e0c0de3f0d3ec33a677abca97d8b41..5bc96aca6164efb19c08a24cc3870d144350a959 100644 (file)
 
   z = (difference == 0);
   n = (difference & 0x80000000);
-  c = (source1 > source1);
+  c = (source1 > source2);
   v = ((source1 & 0x80000000) == (source2 & 0x80000000)
        && (source1 & 0x80000000) != (difference & 0x80000000));