From: palfia@homejinni.com Date: Fri, 12 Apr 2013 09:25:04 +0000 (+0000) Subject: MIPS: Fix register usage in commit r14239. X-Git-Tag: upstream/4.7.83~14602 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8611646813c1f87f9323eeceeb9afe3e2c327b10;p=platform%2Fupstream%2Fv8.git MIPS: Fix register usage in commit r14239. BUG= Review URL: https://codereview.chromium.org/14046006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14245 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc index 97339bc..0a2f075 100644 --- a/src/mips/simulator-mips.cc +++ b/src/mips/simulator-mips.cc @@ -1098,7 +1098,7 @@ void Simulator::GetFpArgs(double* x, double* y, int32_t* z) { if (!IsMipsSoftFloatABI) { *x = get_fpu_register_double(12); *y = get_fpu_register_double(14); - *z = registers_[1]; + *z = get_register(a2); } else { // We use a char buffer to get around the strict-aliasing rules which // otherwise allow the compiler to optimize away the copy. @@ -1114,12 +1114,8 @@ void Simulator::GetFpArgs(double* x, double* y, int32_t* z) { reg_buffer[1] = get_register(a3); memcpy(y, buffer, sizeof(buffer)); // Register 2 -> z. - memcpy(buffer, registers_ + 2, sizeof(*z)); - memcpy(z, buffer, sizeof(*z)); - - // Register 2 -> y. reg_buffer[0] = get_register(a2); - memcpy(y, buffer, sizeof(*y)); + memcpy(z, buffer, sizeof(*z)); } }