From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by sourceware.org (Postfix) with ESMTPS id E89C33851C12 for ; Mon, 11 May 2020 22:13:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E89C33851C12 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-ua1-x92b.google.com with SMTP id a7so4021625uak.2 for ; Mon, 11 May 2020 15:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uxlw52UkZwHxI2GPX0f2nacTBU759pchMMs4Nrv4aEo=; b=Ekm8YH3JJCbrRBxLkT6rYqZs2dNlXHHxlQUykcuiGRpd09Ua1uw70tBlpLpaL6IBzP 3M7zj/4fWe8oWUB2Cr6D9SKYunYNtz1NYnFTKnyT23EC196XXKfLd1fxNX06BNeWp8yx dY+43FMS9jPWgDw3Tej+kI2HYsIlcKB1zqumrkQ9gpoYkbEtUDkMYrUh9FeERyE//0Wq 95JPSULHgYeQYYnNsy3bIDc1u5mbeKOKzdGjLVE0IHqugynMAcdbXFlkwPkA015wzM3J vxi4QxrBmIJNq9fr/Um1b8oXm68nDYj3KI0Ylpszox18uX/aRsBjNtz2NU68ZVHkZrKn q/ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uxlw52UkZwHxI2GPX0f2nacTBU759pchMMs4Nrv4aEo=; b=JXlXMB4GFd0iuUSRhI/sOeBbaiSwK/1xI4ZdyplshHLffpJ/mTfPMTcRTLpRfMHXqT XRsm5l0+xhYLy7BTFxztoBZ4HpBaGU5fEO3I2RPX4EvjsMb7sozeC+o7Eq8IX9pY8TA+ +z7oXKTYbTYkNUry8g4b4EbN6wylAFsmFnPU/5Pz8Rx+nEL5xRK0kPrFHD4GEPmM/7nD uupXvJQPgaJJxYWu9+bYg9uEwvNd5vvM7ktevwnlR3i9MgyJS/JatzE4z3REzQDzoRgf sHiFe1gQFO9mEBmLb2hdSmIF3xhv1+Cpf6oPMFUEHfmmbIgTXQ2xlhBiM+9nwU/jhcfg rFhQ== X-Gm-Message-State: AGi0PuY95CveO+WMSbOnevWZ3P0nOqDyizuaVUxX7jyThby+BVUlbZiV IQuMwx7l8w9hVZegj2izCFD7EsXGImgvpfxB+KuNDOod X-Google-Smtp-Source: APiQypIAjoo0/GV/M2300s1GI+xkgY90VStoBTpYye0BAeEHBKjRO1xvXrjNHq2iZCmASlC6ct++Eq8cpD88SV2Ut+Q= X-Received: by 2002:a9f:2b0a:: with SMTP id p10mr13652094uaj.10.1589235233384; Mon, 11 May 2020 15:13:53 -0700 (PDT) MIME-Version: 1.0 References: <05b1ac83-4c46-45b5-d6ce-aba700b9c933@simark.ca> <802bfcc2-2a74-ef30-eca0-b247a6d5b8f1@simark.ca> In-Reply-To: From: Jim Wilson Date: Mon, 11 May 2020 15:13:42 -0700 Message-ID: Subject: Re: Running programs on aarch64 simulator To: joel@rtems.org Cc: Nick Clifton , Simon Marchi , gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2020 22:13:55 -0000 On Mon, May 11, 2020 at 11:30 AM Joel Sherrill wrote: > Thanks Jim. That is very helpful. I managed to get an executable > to run with aarch64-elf-run and traced it failing quite early at > newlib-cygwin/libgloss/aarch64/syscalls.c:287 doing something with > the semi-hosting extensions. Have you seen this simulator work > well enough recently to run the gcc testsuite? It has been maybe 2.5 years since I last tried. That is about when I left Linaro. > It sounds like for my purposes of where to start development of an > aarch64 RTEMS port, this is one time we need to skip the gdb simulator > step. The gdb simulators are just so nice to work through basic issues > like context switching, stack setup, etc. Since we would only need C > with basic integer operations and enough FPU support to context > switch the FPU, 1200 gcc failures may not have been a stopper. I don't know if any of the system instructions work. A gcc testsuite run will only test user instructions. I like the gdb simulators too. That is why I did some work with it. Jim