| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_MIPS) | 7 #if defined(TARGET_ARCH_MIPS) |
| 8 | 8 |
| 9 #if defined(HOST_ARCH_MIPS) | 9 #if defined(HOST_ARCH_MIPS) |
| 10 #include <asm/cachectl.h> /* NOLINT */ | 10 #include <asm/cachectl.h> /* NOLINT */ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 res = syscall(__NR_cacheflush, start, size, ICACHE); | 23 res = syscall(__NR_cacheflush, start, size, ICACHE); |
| 24 ASSERT(res == 0); | 24 ASSERT(res == 0); |
| 25 #else // defined(HOST_ARCH_MIPS) | 25 #else // defined(HOST_ARCH_MIPS) |
| 26 // When running in simulated mode we do not need to flush the ICache because | 26 // When running in simulated mode we do not need to flush the ICache because |
| 27 // we are not running on the actual hardware. | 27 // we are not running on the actual hardware. |
| 28 #endif // defined(HOST_ARCH_MIPS) | 28 #endif // defined(HOST_ARCH_MIPS) |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 const char* CPU::Id() { | 32 const char* CPU::Id() { |
| 33 return "mips"; | 33 return |
| 34 #if !defined(HOST_ARCH_MIPS) |
| 35 "sim" |
| 36 #endif // !defined(HOST_ARCH_MIPS) |
| 37 "mips"; |
| 34 } | 38 } |
| 35 | 39 |
| 36 } // namespace dart | 40 } // namespace dart |
| 37 | 41 |
| 38 #endif // defined TARGET_ARCH_MIPS | 42 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |