This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Patch for cgen machine determination
- To: cgen at sources dot redhat dot com
- Subject: Patch for cgen machine determination
- From: Patrick Macdonald <patrickm at redhat dot com>
- Date: Mon, 19 Mar 2001 16:23:55 -0500
- Organization: Red Hat Canada Limited
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 :