Commit 63b3d135 authored by Jacob.Bramley@arm.com's avatar Jacob.Bramley@arm.com

ARM: Fix inline assembly (r21949) for Clang.

Add a 'c' predicate to the immediate syscall number. This tells the
compiler to omit the leading '#' that immediates usually have in ARM.
The GNU assembler tolerates "ldr r7, =#1234" but Clang does not.

BUG=V8:3403
LOG=N
R=bmeurer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21963 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 52fa41c3
......@@ -52,7 +52,7 @@ void CPU::FlushICache(void* start, size_t size) {
// r0 = beg
// r1 = end
// r2 = flags (0)
" ldr r7, =%[scno]\n" // r7 = syscall number
" ldr r7, =%c[scno]\n" // r7 = syscall number
" svc 0\n"
" pop {r7}\n"
......
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