diff options
author | Lucien Murray-Pitts <lucienmp.qemu@gmail.com> | 2021-02-01 01:01:52 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-02-11 21:10:01 +0100 |
commit | 7525a9b94c0c5733b8450c9451ca1de334f71ed8 (patch) | |
tree | da772c2697bc26e425178014a12286b70a1739c8 /target/m68k/cpu.c | |
parent | 8df0e6aedad33c6746f4bc2a4d0cfdd432877084 (diff) | |
download | qemu-7525a9b94c0c5733b8450c9451ca1de334f71ed8.zip qemu-7525a9b94c0c5733b8450c9451ca1de334f71ed8.tar.gz qemu-7525a9b94c0c5733b8450c9451ca1de334f71ed8.tar.bz2 |
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>
Diffstat (limited to 'target/m68k/cpu.c')
-rw-r--r-- | target/m68k/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index ff3c4c1..37d2ed9 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -160,6 +160,7 @@ static void m68020_cpu_initfn(Object *obj) m68k_set_feature(env, M68K_FEATURE_FPU); m68k_set_feature(env, M68K_FEATURE_CAS); m68k_set_feature(env, M68K_FEATURE_CHK2); + m68k_set_feature(env, M68K_FEATURE_MSP); } /* |