Subject: Re: Preprocessor define for m68020 or greater
To: Martin Husemann <martin@duskware.de>
From: Matt Thomas <matt@3am-software.com>
List: port-m68k
Date: 02/04/2007 18:31:56
Martin Husemann 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.

Why not add a __mlockinsn__ to <m68k/cdefs.h> ?


-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.