home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.m68k
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!oakhill!floydg
- From: floydg@oakhill.sps.mot.com (Floyd Goodrich)
- Subject: Re: Which processor?
- Message-ID: <1992Sep1.143201.19760@oakhill.sps.mot.com>
- Keywords: processor, cache
- Organization: Motorola Inc., Austin Tx.
- References: <6040@pdxgate.UUCP>
- Date: Tue, 1 Sep 1992 14:32:01 GMT
- Lines: 21
-
- In article <6040@pdxgate.UUCP > idr@rigel.cs.pdx.edu (Ian D Romanick) writes:
- >How does one go about detmining what processor you are running on? On my
- >machine type only 68000, '010, '020, '030, and '040 are available and I need
- >to be able to know which I'm running on. I also need to know how to shut off
- >the caches on the before mentioned processors. I've though about using an
- >illegal instruction trap, but I'm sure there has to be a more elegent method.
- >If there's a FAQ for this, sorry, but point me in its direction. :)
-
- You can write to and then read from the appropriate register which configures
- the cache(s) on the chips. They are all different. The movec encoding for
- this on the 68000 will generate an illegal, the 020 has some bits set, the
- 030 and 040 have others.
-
- Forcing illegal instructions and examining the stack frames generated is
- another way to do this.
-
-
- --
- Floyd Goodrich
- Motorola 68K Applications
-
-