2001-09-30 John Healy <jhealy@redhat.com>
authorJohn Healy <jhealy@redhat.com>
Sun, 30 Sep 2001 20:06:37 +0000 (20:06 +0000)
committerJohn Healy <jhealy@redhat.com>
Sun, 30 Sep 2001 20:06:37 +0000 (20:06 +0000)
        * cgen-ibld.in (insert_1): Switched bfd_get_bits and bfd_set_bits
        calls to cgen_get_insn_value and cgen_put_insn_value calls.
        (extract_1): Switched bfd_get_bits call to cgen_get_insn_value call.

opcodes/ChangeLog
opcodes/cgen-ibld.in

index dd895a4b8bb6d2d61f8c1857f10d9196db772f1c..fef5a03de123d158f4341819ed5f4ebd438ebb4f 100644 (file)
@@ -1,3 +1,9 @@
+2001-09-30  John Healy  <jhealy@redhat.com>
+
+        * cgen-ibld.in (insert_1): Switched bfd_get_bits and bfd_set_bits
+        calls to cgen_get_insn_value and cgen_put_insn_value calls.
+        (extract_1): Switched bfd_get_bits call to cgen_get_insn_value call.
+
 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * Makefile.am: Update dependencies with "make dep-am".
index 213b8882d95c3abd2ecadf3c3be2b5417c5ba9fc..61233bd2351111309dd429d7be65843082a356e2 100644 (file)
@@ -78,7 +78,7 @@ insert_1 (cd, value, start, length, word_length, bufp)
   int shift;
   int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG;
 
-  x = bfd_get_bits (bufp, word_length, big_p);
+  x = cgen_get_insn_value (cd, bufp, word_length);
 
   /* Written this way to avoid undefined behaviour.  */
   mask = (((1L << (length - 1)) - 1) << 1) | 1;
@@ -88,7 +88,7 @@ insert_1 (cd, value, start, length, word_length, bufp)
     shift = (word_length - (start + length));
   x = (x & ~(mask << shift)) | ((value & mask) << shift);
 
-  bfd_put_bits ((bfd_vma) x, bufp, word_length, big_p);
+  cgen_put_insn_value (cd, bufp, word_length, (bfd_vma) x);
 }
 
 #endif /* ! CGEN_INT_INSN_P */
@@ -365,7 +365,7 @@ extract_1 (cd, ex_info, start, length, word_length, bufp, pc)
   int shift;
   int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG;
 
-  x = bfd_get_bits (bufp, word_length, big_p);
+  x = cgen_get_insn_value (cd, bufp, word_length);
 
   if (CGEN_INSN_LSB0_P)
     shift = (start + 1) - length;
This page took 0.030043 seconds and 4 git commands to generate.