This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Xtensa] use symbolic enum values in ISA tables


The tables in bfd/xtensa-modules.c, which provide information about the configurable Xtensa ISA, are littered with hardcoded constants to refer to the various entities (opcodes, register files, processor states, etc.) defined in that file. We need to make some changes to this file, but it is a bit of a mess because many of all those hardcoded constants. This patch adds enums for all those entities and replaces the hardcoded constants with the symbolic enum values. Tested with an xtensa-elf target and committed on the trunk.

bfd/ChangeLog/

2008-11-14 Bob Wilson <bob.wilson@acm.org>

	* xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
	(xtensa_field_id, xtensa_regfile_id, xtensa_operand_id)
	(xtensa_iclass_id, xtensa_opcode_id): New enums.
	Replace hardcoded constants throughout this file with enum values.

Attachment: xtensa-modules.patch.gz
Description: GNU Zip compressed data


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