From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSmhy-00080G-OJ for qemu-devel@nongnu.org; Wed, 05 Jul 2017 11:59:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSmhv-0000x5-MS for qemu-devel@nongnu.org; Wed, 05 Jul 2017 11:59:18 -0400 Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:35768) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSmhv-0000wg-HO for qemu-devel@nongnu.org; Wed, 05 Jul 2017 11:59:15 -0400 Received: by mail-pg0-x22b.google.com with SMTP id j186so126369724pge.2 for ; Wed, 05 Jul 2017 08:59:15 -0700 (PDT) Sender: Richard Henderson References: <20170608184944.19406-1-mrolnik@gmail.com> <7103e7ca-1504-58b0-1f32-aabba7f45792@twiddle.net> From: Richard Henderson Message-ID: <517fcd97-6664-025d-dc03-114bc5b49dff@twiddle.net> Date: Wed, 5 Jul 2017 05:59:08 -1000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC v19 00/13] QEMU AVR 8 bit cores List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Rolnik Cc: QEMU Developers , Anichang On 07/04/2017 08:34 PM, Michael Rolnik wrote: > Hi Richard. > > Thank you for finding a bug. > As for the testing > 1. I have a small program that calculates fibonacci numbers. I use it to test > mainly stack operations for different CPU flavors (1, 2 or 3 bytes PC). > 2. I manually verified that I can debug with gdb, that includes > a. stepping > b. running > c. stopping > d. breakpoints > e. backtrace shows correct stack > 3. I manually verified that I can save and load vm states > 4. `make check` passes > > If you please point me to a doc that explains how automatic unit tests can be > added to a QEMU target, I will happily add them. Can you boot an AVR kernel? How about the environment that newlib builds with libgloss? With that you'd be able to run the gcc testsuite, which would be extremely helpful. r~