| Index: src/mips/assembler-mips.cc
|
| diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc
|
| index fcf49f110d16890b58852b92dc9bc82af48d4f42..0bb00b4c503f837acddb5e61e56a82d16443c561 100644
|
| --- a/src/mips/assembler-mips.cc
|
| +++ b/src/mips/assembler-mips.cc
|
| @@ -126,7 +126,8 @@ void CpuFeatures::Probe() {
|
| supported_ |= static_cast<uint64_t>(1) << FPU;
|
| #else
|
| // Probe for additional features not already known to be available.
|
| - if (OS::MipsCpuHasFeature(FPU)) {
|
| + CPU cpu;
|
| + if (cpu.has_fpu()) {
|
| // This implementation also sets the FPU flags if
|
| // runtime detection of FPU returns true.
|
| supported_ |= static_cast<uint64_t>(1) << FPU;
|
| @@ -2203,8 +2204,7 @@ void Assembler::set_target_address_at(Address pc, Address target) {
|
|
|
| Instr instr3 = instr_at(pc + 2 * kInstrSize);
|
| uint32_t ipc = reinterpret_cast<uint32_t>(pc + 3 * kInstrSize);
|
| - bool in_range = (ipc ^ static_cast<uint32_t>(itarget) >>
|
| - (kImm26Bits + kImmFieldShift)) == 0;
|
| + bool in_range = ((ipc ^ itarget) >> (kImm26Bits + kImmFieldShift)) == 0;
|
| uint32_t target_field =
|
| static_cast<uint32_t>(itarget & kJumpAddrMask) >> kImmFieldShift;
|
| bool patched_jump = false;
|
|
|