full_system.hh (8801:1a84c6a81299) full_system.hh (8901:bba76d164f9e)
1/*
2 * Copyright (c) 2011 Google
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 17 unchanged lines hidden (view full) ---

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __SIM_FULL_SYSTEM_HH__
32#define __SIM_FULL_SYSTEM_HH__
33
1/*
2 * Copyright (c) 2011 Google
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 17 unchanged lines hidden (view full) ---

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 */
30
31#ifndef __SIM_FULL_SYSTEM_HH__
32#define __SIM_FULL_SYSTEM_HH__
33
34/**
35 * The FullSystem variable can be used to determine the current mode
36 * of simulation.
37 */
34extern bool FullSystem;
35
38extern bool FullSystem;
39
40/**
41 * In addition to the boolean flag we make use of an unsigned int
42 * since the CPU instruction decoder makes use of the variable in
43 * switch statements. A value of 0 signifies syscall emulation, and
44 * any other value full system.
45 */
46extern unsigned int FullSystemInt;
47
36#endif // __SIM_FULL_SYSTEM_HH__
48#endif // __SIM_FULL_SYSTEM_HH__