2003-08-10 21:35:13 +00:00
|
|
|
/*
|
|
|
|
|
* common defines for all CPUs
|
2007-09-16 21:08:06 +00:00
|
|
|
*
|
2003-08-10 21:35:13 +00:00
|
|
|
* Copyright (c) 2003 Fabrice Bellard
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
2020-10-23 12:33:53 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-08-10 21:35:13 +00:00
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-07-16 20:47:01 +00:00
|
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
2003-08-10 21:35:13 +00:00
|
|
|
*/
|
|
|
|
|
#ifndef CPU_DEFS_H
|
|
|
|
|
#define CPU_DEFS_H
|
|
|
|
|
|
2023-06-13 16:29:11 +02:00
|
|
|
#ifndef COMPILING_PER_TARGET
|
2007-11-17 17:14:51 +00:00
|
|
|
#error cpu.h included from common code
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-03-22 11:51:19 -07:00
|
|
|
#include "cpu-param.h"
|
|
|
|
|
|
2004-01-24 15:26:06 +00:00
|
|
|
#ifndef TARGET_LONG_BITS
|
2019-03-22 11:51:19 -07:00
|
|
|
# error TARGET_LONG_BITS must be defined in cpu-param.h
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef TARGET_PHYS_ADDR_SPACE_BITS
|
|
|
|
|
# error TARGET_PHYS_ADDR_SPACE_BITS must be defined in cpu-param.h
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef TARGET_VIRT_ADDR_SPACE_BITS
|
|
|
|
|
# error TARGET_VIRT_ADDR_SPACE_BITS must be defined in cpu-param.h
|
|
|
|
|
#endif
|
2025-03-28 14:28:06 -05:00
|
|
|
#if !defined(TARGET_PAGE_BITS) && !defined(TARGET_PAGE_BITS_VARY)
|
|
|
|
|
# error TARGET_PAGE_BITS must be defined in cpu-param.h
|
2004-01-24 15:26:06 +00:00
|
|
|
#endif
|
|
|
|
|
|
2023-03-02 18:58:00 -08:00
|
|
|
#include "exec/target_long.h"
|
2004-01-24 15:26:06 +00:00
|
|
|
|
2003-08-10 21:35:13 +00:00
|
|
|
#endif
|