syscall_desc.hh (11877:5ea85692a53e) syscall_desc.hh (11886:43b882cada33)
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2015-2016 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

102 * keep track of issued warnings.
103 */
104 bool needWarning();
105
106 bool warnOnce() const { return (_flags & WarnOnce); }
107
108 std::string name() { return _name; }
109
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2015-2016 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

102 * keep track of issued warnings.
103 */
104 bool needWarning();
105
106 bool warnOnce() const { return (_flags & WarnOnce); }
107
108 std::string name() { return _name; }
109
110 int getFlags() const { return _flags; }
111
112 void setFlags(int flags) { _flags = flags; }
113
110 private:
111 /** System call name (e.g., open, mmap, clone, socket, etc.) */
112 std::string _name;
113
114 /** Mechanism for ISAs to connect to the emul function definitions */
115 SyscallExecutor executor;
116
117 /**
118 * Holds values set with the preceding enum; note that this has been
119 * used primarily for features that are mutually exclusive, but there's
120 * no reason that this needs to be true going forward.
121 */
122 int _flags;
123
124 /** Set if WarnOnce is specified in flags AFTER first call */
125 bool _warned;
126};
127
128#endif // __SIM_SYSCALL_DESC_HH__
114 private:
115 /** System call name (e.g., open, mmap, clone, socket, etc.) */
116 std::string _name;
117
118 /** Mechanism for ISAs to connect to the emul function definitions */
119 SyscallExecutor executor;
120
121 /**
122 * Holds values set with the preceding enum; note that this has been
123 * used primarily for features that are mutually exclusive, but there's
124 * no reason that this needs to be true going forward.
125 */
126 int _flags;
127
128 /** Set if WarnOnce is specified in flags AFTER first call */
129 bool _warned;
130};
131
132#endif // __SIM_SYSCALL_DESC_HH__