From e503396993d061bee6db05e526c7c62162ab789a Mon Sep 17 00:00:00 2001 From: "rmcilroy@chromium.org" Date: Wed, 12 Feb 2014 13:34:40 +0000 Subject: [PATCH] Avoid doing explicit cast in simulator-a64::get_sp(). R=rodolph.perfetta@arm.com Review URL: https://codereview.chromium.org/153823012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19328 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/a64/simulator-a64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/a64/simulator-a64.h b/src/a64/simulator-a64.h index b1f0b82..941e3a4 100644 --- a/src/a64/simulator-a64.h +++ b/src/a64/simulator-a64.h @@ -447,7 +447,7 @@ class Simulator : public DecoderVisitor { } Instruction* lr() { return reg(kLinkRegCode); } - Address get_sp() { return reinterpret_cast
(sp()); } + Address get_sp() { return reg
(31, Reg31IsStackPointer); } // Return 'size' bits of the value of a floating-point register, as the // specified type. The value is zero-extended to fill the result. -- 2.7.4