target/m68k: don't word align SP in stack frame if M68K_FEATURE_UNALIGNED_DATA featur...
commit31144eb6393b66b06a13e8a6ad0e730f9e82d4c6
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 8 Jan 2022 18:04:53 +0000 (8 18:04 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 9 Jan 2022 11:05:02 +0000 (9 12:05 +0100)
tree7aad9a78e192ac7925732ef6de618bfd03ffe41c
parent4e136629f003d0f5be2985b15176acbec2c5a344
target/m68k: don't word align SP in stack frame if M68K_FEATURE_UNALIGNED_DATA feature enabled

Commit a9431a03f7 ("target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature") added
a new feature for processors from the 68020 onwards which do not require data
accesses to be word aligned.

Unfortunately the original commit missed an additional case whereby the SP is
still word aligned when setting up an additional format 1 stack frame so add the
necessary M68K_FEATURE_UNALIGNED_DATA feature guard.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: a9431a03f7 ("target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature")
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220108180453.18680-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/op_helper.c