patch for cgen generated decoders
Dave Brolley
brolley@redhat.com
Tue Nov 7 09:25:00 GMT 2000
Approved and committed.
matthew green wrote:
> >
> > hi folks.
> >
> > i need this patch for an architecture where the standard instruction
> > bitsize is 16 bits, yet there exists a 48-bit instruction (which
> > causes CGEN_INT_INSN_P to be false). the problem i was seeing is
> > that for the 32-bit instruction my ifields were not being extracted
> > correctly, because only 16 bits were present in the "insn_value".
> > the patch below enables the code previously only available for the
> > CGEN_INT_INSN_P==1 case, but ensures that 32-bit instructions are
> > passed in their entirity in all cases.
> >
> > (actually, this code uses "unsigned long" to hold this value, where
> > it should probably use a "CGEN_INSN_INT". i'm not sure exactly if
> > it will work correctly on a LP64 host...)
> >
> > i've tested this change with the fr30 & m32r ports and it does not
> > affect their operation (fr30 is the only other port that sets
> > CGEN_INT_INSN_P to be false).
> >
> > 2000-11-05 matthew green <mrg@redhat.com>
> >
> > * cgen-dis.in (print_insn): Load a full CGEN_INSN_INT in the
> > !CGEN_INT_INSN_P case as well.
More information about the Cgen
mailing list