From fa63bce14d0b0586f04a42ba13a2a0546fed9503 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Fri, 1 May 2015 13:44:44 -0600 Subject: [PATCH] don't use x18 on arm64, where it's a reserved 'platform' register --- src/codegen/target/arm/assembler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/codegen/target/arm/assembler.cpp b/src/codegen/target/arm/assembler.cpp index ab74b41d72..a72bd5edf5 100644 --- a/src/codegen/target/arm/assembler.cpp +++ b/src/codegen/target/arm/assembler.cpp @@ -237,6 +237,9 @@ class MyArchitecture : public Architecture { case ThreadRegister.index(): case ProgramCounter.index(): return true; + case 18: + // x18 is a reserved platform register on arm64 + return TargetBytesPerWord == 8; default: return false;