full_system.hh revision 8901
1360SN/A/* 210850SGiacomo.Gabrielli@arm.com * Copyright (c) 2011 Google 310796Sbrandon.potter@amd.com * All rights reserved. 410027SChris.Adeniyi-Jones@arm.com * 510027SChris.Adeniyi-Jones@arm.com * Redistribution and use in source and binary forms, with or without 610027SChris.Adeniyi-Jones@arm.com * modification, are permitted provided that the following conditions are 710027SChris.Adeniyi-Jones@arm.com * met: redistributions of source code must retain the above copyright 810027SChris.Adeniyi-Jones@arm.com * notice, this list of conditions and the following disclaimer; 910027SChris.Adeniyi-Jones@arm.com * redistributions in binary form must reproduce the above copyright 1010027SChris.Adeniyi-Jones@arm.com * notice, this list of conditions and the following disclaimer in the 1110027SChris.Adeniyi-Jones@arm.com * documentation and/or other materials provided with the distribution; 1210027SChris.Adeniyi-Jones@arm.com * neither the name of the copyright holders nor the names of its 1310027SChris.Adeniyi-Jones@arm.com * contributors may be used to endorse or promote products derived from 1410027SChris.Adeniyi-Jones@arm.com * this software without specific prior written permission. 151458SN/A * 16360SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17360SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18360SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19360SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20360SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21360SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22360SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23360SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24360SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25360SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26360SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27360SN/A * 28360SN/A * Authors: Gabe Black 29360SN/A */ 30360SN/A 31360SN/A#ifndef __SIM_FULL_SYSTEM_HH__ 32360SN/A#define __SIM_FULL_SYSTEM_HH__ 33360SN/A 34360SN/A/** 35360SN/A * The FullSystem variable can be used to determine the current mode 36360SN/A * of simulation. 37360SN/A */ 38360SN/Aextern bool FullSystem; 39360SN/A 402665Ssaidi@eecs.umich.edu/** 412665Ssaidi@eecs.umich.edu * In addition to the boolean flag we make use of an unsigned int 422665Ssaidi@eecs.umich.edu * since the CPU instruction decoder makes use of the variable in 43360SN/A * switch statements. A value of 0 signifies syscall emulation, and 44360SN/A * any other value full system. 451354SN/A */ 461354SN/Aextern unsigned int FullSystemInt; 47360SN/A 4812018Sandreas.sandberg@arm.com#endif // __SIM_FULL_SYSTEM_HH__ 4912018Sandreas.sandberg@arm.com