This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for cgen machine determination


Hi,

The included patch corrects a typo (I believe) in desc-cpu.scm.

The value of the machine should be 1 left shifted by the cgen
machine returned by the lookup routine.

Ok to commit?

Patrick

----------------------------

 2001-03-19  Patrick Macdonald  <patrickm@redhat.com>
 
      * desc-cpu.scm (@arch@_cgen_cpu_open): Correct machine calculation
      for arg_type CGEN_CPU_OPEN_BFDMACH.


Index: desc-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/desc-cpu.scm,v
retrieving revision 1.6
diff -c -p -r1.6 desc-cpu.scm
*** desc-cpu.scm        2001/02/02 22:50:13     1.6
--- desc-cpu.scm        2001/03/19 21:05:36
*************** CGEN_CPU_DESC
*** 759,765 ****
            const CGEN_MACH *mach =
              lookup_mach_via_bfd_name (@arch@_cgen_mach_table, name);
  
!           machs |= mach->num << 1;
            break;
          }
        case CGEN_CPU_OPEN_ENDIAN :
--- 759,765 ----
            const CGEN_MACH *mach =
              lookup_mach_via_bfd_name (@arch@_cgen_mach_table, name);
  
!           machs |= 1 << mach->num;
            break;
          }
        case CGEN_CPU_OPEN_ENDIAN :


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]