Subject: Re: Preprocessor define for m68020 or greater
To: None <martin@duskware.de>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-m68k
Date: 02/11/2007 02:28:14
martin@duskware.de wrote:

> I would like to use instructions like tas, cas, and cas2 in some kernel
> code - so I'd need to know if we are compiling for m68020 or greater - is
> there some easy way to do that?
> 
> #if defined(__mc68020__) || defined(__mc68030__) ... 
> 
> does not seem like the most elegant way.

"#ifndef __mc68010__" is used in some header files.
---
Izumi Tsutsui