[PATCH v2] avr: Fix wrong initial value of stack pointer

2023-11-27 Thread Gihun Nam
The current implementation initializes the stack pointer of AVR devices to 0. Although older AVR devices used to be like that, newer ones set it to RAMEND. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1525 Signed-off-by: Gihun Nam --- Edit code to use QOM property and add more

[PATCH] avr: Fix wrong initial value of stack pointer

2023-11-26 Thread Gihun Nam
The current implementation initializes the stack pointer of AVR devices to 0, but it should be set to RAMEND according to the specs. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1525 Signed-off-by: Gihun Nam --- hw/avr/atmega.c | 3 +++ target/avr/cpu.c | 2 +- target/avr/cpu.h | 3