/*
 *  ppc-config.hpp - PowerPC core emulator config
 *
 *  Kheperix (C) 2003 Gwenole Beauchesne
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef PPC_CONFIG_H
#define PPC_CONFIG_H

/**
 *	PPC_CHECK_INTERRUPTS
 *
 *		Define if interrupts need to be check after each instruction,
 *		in interpreted mode, or at the end of each block, in compiled
 *		mode.
 *
 *		NOTE: this only checks for user defined interrupts that are
 *		triggered by the program. This is not about OEA interrupts.
 */

#ifndef PPC_CHECK_INTERRUPTS
#define PPC_CHECK_INTERRUPTS 0
#endif


/**
 *	PPC_NO_BASIC_CPU_BASE
 *
 *		Define to not inherit from basic_cpu, thus removing two
 *		vtables. Otherwise, access to registers require an extra
 *		offset from "this" because vtables are stored before other
 *		regular members.
 **/

#ifndef PPC_NO_BASIC_CPU_BASE
#undef  PPC_NO_BASIC_CPU_BASE
#endif


/**
 *	PPC_NO_STATIC_II_INDEX_TABLE
 *
 *		Define to make sure the ii_index_table[] is a non static
 *		member so that powerpc_cpu object size is reduced by 64
 *		KB. This is only supported for mono CPU configurations.
 **/

#ifndef PPC_NO_STATIC_II_INDEX_TABLE
#define PPC_NO_STATIC_II_INDEX_TABLE
#endif


/**
 *	PPC_OPCODE_HASH_XO_PRIMARY
 *
 *		Define to hash opcode hash (xo, primary opcode) instead of
 *		(primary opcode, xo). This simply reduces the computation
 *		index into instr_info[] table by one operation.
 **/

#ifndef PPC_OPCODE_HASH_XO_PRIMARY
#define PPC_OPCODE_HASH_XO_PRIMARY
#endif


/**
 *	PPC_DECODE_CACHE
 *
 *		Define to 0 to disable the decode cache. This is only useful
 *		for debugging purposes and side-by-side comparison with other
 *		PowerPC emulators.
 **/

#ifndef PPC_DECODE_CACHE
#define PPC_DECODE_CACHE 1
#endif


/**
 *	PPC_EXECUTE_DUMP_STATE
 *
 *		Define to dump state after each instruction. This also
 *		disables the decode cache.
 **/

#ifndef PPC_EXECUTE_DUMP_STATE
#define PPC_EXECUTE_DUMP_STATE 0
#endif


/**
 *	PPC_FLIGHT_RECORDER
 *
 *		Define to enable the flight recorder. If set to 2, the
 *		complete register state will be recorder after each
 *		instruction execution.
 **/

#ifndef PPC_FLIGHT_RECORDER
#define PPC_FLIGHT_RECORDER 0
#endif


/**
 *		Sanity checks and features enforcements
 **/

#ifdef SHEEPSHAVER
#define PPC_NO_BASIC_CPU_BASE
#undef PPC_NO_STATIC_II_INDEX_TABLE
#endif

#endif /* PPC_CONFIG_H */
