<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>If needs be, I can easily build on this merge request later to
fill the saved register arrays if a particular architecture has a
tailor-made solution.</p>
<p>Note that the volatile registers are not saved in this array and
are checked separately. (e.g. in aoptx86.pas, the method
GetIntRegisterBetween, which could theoretically be made
platform-independent (it contains some conditional code for i386
because 8-bit registers can only be AL, CL, DL and BL), calls "<span
id="LC1072" class="line" lang="">RegSet :=</span><span
id="LC1073" class="line" lang="">
paramanager.get_volatile_registers_int(current_procinfo.procdef.proccalloption)
+</span><span id="LC1074" class="line" lang="">
current_procinfo.saved_regs_int;" to get the list of registers
available to the current procedure. While this is slightly
slower, I figure it's a bit more flexible and
backward-compatible.</span></p>
<p><span id="LC1074" class="line" lang="">Gareth aka. Kit<br>
</span>
</p>
<div class="moz-cite-prefix">On 27/12/2021 19:32, J. Gareth Moreton
via fpc-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:fe31846f-5e3d-979c-068c-d83e8d2e5e19@moreton-family.com">Hi
Florian et al,
<br>
<br>
I fixed up the CPU subtype in
<a class="moz-txt-link-freetext" href="https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/104">https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/104</a>
- hopefully the merge request is good now.
<br>
<br>
Gareth aka. Kit
<br>
<br>
<br>
</blockquote>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="https://www.avast.com/antivirus">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
This email has been checked for viruses by Avast antivirus software.
<br><a href="https://www.avast.com/antivirus">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>