Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: 68030 cache disable
Posted by: mikro Jul,25.2011-10:16 

This is what I use:

_asm_save_030_cache_settings:
movec cacr,d0
move.l d0,save_cacr
rts

_asm_deactivate_030_datacache:
movec cacr,d0
bset #0,d0 ; i cache on
bset #4,d0 ; i burst on
bclr #8,d0 ; d cache off
bclr #12,d0 ; d burst off
movec d0,cacr
rts

_asm_restore_030_cache_settings:
move.l save_cacr,d0
bset #11,d0 ; clear data cache
bset #3,d0 ; clear inst cache
movec d0,cacr
rts

But as you probably know, this is 030 specific thing, 040+ uses completely different registers/bits.







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
68030 cache disable Sallafranque Jul,24.2011-13:14
  Re: 68030 cache disable Sallafranque Jul,24.2011-13:17
    Re: 68030 cache disable mikro Jul,25.2011-10:16
      Re: 68030 cache disable Sallafranque Jul,25.2011-13:47
  Re: 68030 cache disable Defjam Jul,24.2011-17:53


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson