<p></p>
Hi Tony,<br>
<br>
> On Nov 29, 2021, at 7:51 AM, Tony Garnock-Jones ***@***.***> wrote:<br>
> <br>
> <br>
> I'm running Cog on aarch64, and because I have an old linux kernel (v3.18.140) which I cannot upgrade (it's a repurposed PostmarketOS Android device), Cog yields illegal instruction trying to execute mrs x0, id_aa64isar0_el1. This instruction is privileged, but later linux kernels trap and emulate it for userspace.<br>
> <br>
> Given that it's currently only being used to detect presence of atomic instructions (self setHasAtomicInstructions: (idISAR0 >> 20 bitAnd: 2r1111) = 2r10), and there's a kernel API for retrieving that specific bit of information (https://www.kernel.org/doc/html/latest/arm64/elf_hwcaps.html suggests HWCAP_ATOMICS), perhaps instead of using the instruction directly Cog could call the relevant getauxval variant?<br>
> <br>
<br>
Good suggestion.  I’ll try and get this folded in I the next couple of days.<br>
> For now, I have the Stack VM running well on aarch64, so I can make progress, even if it is a little slower than it could be :-)<br>
> <br>
> —<br>
> You are receiving this because you are subscribed to this thread.<br>
> Reply to this email directly, view it on GitHub, or unsubscribe.<br>
> Triage notifications on the go with GitHub Mobile for iOS or Android. <br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/608#issuecomment-982780994">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW27M2DSOFKKHXZWZ53UOTZAFANCNFSM5I7O4A7A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AIJPEW2JGM2OUZIQBGCP7YLUOTZAFA5CNFSM5I7O4A7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHKKAYQQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/608#issuecomment-982780994",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/608#issuecomment-982780994",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>