sc_machine.h revision 12027
12810Srdreslin@umich.edu/*****************************************************************************
211051Sandreas.hansson@arm.com
311051Sandreas.hansson@arm.com  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
411051Sandreas.hansson@arm.com  more contributor license agreements.  See the NOTICE file distributed
511051Sandreas.hansson@arm.com  with this work for additional information regarding copyright ownership.
611051Sandreas.hansson@arm.com  Accellera licenses this file to you under the Apache License, Version 2.0
711051Sandreas.hansson@arm.com  (the "License"); you may not use this file except in compliance with the
811051Sandreas.hansson@arm.com  License.  You may obtain a copy of the License at
911051Sandreas.hansson@arm.com
1011051Sandreas.hansson@arm.com    http://www.apache.org/licenses/LICENSE-2.0
1111051Sandreas.hansson@arm.com
1211051Sandreas.hansson@arm.com  Unless required by applicable law or agreed to in writing, software
1311051Sandreas.hansson@arm.com  distributed under the License is distributed on an "AS IS" BASIS,
1411051Sandreas.hansson@arm.com  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1511051Sandreas.hansson@arm.com  implied.  See the License for the specific language governing
162810Srdreslin@umich.edu  permissions and limitations under the License.
172810Srdreslin@umich.edu
182810Srdreslin@umich.edu *****************************************************************************/
192810Srdreslin@umich.edu
202810Srdreslin@umich.edu/*****************************************************************************
212810Srdreslin@umich.edu
222810Srdreslin@umich.edu  sc_machine.h -- Machine-dependent Environment Settings
232810Srdreslin@umich.edu
242810Srdreslin@umich.edu  Original Author: Andy Goodrich, Forte Design Systems, Inc.
252810Srdreslin@umich.edu
262810Srdreslin@umich.edu  CHANGE LOG AT END OF FILE
272810Srdreslin@umich.edu *****************************************************************************/
282810Srdreslin@umich.edu
292810Srdreslin@umich.edu
302810Srdreslin@umich.edu#ifndef SC_MACHINE_H
312810Srdreslin@umich.edu#define SC_MACHINE_H
322810Srdreslin@umich.edu
332810Srdreslin@umich.edu#include <climits>
342810Srdreslin@umich.edu//#include "sysc/packages/boost/detail/endian.hpp"
352810Srdreslin@umich.edu
362810Srdreslin@umich.edu// We stripped the boost include and assume a build on x86
372810Srdreslin@umich.edu#define SC_BOOST_LITTLE_ENDIAN
382810Srdreslin@umich.edu
392810Srdreslin@umich.edu// ----------------------------------------------------------------------------
402810Srdreslin@umich.edu//  Little or big endian machine?
412810Srdreslin@umich.edu// ----------------------------------------------------------------------------
4211051Sandreas.hansson@arm.com
4311051Sandreas.hansson@arm.com#if defined( SC_BOOST_LITTLE_ENDIAN )
442810Srdreslin@umich.edu#   define SC_LITTLE_ENDIAN
4511051Sandreas.hansson@arm.com#elif defined( SC_BOOST_BIG_ENDIAN )
4611051Sandreas.hansson@arm.com#   define SC_BIG_ENDIAN
472810Srdreslin@umich.edu#else
482810Srdreslin@umich.edu#   error "Could not detect the endianness of the CPU."
492810Srdreslin@umich.edu#endif
502810Srdreslin@umich.edu
5111051Sandreas.hansson@arm.com// ----------------------------------------------------------------------------
522810Srdreslin@umich.edu//  Are long data types 32-bit or 64-bit?
532810Srdreslin@umich.edu// ----------------------------------------------------------------------------
5411051Sandreas.hansson@arm.com
552810Srdreslin@umich.edu#if ULONG_MAX > 0xffffffffUL
5611051Sandreas.hansson@arm.com#   define SC_LONG_64
5711051Sandreas.hansson@arm.com#endif
5811051Sandreas.hansson@arm.com
5911051Sandreas.hansson@arm.com// $Log: sc_machine.h,v $
6011051Sandreas.hansson@arm.com// Revision 1.5  2011/08/26 22:58:23  acg
6111051Sandreas.hansson@arm.com//  Torsten Maehne: changes for endian detection.
6211051Sandreas.hansson@arm.com//
6311051Sandreas.hansson@arm.com// Revision 1.4  2011/08/26 20:46:18  acg
6411051Sandreas.hansson@arm.com//  Andy Goodrich: moved the modification log to the end of the file to
6511051Sandreas.hansson@arm.com//  eliminate source line number skew when check-ins are done.
6611053Sandreas.hansson@arm.com//
6711053Sandreas.hansson@arm.com// Revision 1.3  2011/02/18 20:38:44  acg
6811051Sandreas.hansson@arm.com//  Andy Goodrich: Updated Copyright notice.
6911051Sandreas.hansson@arm.com//
7011051Sandreas.hansson@arm.com// Revision 1.2  2010/09/06 16:35:09  acg
7111197Sandreas.hansson@arm.com//  Andy Goodrich: changed i386 to __i386__ in ifdef.
7211197Sandreas.hansson@arm.com//
7311199Sandreas.hansson@arm.com// Revision 1.1.1.1  2006/12/15 20:20:06  acg
7411197Sandreas.hansson@arm.com// SystemC 2.3
7511197Sandreas.hansson@arm.com//
7611197Sandreas.hansson@arm.com// Revision 1.3  2006/01/13 18:53:10  acg
7711051Sandreas.hansson@arm.com// Andy Goodrich: Added $Log command so that CVS comments are reproduced in
7811051Sandreas.hansson@arm.com// the source.
7911051Sandreas.hansson@arm.com//
8011051Sandreas.hansson@arm.com
8111051Sandreas.hansson@arm.com#endif // !defined(SC_MACHINE_H)
8211051Sandreas.hansson@arm.com