From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18031 invoked by alias); 13 May 2002 16:43:03 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18024 invoked from network); 13 May 2002 16:43:01 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 13 May 2002 16:43:01 -0000 Received: from cygbert.vinschen.de (vpn50-12.rdu.redhat.com [172.16.50.12]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g4DGfev16942 for ; Mon, 13 May 2002 09:41:40 -0700 Received: (from corinna@localhost) by cygbert.vinschen.de (8.11.6/8.9.3/Linux sendmail 8.9.3) id g4DGgrq16565 for gdb-patches@sources.redhat.com; Mon, 13 May 2002 18:42:53 +0200 Date: Mon, 13 May 2002 09:43:00 -0000 From: Corinna Vinschen To: gdb-patches Subject: [RFA] Add v850.inc to gdb.asm testsuite Message-ID: <20020513184253.D12906@cygbert.vinschen.de> Reply-To: gdb-patches Mail-Followup-To: gdb-patches Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i X-SW-Source: 2002-05/txt/msg00471.txt.bz2 Hi, the following patch adds the v850 target as a supported target for the gdb.asm part of the testsuite. It consists of adding the v850 target to asm-sources.exp and the new file v850.inc with matching assembler code. Ok to check in? Corinna 2002-05-13 Corinna Vinschen * gdb.asm/asm-source.exp: Add v850 as supported target. * gdb.asm/v850.inc: New file. Index: asm-source.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v retrieving revision 1.23 diff -u -p -r1.23 asm-source.exp --- asm-source.exp 19 Apr 2002 17:21:48 -0000 1.23 +++ asm-source.exp 13 May 2002 16:39:32 -0000 @@ -67,6 +67,10 @@ if [istarget "xstormy16-*-*"] then { set asm-arch xstormy16 set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" } +if [istarget "v850-*-*"] then { + set asm-arch v850 + set gdb_wrapper_initialized 1 +} if { "${asm-arch}" == "" } { gdb_suppress_entire_file "Assembly source test -- not implemented for this target." } Index: v850.inc =================================================================== RCS file: v850.inc diff -N v850.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ v850.inc 13 May 2002 16:39:32 -0000 @@ -0,0 +1,41 @@ + comment "subroutine prologue" + .macro gdbasm_enter + add -8,sp + st.w r31,4[sp] + st.w r29,0[sp] + mov sp,r29 + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + mov r29,sp + ld.w 0[sp],r29 + ld.w 4[sp],r31 + add 8,sp + jmp [r31] + .endm + + .macro gdbasm_call subr + jarl \subr,r31 + .endm + + .macro gdbasm_several_nops + nop + nop + nop + nop + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + halt + .endm + + comment "crt0 startup" + .macro gdbasm_startup + movea 255,r0,r20 + mov r0, r21 + ori 65535, r0, r21 + movhi 32, r0, sp + .endm + -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mailto:vinschen@redhat.com