This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Patch, avr] Change arch for ATA6289 from AVR25 to AVR4
- From: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 10 Jul 2013 16:23:06 +0530
- Subject: [Patch, avr] Change arch for ATA6289 from AVR25 to AVR4
Hi,
This patches changes the ISA for ATA6289 from AVR25 to AVR4.
According to the datasheet for the device, the device has the MUL
instruction - with the current classification, the assembler reports it
as illegal opcode.
If ok, could someone apply please? I don't have commit access.
Regards
Senthil
gas/ChangeLog
2013-07-10 Vishnu K.S <vishnu.k_s@atmel.com>
* config/tc-avr.c: Make ata6289's ISA to AVR_ISA_AVR4.
* doc/c-avr.texi: Likewise.
diff --git gas/config/tc-avr.c gas/config/tc-avr.c
index 285aa7c..332aa2d 100644
--- gas/config/tc-avr.c
+++ gas/config/tc-avr.c
@@ -131,7 +131,6 @@ static struct mcu_type_s mcu_types[] =
{"attiny48", AVR_ISA_AVR25, bfd_mach_avr25},
{"attiny88", AVR_ISA_AVR25, bfd_mach_avr25},
{"at86rf401", AVR_ISA_RF401, bfd_mach_avr25},
- {"ata6289", AVR_ISA_AVR25, bfd_mach_avr25},
{"at43usb355", AVR_ISA_AVR3, bfd_mach_avr3},
{"at76c711", AVR_ISA_AVR3, bfd_mach_avr3},
{"atmega103", AVR_ISA_AVR31, bfd_mach_avr31},
@@ -143,6 +142,7 @@ static struct mcu_type_s mcu_types[] =
{"atmega16u2", AVR_ISA_AVR35, bfd_mach_avr35},
{"atmega32u2", AVR_ISA_AVR35, bfd_mach_avr35},
{"atmega8", AVR_ISA_M8, bfd_mach_avr4},
+ {"ata6289", AVR_ISA_AVR4, bfd_mach_avr4},
{"atmega48", AVR_ISA_AVR4, bfd_mach_avr4},
{"atmega48a", AVR_ISA_AVR4, bfd_mach_avr4},
{"atmega48p", AVR_ISA_AVR4, bfd_mach_avr4},
diff --git gas/doc/c-avr.texi gas/doc/c-avr.texi
index 8ef9aac..213e82c 100644
--- gas/doc/c-avr.texi
+++ gas/doc/c-avr.texi
@@ -45,7 +45,7 @@ space plus the MOVW instruction (MCU types: attiny13, attiny13a, attiny2313,
attiny2313a, attiny24, attiny24a, attiny4313, attiny44, attiny44a, attiny84,
attiny84a, attiny25, attiny45, attiny85, attiny261, attiny261a, attiny461,
attiny461a, attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
-at86rf401, ata6289).
+at86rf401).
Instruction set avr3 is for the classic AVR core with up to 128K program
memory space (MCU types: at43usb355, at76c711).
@@ -60,7 +60,7 @@ atmega16u2, atmega32u2).
Instruction set avr4 is for the enhanced AVR core with up to 8K program
memory space (MCU types: atmega48, atmega48a, atmega48p, atmega8, atmega88,
atmega88a, atmega88p, atmega88pa, atmega8515, atmega8535, atmega8hva, at90pwm1,
-at90pwm2, at90pwm2b, at90pwm3, at90pwm3b, at90pwm81).
+at90pwm2, at90pwm2b, at90pwm3, at90pwm3b, at90pwm81, ata6289).
Instruction set avr5 is for the enhanced AVR core with up to 128K program
memory space (MCU types: atmega16, atmega16a, atmega161, atmega162,