Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: runtime/vm/simulator_arm.cc

Issue 12378080: Adds mrc instruction to arm simulator, assembler, disassembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/disassembler_arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <math.h> // for isnan. 5 #include <math.h> // for isnan.
6 #include <setjmp.h> 6 #include <setjmp.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #if defined(TARGET_ARCH_ARM) 10 #if defined(TARGET_ARCH_ARM)
(...skipping 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 (instr->Bits(12, 4) == 0xf)) { 2578 (instr->Bits(12, 4) == 0xf)) {
2579 // Format(instr, "vmstat'cond"); 2579 // Format(instr, "vmstat'cond");
2580 n_flag_ = fp_n_flag_; 2580 n_flag_ = fp_n_flag_;
2581 z_flag_ = fp_z_flag_; 2581 z_flag_ = fp_z_flag_;
2582 c_flag_ = fp_c_flag_; 2582 c_flag_ = fp_c_flag_;
2583 v_flag_ = fp_v_flag_; 2583 v_flag_ = fp_v_flag_;
2584 } else { 2584 } else {
2585 UNIMPLEMENTED(); 2585 UNIMPLEMENTED();
2586 } 2586 }
2587 } 2587 }
2588 } else if (instr->IsMrcIdIsar0()) {
2589 // mrc of ID_ISAR0.
2590 Register rd = instr->RdField();
2591 if (CPUFeatures::integer_division_supported()) {
2592 set_register(rd, 0x02100010); // sim has sdiv, udiv, bkpt and clz.
2593 } else {
2594 set_register(rd, 0x00100010); // simulator has only bkpt and clz.
2595 }
2588 } else { 2596 } else {
2589 UNIMPLEMENTED(); 2597 UNIMPLEMENTED();
2590 } 2598 }
2591 } 2599 }
2592 2600
2593 2601
2594 // Executes the current instruction. 2602 // Executes the current instruction.
2595 void Simulator::InstructionDecode(Instr* instr) { 2603 void Simulator::InstructionDecode(Instr* instr) {
2596 pc_modified_ = false; 2604 pc_modified_ = false;
2597 if (FLAG_trace_sim) { 2605 if (FLAG_trace_sim) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 // isolate->ChangeStateToGeneratedCode(); 2808 // isolate->ChangeStateToGeneratedCode();
2801 set_register(kExceptionObjectReg, bit_cast<int32_t>(object.raw())); 2809 set_register(kExceptionObjectReg, bit_cast<int32_t>(object.raw()));
2802 buf->Longjmp(); 2810 buf->Longjmp();
2803 } 2811 }
2804 2812
2805 } // namespace dart 2813 } // namespace dart
2806 2814
2807 #endif // !defined(HOST_ARCH_ARM) 2815 #endif // !defined(HOST_ARCH_ARM)
2808 2816
2809 #endif // defined TARGET_ARCH_ARM 2817 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698