]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 5 Dec 2023 09:32:36 +0000 (12:32 +0300)
commit66f14b70fe1b23ccf72a17c3324d95b38ee45a21
treec7cb1cebb16994181f0086f7db4dca3706661ef6
parentfbca2cbbef1c9599290342bac0b93223d76b7d05
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>
(cherry picked from commit 235948bf53860a1e2df5134eae7b0a30a971a124)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/avr/atmega.c
target/avr/cpu.c
target/avr/cpu.h