[SPARC] Add LEON architecture

Eric Botcazou ebotcazou@adacore.com
Sun Aug 4 13:10:00 GMT 2013


Hi,

this is an updated version of Konrad Eisele's patch from 2011:
  http://gcc.gnu.org/ml/gcc/2011-10/msg00414.html
It defines a new LEON architecture, which is V8 with 3 additional instructions: 
umac/smac a la SPARClet and casa a la V9.  I don't think switching to V8+ would 
be really appropriate, so LEON is essentially treated as V8 by binutils.

Tested for sparc-elf and with a patched compiler, OK for mainline?


2013-08-04  Eric Botcazou  <ebotcazou@adacore.com>
            Konrad Eisele  <konrad@gaisler.com>
gas/
	* config/tc-sparc.c (sparc_arch_types): Add leon.
	(sparc_arch): Move sparc4 around and add leon.
	(sparc_target_format): Document -Aleon.
	* doc/c-sparc.texi: Likewise.
include/
	* opcode/sparc.h (sparc_opcode_arch_val): Add SPARC_OPCODE_ARCH_LEON.
opcodes/
	* sparc-dis.c (compute_arch_mask): Set SPARC_OPCODE_ARCH_LEON bit for
	bfd_mach_sparc.
	* sparc-opc.c (MASK_LEON): Define.
	(v6, v6notlet, v7, v8, v6notv9): Add MASK_LEON.
	(sparc_opc): Add leon.
	(umac): Enable if MASK_LEON.
	(umac): Likewise.
	(casa): Likewise.
	(cas): Likewise.
	(casl): Likewise.
	

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 9769 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130804/8ebaaf74/attachment.bin>


More information about the Binutils mailing list