[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] AVR watchdog
From: |
Fred Konrad |
Subject: |
Re: [RFC] AVR watchdog |
Date: |
Wed, 28 Apr 2021 20:43:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 |
Le 4/28/21 à 8:17 PM, Michael Rolnik a écrit :
Hi Fred.
How can I reproduce it?
Thank you.
Michael Rolnik
Hi Michael,
First sorry for the patchew noise, I didn't meant to sent a patch just an
inlined diff.
For the reproducer, that's pretty straight-forward with v6.0.0-rc5:
$ cat > foo.S << EOF
> __start:
> wdr
> EOF
$ avr-gcc -nostdlib -nostartfiles -mmcu=avr6 foo.S -o foo.elf
$ xxx/qemu-system-avr -serial mon:stdio -nographic -no-reboot -M mega \
-bios foo.elf -d in_asm --singlestep
IN:
0x00000000: WDR
Segmentation fault (core dumped)
Note that I put "--singlestep" here to avoid translating NOPs after the WDR,
it breaks without as well.
Fred