Hi Michael,

On 6/28/19 2:01 PM, Michael Rolnik wrote:
> This series of patches adds 8bit AVR cores to QEMU.
> All instruction, except BREAK/DES/SPM/SPMX, are implemented. Not fully tested 
> yet.
> However I was able to execute simple code with functions. e.g fibonacci 
> calculation.
> This series of patches include a non real, sample board.
> No fuses support yet. PC is set to 0 at reset.

I see in this thread you test some binary:
https://lists.gnu.org/archive/html/qemu-devel/2019-06/msg02291.html

https://github.com/seharris/qemu-avr-tests/blob/master/free-rtos/Demo/AVR_ATMega2560_GCC/demo.elf

Can you add a test that uses your binary and check it does something?
That would help maintaining your work over time.

Avocado tests can be quite simple, i.e.:
https://lists.gnu.org/archive/html/qemu-devel/2019-06/msg06515.html

Since you added support for the USART, you can also add some
assembler instructions to use it to this test:

https://git.qemu.org/?p=qemu.git;a=blob;f=tests/boot-serial-test.c;h=24852d4c7d0b3fc08fb0dab35f32372a0b2c46db;hb=HEAD

Thanks!

Phil.

Reply via email to