Commit ab3caa73 authored by mbrandy's avatar mbrandy Committed by Commit bot

MIPS: Fix compile error for unitialized variable in simulator.

We see this error using GCC 4.8.2.

R=michael_dawson@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1153213003

Cr-Commit-Position: refs/heads/master@{#28844}
parent 1c56723d
...@@ -2454,9 +2454,8 @@ void Simulator::DecodeTypeRegisterDRsType(Instruction* instr, ...@@ -2454,9 +2454,8 @@ void Simulator::DecodeTypeRegisterDRsType(Instruction* instr,
uint32_t cc, fcsr_cc; uint32_t cc, fcsr_cc;
int64_t i64; int64_t i64;
fs = get_fpu_register_double(fs_reg); fs = get_fpu_register_double(fs_reg);
if (instr->FunctionFieldRaw() != MOVF) { ft = (instr->FunctionFieldRaw() != MOVF) ? get_fpu_register_double(ft_reg)
ft = get_fpu_register_double(ft_reg); : 0.0;
}
fd = get_fpu_register_double(fd_reg); fd = get_fpu_register_double(fd_reg);
int64_t ft_int = bit_cast<int64_t>(ft); int64_t ft_int = bit_cast<int64_t>(ft);
int64_t fd_int = bit_cast<int64_t>(fd); int64_t fd_int = bit_cast<int64_t>(fd);
......
...@@ -2994,9 +2994,8 @@ void Simulator::DecodeTypeRegisterDRsType(Instruction* instr, ...@@ -2994,9 +2994,8 @@ void Simulator::DecodeTypeRegisterDRsType(Instruction* instr,
double ft, fs, fd; double ft, fs, fd;
uint32_t cc, fcsr_cc; uint32_t cc, fcsr_cc;
fs = get_fpu_register_double(fs_reg); fs = get_fpu_register_double(fs_reg);
if (instr->FunctionFieldRaw() != MOVF) { ft = (instr->FunctionFieldRaw() != MOVF) ? get_fpu_register_double(ft_reg)
ft = get_fpu_register_double(ft_reg); : 0.0;
}
fd = get_fpu_register_double(fd_reg); fd = get_fpu_register_double(fd_reg);
cc = instr->FCccValue(); cc = instr->FCccValue();
fcsr_cc = get_fcsr_condition_bit(cc); fcsr_cc = get_fcsr_condition_bit(cc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment