]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Separate 68040 only file because standard gcc .arch sucks.
authorToni Wilen <twilen@winuae.net>
Fri, 13 Sep 2019 14:04:05 +0000 (17:04 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 13 Sep 2019 14:04:05 +0000 (17:04 +0300)
cputest/amiga.S
cputest/asm.S
cputest/asm040.S [new file with mode: 0644]
cputest/makefile

index c7b4dd94c224c06587fd7a0d8893279addeb176c..488e0096e6bdb76e7ed5ae246849f2570ab652a3 100644 (file)
@@ -93,9 +93,7 @@ scpucheck:
        move.l a1,0x10(a0)
        move.l sp,a1
        moveq #4,d0
-.arch 68060
-       movec pcr,d0
-.arch 68020
+       dc.l 0x4e7a0808 | movec pcr,d0
        moveq #5,d0
 illg:
        move.l d1,0x10(a0)
index 6835dbb8ed6ee076f0462d314fb0eecdfa539931..bf18aad73d57095ecaed6659518efc8857816a8f 100644 (file)
@@ -92,16 +92,11 @@ _setcpu:
 _flushcache:
        move.l 4(sp),d1 | cpu_lvl
        cmp.w #4,d1
-       bcc.s .fc040    
+       bcc flushcache040
        movec cacr,d0
        bset #3,d0
        movec d0,cacr
        rts
-.fc040:
-       .arch 68040
-       cpusha bc
-       .arch 68020
-       rts
 
        | set and return old VBR
 _setvbr:
diff --git a/cputest/asm040.S b/cputest/asm040.S
new file mode 100644 (file)
index 0000000..8738c2a
--- /dev/null
@@ -0,0 +1,10 @@
+
+       .text
+
+       .globl flushcache040
+
+       .arch 68040
+
+flushcache040:
+       cpusha bc
+       rts
index ed34c98030e8ddf9c7adface063f3ee34d1ec6ae..67c5f9999918f3137a07cfb5a158dce75331de24 100644 (file)
@@ -8,7 +8,7 @@ AS=/opt/amiga/bin/m68k-amigaos-as
 CFLAGS = -mcrt=nix13 -O2 -m68000 -fomit-frame-pointer -msmall-code -msoft-float -DREVDATE=$(NOWDATE) -DREVTIME=$(NOWTIME) -DAMIGA -DM68K
 LINK_CFLAGS = -mcrt=nix13 -lm -s
 
-OBJS = main.o asm.o amiga.o \
+OBJS = main.o asm.o asm040.o amiga.o \
        decode_ea.o globals.o opcode_handler_cpu.o opcode_handler_fpu.o \
        opcode_handler_mmu.o opcodes_cpu.o opcodes_fpu.o opcodes_mmu.o util.o
 
@@ -48,5 +48,8 @@ util.o: adis/util.c
 asm.o: asm.S
        $(AS) -m68020  -o $@ asm.S
 
+asm040.o: asm040.S
+       $(AS) -m68020  -o $@ asm040.S
+
 amiga.o: amiga.S
        $(AS) -m68020  -o $@ amiga.S