types.hh (7245:bee7e6b76d38) types.hh (7311:001fb4b2a393)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

229 MODE_IRQ = 18,
230 MODE_SVC = 19,
231 MODE_MON = 22,
232 MODE_ABORT = 23,
233 MODE_UNDEFINED = 27,
234 MODE_SYSTEM = 31
235 };
236
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

229 MODE_IRQ = 18,
230 MODE_SVC = 19,
231 MODE_MON = 22,
232 MODE_ABORT = 23,
233 MODE_UNDEFINED = 27,
234 MODE_SYSTEM = 31
235 };
236
237 static inline bool
238 badMode(OperatingMode mode)
239 {
240 switch (mode) {
241 case MODE_USER:
242 case MODE_FIQ:
243 case MODE_IRQ:
244 case MODE_SVC:
245 case MODE_MON:
246 case MODE_ABORT:
247 case MODE_UNDEFINED:
248 case MODE_SYSTEM:
249 return false;
250 default:
251 return true;
252 }
253 }
254
237 struct CoreSpecific {
238 // Empty for now on the ARM
239 };
240
241} // namespace ArmISA
242
243#endif
255 struct CoreSpecific {
256 // Empty for now on the ARM
257 };
258
259} // namespace ArmISA
260
261#endif