* rx.c (decode_opcode): Handle RXO_satr.
authorNick Clifton <nickc@redhat.com>
Wed, 16 Jan 2013 10:45:22 +0000 (10:45 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 16 Jan 2013 10:45:22 +0000 (10:45 +0000)
sim/rx/ChangeLog
sim/rx/rx.c

index e5cb451a355173255c5918c4281750e4800e650c..00f4bdcaa9ee920524bf1331952d23ec7e4b211d 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-16  Nick Clifton  <nickc@redhat.com>
+
+       * rx.c (decode_opcode): Handle RXO_satr.
+
 2012-06-15  Joel Brobecker  <brobecker@adacore.com>
 
        * config.in, configure: Regenerate.
index 661bdedee5a456b1096d91aca055b05510220756..e12aa85d2b672114301222bce6cdd13d81d61d3a 100644 (file)
@@ -1802,6 +1802,22 @@ decode_opcode ()
       E1;
       break;
 
+    case RXO_satr:
+      if (FLAG_O && ! FLAG_S)
+       {
+         put_reg (6, 0x0);
+         put_reg (5, 0x7fffffff);
+         put_reg (4, 0xffffffff);
+       }
+      else if (FLAG_O && FLAG_S)
+       {
+         put_reg (6, 0xffffffff);
+         put_reg (5, 0x80000000);
+         put_reg (4, 0x0);
+       }
+      E1;
+      break;
+      
     case RXO_sbb:
       MATH_OP (-, ! carry);
       break;