1ab93bbe2Sbellard /* 2ab93bbe2Sbellard * common defines for all CPUs 3ab93bbe2Sbellard * 4ab93bbe2Sbellard * Copyright (c) 2003 Fabrice Bellard 5ab93bbe2Sbellard * 6ab93bbe2Sbellard * This library is free software; you can redistribute it and/or 7ab93bbe2Sbellard * modify it under the terms of the GNU Lesser General Public 8ab93bbe2Sbellard * License as published by the Free Software Foundation; either 9d6ea4236SChetan Pant * version 2.1 of the License, or (at your option) any later version. 10ab93bbe2Sbellard * 11ab93bbe2Sbellard * This library is distributed in the hope that it will be useful, 12ab93bbe2Sbellard * but WITHOUT ANY WARRANTY; without even the implied warranty of 13ab93bbe2Sbellard * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14ab93bbe2Sbellard * Lesser General Public License for more details. 15ab93bbe2Sbellard * 16ab93bbe2Sbellard * You should have received a copy of the GNU Lesser General Public 178167ee88SBlue Swirl * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18ab93bbe2Sbellard */ 19ab93bbe2Sbellard #ifndef CPU_DEFS_H 20ab93bbe2Sbellard #define CPU_DEFS_H 21ab93bbe2Sbellard 227d7a21baSPhilippe Mathieu-Daudé #ifndef COMPILING_PER_TARGET 2387ecb68bSpbrook #error cpu.h included from common code 2487ecb68bSpbrook #endif 2587ecb68bSpbrook 2674433bf0SRichard Henderson #include "cpu-param.h" 2774433bf0SRichard Henderson 2835b66fc4Sbellard #ifndef TARGET_LONG_BITS 2974433bf0SRichard Henderson # error TARGET_LONG_BITS must be defined in cpu-param.h 3074433bf0SRichard Henderson #endif 3174433bf0SRichard Henderson #ifndef TARGET_PHYS_ADDR_SPACE_BITS 3274433bf0SRichard Henderson # error TARGET_PHYS_ADDR_SPACE_BITS must be defined in cpu-param.h 3374433bf0SRichard Henderson #endif 3474433bf0SRichard Henderson #ifndef TARGET_VIRT_ADDR_SPACE_BITS 3574433bf0SRichard Henderson # error TARGET_VIRT_ADDR_SPACE_BITS must be defined in cpu-param.h 3674433bf0SRichard Henderson #endif 37*d11bf649SRichard Henderson #if !defined(TARGET_PAGE_BITS) && !defined(TARGET_PAGE_BITS_VARY) 3874433bf0SRichard Henderson # error TARGET_PAGE_BITS must be defined in cpu-param.h 3974433bf0SRichard Henderson #endif 4035b66fc4Sbellard 414692a86fSAlex Bennée #include "exec/target_long.h" 4235b66fc4Sbellard 43ab93bbe2Sbellard #endif 44