[ARM][binutils] Rework CPU feature selection in the disassembler

Matthew Wahab matthew.wahab@arm.com
Thu May 21 09:00:00 GMT 2015


The handling of feature-sets in arm-dis.c/select_arm_features currently uses a
pair of macro redefinitions to record the features to be recognized. These macro
redefinitions make the code difficult to understand. This patch reworks the code
to be more transparent.

Tested for arm-none-linux-gnueabihf with check-binutils and check-gas.

Ok for trunk?
Matthew

include/opcode/
2015-05-21  Matthew Wahab  <matthew.wahab@arm.com>

	* arm.h (ARM_FEATURE_ALL): New.

opcodes/
2015-05-21  Matthew Wahab  <matthew.wahab@arm.com>

	* arm-dis.c (select_arm_features): Rework to avoid used of
	redefined macros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ARM-binutils-Rework-feature-selection.patch
Type: text/x-patch
Size: 3451 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150521/d858deb7/attachment.bin>


More information about the Binutils mailing list