Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 886b9e4faa9eaeecf923ed8df59171f2e5f5bcf0..57bed6a04767ce336b7a7252edd7b3a17c870c07 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -606,7 +606,7 @@ void Simulator::set_fpu_register(int fpureg, int32_t value) { |
void Simulator::set_fpu_register_double(int fpureg, double value) { |
ASSERT((fpureg >= 0) && (fpureg < kNumFPURegisters) && ((fpureg % 2) == 0)); |
- *v8i::BitCast<double*, int32_t*>(&FPUregisters_[fpureg]) = value; |
+ *v8i::BitCast<double*>(&FPUregisters_[fpureg]) = value; |
} |
@@ -627,8 +627,7 @@ int32_t Simulator::get_fpu_register(int fpureg) const { |
double Simulator::get_fpu_register_double(int fpureg) const { |
ASSERT((fpureg >= 0) && (fpureg < kNumFPURegisters) && ((fpureg % 2) == 0)); |
- return *v8i::BitCast<double*, int32_t*>( |
- const_cast<int32_t*>(&FPUregisters_[fpureg])); |
+ return *v8i::BitCast<double*>(const_cast<int32_t*>(&FPUregisters_[fpureg])); |
} |
// Raw access to the PC register. |
@@ -903,7 +902,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
break; |
case MFHC1: |
fp_out = get_fpu_register_double(fs_reg); |
- alu_out = *v8i::BitCast<int32_t*, double*>(&fp_out); |
+ alu_out = *v8i::BitCast<int32_t*>(&fp_out); |
break; |
case MTC1: |
case MTHC1: |