m68k: add MSP detection support for stack pointer swap helpers
authorLucien Murray-Pitts <lucienmp.qemu@gmail.com>
Mon, 1 Feb 2021 00:01:52 +0000 (01:01 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 11 Feb 2021 20:10:01 +0000 (21:10 +0100)
commit7525a9b94c0c5733b8450c9451ca1de334f71ed8
treeda772c2697bc26e425178014a12286b70a1739c8
parent8df0e6aedad33c6746f4bc2a4d0cfdd432877084
m68k: add MSP detection support for stack pointer swap helpers

On m68k there are two varities of stack pointers: USP with SSP or ISP/MSP.

Only the 68020/30/40 support the MSP register the stack swap helpers don't
support this feature.

This patch adds this support, as well as comments to CPUM68KState to
make it clear how stacks are handled

Signed-off-by: Lucien Murray-Pitts <lucienmp.qemu@gmail.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <c61ad2d8b39f3b03b431819b6bf602a1c332b921.1612137712.git.balaton@eik.bme.hu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/cpu.c
target/m68k/cpu.h
target/m68k/helper.c