don't use x18 on arm64, where it's a reserved 'platform' register

This commit is contained in:
Joshua Warner 2015-05-01 13:44:44 -06:00
parent 1290fda6a8
commit fa63bce14d

View File

@ -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;