arch_check.h revision 3115
110152Satgutier@umich.edu/* 210152Satgutier@umich.edu * Copyright (c) 2006 The Regents of The University of Michigan 310152Satgutier@umich.edu * All rights reserved. 410152Satgutier@umich.edu * 510234Syasuko.eckert@amd.com * Redistribution and use in source and binary forms, with or without 610152Satgutier@umich.edu * modification, are permitted provided that the following conditions are 710152Satgutier@umich.edu * met: redistributions of source code must retain the above copyright 810152Satgutier@umich.edu * notice, this list of conditions and the following disclaimer; 910152Satgutier@umich.edu * redistributions in binary form must reproduce the above copyright 1010152Satgutier@umich.edu * notice, this list of conditions and the following disclaimer in the 1110152Satgutier@umich.edu * documentation and/or other materials provided with the distribution; 1210152Satgutier@umich.edu * neither the name of the copyright holders nor the names of its 1310152Satgutier@umich.edu * contributors may be used to endorse or promote products derived from 1410152Satgutier@umich.edu * this software without specific prior written permission. 1510152Satgutier@umich.edu * 1610152Satgutier@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1710152Satgutier@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1810152Satgutier@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1910152Satgutier@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2010152Satgutier@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2110152Satgutier@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2210152Satgutier@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2310152Satgutier@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2410152Satgutier@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2510152Satgutier@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2610152Satgutier@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2710152Satgutier@umich.edu * 2810152Satgutier@umich.edu * Authors: Gabe Black 2910234Syasuko.eckert@amd.com */ 3010152Satgutier@umich.edu 3110152Satgutier@umich.edu#if defined __alpha__ 3210152Satgutier@umich.edu #error "Alpha architecture not implemented" 3310152Satgutier@umich.edu#elif defined __amd64__ 3410152Satgutier@umich.edu #error "AMD64 architecture not implemented" 3510152Satgutier@umich.edu#elif defined __hppa__ 3610152Satgutier@umich.edu #error "Hppa architecture not implemented" 3710152Satgutier@umich.edu#elif defined __i386__ || defined __i486__ || \ 3810234Syasuko.eckert@amd.com defined __i586__ || defined __i686 3910234Syasuko.eckert@amd.com #include "arch/tracechild_i386.cc" 4010234Syasuko.eckert@amd.com#elif defined __ia64__ 4110234Syasuko.eckert@amd.com #error "IA64 architecture not implemented" 4210234Syasuko.eckert@amd.com#elif defined __mips__ 4310234Syasuko.eckert@amd.com #error "Mips architecture not implemented" 4410234Syasuko.eckert@amd.com#elif defined __powerpc__ 4510234Syasuko.eckert@amd.com #error "PowerPC architecture not implemented" 4610234Syasuko.eckert@amd.com#elif defined __sparc__ 4710152Satgutier@umich.edu #include "arch/tracechild_sparc.cc" 4810152Satgutier@umich.edu#elif defined __sh__ 4910234Syasuko.eckert@amd.com #include "SuperH architecture not implemented" 5010234Syasuko.eckert@amd.com#elif defined __s390__ 5110234Syasuko.eckert@amd.com #include "System/390 architecture not implemented" 5210234Syasuko.eckert@amd.com#else 5310234Syasuko.eckert@amd.com #error "Couldn't determine architecture" 5410234Syasuko.eckert@amd.com#endif 5510234Syasuko.eckert@amd.com