OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 | 6 |
7 #if defined(TARGET_ARCH_ARM) | 7 #if defined(TARGET_ARCH_ARM) |
8 | 8 |
9 #if defined(HOST_ARCH_ARM) | 9 #if defined(HOST_ARCH_ARM) |
10 #include <sys/syscall.h> /* NOLINT */ | 10 #include <sys/syscall.h> /* NOLINT */ |
(...skipping 14 matching lines...) Expand all Loading... |
25 #endif | 25 #endif |
26 | 26 |
27 #else // defined(HOST_ARCH_ARM) | 27 #else // defined(HOST_ARCH_ARM) |
28 // When running in simulated mode we do not need to flush the ICache because | 28 // When running in simulated mode we do not need to flush the ICache because |
29 // we are not running on the actual hardware. | 29 // we are not running on the actual hardware. |
30 #endif // defined(HOST_ARCH_ARM) | 30 #endif // defined(HOST_ARCH_ARM) |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 const char* CPU::Id() { | 34 const char* CPU::Id() { |
35 return "arm"; | 35 return |
| 36 #if !defined(HOST_ARCH_ARM) |
| 37 "sim" |
| 38 #endif // !defined(HOST_ARCH_ARM) |
| 39 "arm"; |
36 } | 40 } |
37 | 41 |
38 } // namespace dart | 42 } // namespace dart |
39 | 43 |
40 #endif // defined TARGET_ARCH_ARM | 44 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |