<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57904>57904</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
The `v8a` feature should be enabled by default on aarch64
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
adamgemmell
</td>
</tr>
</table>
<pre>
The `TTBR0_EL2` register is [locked](https://github.com/llvm/llvm-project/blob/76fd4bf675b5ceeeca0e4e15cf15d89c7acf4947/llvm/lib/Target/AArch64/AArch64SystemOperands.td#L920) behind `el2vmsa` when it should be available on all aarch64 platforms. This has been [noticed](https://github.com/rust-lang/rust/issues/97724) in Rust which does not currently enable the feature by default or expose a stable way to enable it, though I feel here is a better place to solve the issue.
The `v8a` [feature](https://github.com/llvm/llvm-project/blob/76fd4bf675b5ceeeca0e4e15cf15d89c7acf4947/llvm/lib/Target/AArch64/AArch64.td#L496), added about a year ago, seems to want to represent features enabled on ARM v8.0 processors, but these features should really be enabled by default if this is the case.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVE2v0zAQ_DXJxXpR6nzVhxz6eCAhPYRUekcbe5MYnLiynZb-e9ZpSx8SB7ghRfVG9o5nZiftrLq0hxFZUueHw_M-__r-lVPNHA7aB3RMe5ZUz8bK76iS6iXh2zGEo0-KXcI_0DPoMC5dJu1EL8ac7svT0dlvKAO9dsZ2tDR1r8qur5uqqyQiSsixxE0l-02ltkI2IPtSlM0bHB37DuAGjDi7nZNjXT6qLxeiOH0-ooNZ-SyohBevgucJF6zDUc8q6kLDT5OHqOo84sx0YH60i1F0hsEJtIHOILMzA2MYwArNjgZCb93kM3YYyYQRPJ2ndnJjtkHLv7DDLT48GZiHW02L9n5BT4VoGl5Gonpme9ojblqOTFn0jPCZXJzDOZgLw3nlF2hKPUJYHLLuwhT2sJjArGP442g9SWE-rCfPcGHB3vs0XfuOuu0yjOwjQaBhIxIIiQKSFOKUSa3E2OStOV3vWplmSf6S5Lvr7y0np-3qJflwo_O_xeIWhFLU5G8UD0qhYtDZJZDkC4JjMNi44xEnH3WfYQ5xdXh06Mn4u9f-5qOKAdntP7HTNssZqZDovXU-onSES5Z5fDTdEuaQMnWJQbujvBmd7qmLpkBPNFyCxyzFdlPXxbbalpVIVVsoUQhIgw4G298HcA_DI8x_uCOm-prodHGm_ech_cpr1Yi8TMe22PQFZQgUVHWBnSigKpqaJsgLUcsiT-lrQuNbikfC-Yzna5CoppikuuU557ngfFNW5UZkgprquoNC1bwvlErKHCf6JLPII7NuSF27UuqWwdOmoX8l_9gE7_UwI67XET4sFHTXErtpwGlCY9L1-nal_xPrTpu6">