| Index: src/a64/simulator-a64.cc
|
| diff --git a/src/a64/simulator-a64.cc b/src/a64/simulator-a64.cc
|
| index 3801bf7514f46dfcadf50bb609d31bd32bcdc535..f2e7b67b2f0aae8cd4d7690b134a17f108eea7bd 100644
|
| --- a/src/a64/simulator-a64.cc
|
| +++ b/src/a64/simulator-a64.cc
|
| @@ -3631,9 +3631,12 @@ void Simulator::VisitException(Instruction* instr) {
|
| result = fprintf(stream_, "%s", format);
|
| }
|
| fputs(clr_normal, stream_);
|
| - set_xreg(0, result);
|
|
|
| - // TODO(jbramley): Consider clobbering all caller-saved registers here.
|
| +#ifdef DEBUG
|
| + CorruptAllCallerSavedCPURegisters();
|
| +#endif
|
| +
|
| + set_xreg(0, result);
|
|
|
| // The printf parameters are inlined in the code, so skip them.
|
| set_pc(pc_->InstructionAtOffset(kPrintfLength));
|
|
|