This documentation was automatically generated with AcDoc tool.
- 00001     /**
- 00002     * @file powerpc.ac
- 00003     * @author Bruno Corsi dos Santos
- 00004     *
- 00005     * The ArchC Team
- 00006     * http://www.archc.org/
- 00007     *
- 00008     * Computer Systems Laboratory (LSC)
- 00009     * IC-UNICAMP
- 00010     * http://www.lsc.ic.unicamp.br
- 00011     *
- 00012     * @version 1.0
- 00013     * @date Thu, 29 Jun 2006 14:49:05 -0300
- 00014     *
- 00015     * @brief The ArchC POWERPC functional model.
- 00016     *
- 00017     * @attention Copyright (C) 2002-2006 --- The ArchC Team
- 00018     *
- 00019     * This program is free software; you can redistribute it and/or modify
- 00020     * it under the terms of the GNU General Public License as published by
- 00021     * the Free Software Foundation; either version 2 of the License, or
- 00022     * (at your option) any later version.
- 00023     *
- 00024     * This program is distributed in the hope that it will be useful,
- 00025     * but WITHOUT ANY WARRANTY; without even the implied warranty of
- 00026     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- 00027     * GNU General Public License for more details.
- 00028     *
- 00029     * You should have received a copy of the GNU General Public License
- 00030     * along with this program; if not, write to the Free Software
- 00031     * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- 00032     *
- 00033     */
- 00034    
- 00035     AC_ARCH (powerpc) {
- 00036    
- 00037     ac_wordsize 32;
- 00038    
- 00039     ac_mem MEM:8M;
- 00040    
- 00041     ac_regbank GPR:32;
- 00042    
- 00043     ac_reg SPRG4;
- 00044     ac_reg SPRG5;
- 00045     ac_reg SPRG6;
- 00046     ac_reg SPRG7;
- 00047     ac_reg USPRG0;
- 00048    
- 00049     ac_reg XER;
- 00050    
- 00051     ac_reg MSR;
- 00052    
- 00053     // sc instruction not tested/used
- 00054     ac_reg EVPR;
- 00055     ac_reg SRR0;
- 00056     ac_reg SRR1;
- 00057    
- 00058     ac_reg CR;
- 00059     ac_reg LR;
- 00060     ac_reg CTR;
- 00061    
- 00062     ARCH_CTOR (powerpc) {
- 00063     ac_isa ("powerpc_isa.ac" );
- 00064     set_endian ("big" );
- 00065     };
- 00066    
- 00067     };