Commit e5033969 authored by rmcilroy@chromium.org's avatar rmcilroy@chromium.org

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
parent 7152389a
...@@ -447,7 +447,7 @@ class Simulator : public DecoderVisitor { ...@@ -447,7 +447,7 @@ class Simulator : public DecoderVisitor {
} }
Instruction* lr() { return reg<Instruction*>(kLinkRegCode); } Instruction* lr() { return reg<Instruction*>(kLinkRegCode); }
Address get_sp() { return reinterpret_cast<Address>(sp()); } Address get_sp() { return reg<Address>(31, Reg31IsStackPointer); }
// Return 'size' bits of the value of a floating-point register, as the // Return 'size' bits of the value of a floating-point register, as the
// specified type. The value is zero-extended to fill the result. // specified type. The value is zero-extended to fill the result.
......
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