From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20655 invoked by alias); 16 Jan 2008 18:24:15 -0000 Received: (qmail 20647 invoked by uid 22791); 16 Jan 2008 18:24:14 -0000 X-Spam-Check-By: sourceware.org Received: from newsmtp5.atmel.com (HELO sjogate2.atmel.com) (204.2.163.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Jan 2008 18:23:52 +0000 Received: from csomb01.corp.atmel.com ([10.95.30.150]) by sjogate2.atmel.com (8.13.6/8.13.6) with ESMTP id m0GINNHJ028383; Wed, 16 Jan 2008 10:23:24 -0800 (PST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [PATCH, AVR] Fix opcode set for AT86RF401 device Date: Fri, 18 Jan 2008 17:13:00 -0000 Message-ID: <258DDD1F44B6ED4AAFD4370847CF58D5812A61@csomb01.corp.atmel.com> From: "Weddington, Eric" To: Cc: "Denis Chertykov" , "Anatoly Sokolov" Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00207.txt.bz2 The patch below fixes the opcode set for the AT86RF401 device. According to the datasheet, this device also includes MOVW and LPM Z+ opcodes. Thanks, Eric Weddington /gas: 2008-01-16 Eric B. Weddington * config/tc-avr.c (mcu_types): Change opcode set for at86rf401. /include: 2008-01-16 Eric B. Weddington * opcode/avr.h (AVR_ISA_RF401): Add new opcode set for at86rf401. --- include/opcode/avr.h.old 2008-01-14 21:50:24.960032000 -0700 +++ include/opcode/avr.h 2008-01-14 21:51:16.435550300 -0700 @@ -34,6 +34,7 @@ #define AVR_ISA_TINY1 (AVR_ISA_1200 | AVR_ISA_LPM) #define AVR_ISA_PWMx (AVR_ISA_M8 | AVR_ISA_BRK) #define AVR_ISA_2xxx (AVR_ISA_TINY1 | AVR_ISA_SRAM) +#define AVR_ISA_RF401 (AVR_ISA_2xxx | AVR_ISA_MOVW | AVR_ISA_LPMX) #define AVR_ISA_TINY2 (AVR_ISA_2xxx | AVR_ISA_MOVW | AVR_ISA_LPMX | \ AVR_ISA_SPM | AVR_ISA_BRK) #define AVR_ISA_M8 (AVR_ISA_2xxx | AVR_ISA_MUL | AVR_ISA_MOVW | \ --- gas/config/tc-avr.c.old 2008-01-14 21:46:45.595033500 -0700 +++ gas/config/tc-avr.c 2008-01-14 21:51:38.911750800 -0700 @@ -84,7 +84,7 @@ static struct mcu_type_s mcu_types[] =3D {"at90s8515", AVR_ISA_2xxx, bfd_mach_avr2}, {"at90s8535", AVR_ISA_2xxx, bfd_mach_avr2}, {"at90c8534", AVR_ISA_2xxx, bfd_mach_avr2}, - {"at86rf401", AVR_ISA_2xxx, bfd_mach_avr2}, + {"at86rf401", AVR_ISA_RF401, bfd_mach_avr2}, {"attiny13", AVR_ISA_TINY2, bfd_mach_avr2}, {"attiny2313", AVR_ISA_TINY2, bfd_mach_avr2}, {"attiny261", AVR_ISA_TINY2, bfd_mach_avr2},