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 |
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__ |