OSDN Git Service

hw/avr/atmega: Fix wrong initial value of stack pointer
authorGihun Nam <gihun.nam@outlook.com>
Mon, 27 Nov 2023 02:54:20 +0000 (11:54 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 28 Nov 2023 13:27:12 +0000 (14:27 +0100)
commit235948bf53860a1e2df5134eae7b0a30a971a124
treeabc0a352dbd85063b3a0abae1b99b1198e513949
parent0ed083a1bcdbdfe77ded69b3524ad22d120fae03
hw/avr/atmega: Fix wrong initial value of stack pointer

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 <gihun.nam@outlook.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <PH0P222MB0010877445B594724D40C924DEBDA@PH0P222MB0010.NAMP222.PROD.OUTLOOK.COM>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/avr/atmega.c
target/avr/cpu.c
target/avr/cpu.h