On 14.02.2024 14:22, H.J. Lu wrote:
> On Wed, Feb 14, 2024 at 5:04 AM Jan Beulich <
jbeu...@suse.com> wrote:
>>
>> On 14.02.2024 13:50, H.J. Lu wrote:
>>> Assign DWARF register number mapping for Tile and Tile control register.
>>> ---
>>> x86-64-ABI/low-level-sys-info.tex | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/x86-64-ABI/low-level-sys-info.tex b/x86-64-ABI/low-level-sys-info.tex
>>> index ffe23a3..a293a04 100644
>>> --- a/x86-64-ABI/low-level-sys-info.tex
>>> +++ b/x86-64-ABI/low-level-sys-info.tex
>>> @@ -2497,6 +2497,7 @@ number mapping for the \xARCH processor family.%
>>> \begin{figure}
>>> \Hrule
>>> \caption{DWARF Register Number Mapping} \label{tbl-reg-num-map}
>>> +\myfontsize
>>> \begin{center}
>>> \begin{tabular}{l|r|l}
>>> \multicolumn{1}{c}{Register Name}&\multicolumn{1}{c}{Number}&\multicolumn{1}{c}{Abbreviation}\\
>>
>> This part looks unrelated.
>
> Without this change, the table is too large and the page number is
> inside the table.
Since I don't know what exactly \myfontsize effects, a perhaps odd (to
you) question: Won't this become an issue then later, when yet more
registers appear? Personally I would have expected a formatting tool
to be smart enough to split too large a table across multiple pages
then.
>>> @@ -2537,6 +2538,8 @@ Reserved & 83-117 & \\
>>> Vector Mask Registers 0--7 & 118-125 & \reg{k0}--\reg{k7} \\
>>> Reserved & 126-129 & \\
>>> APX Integer Registers 16-31 & 130-145 &\reg{r16}--\reg{r31}\\
>>> +Tile Registers 0--7 & 146-153 & \reg{tmm0}--\reg{tmm7} \\
>>> +Tile Control Register & 154 & \reg{tilecfg} \\
>>> \end{tabular}
>>> \end{center}
>>> \Hrule
>>
>> Just for my own education: There are several holes ("Reserved"), most of
>> which I can associate with a purpose. What's the reason for not using the
>> 83-117 range (which would have been valid to consider for the APX regs
>> then as well)?
>
> ZMM registers used separate register mapping at one time. Then later
> we decided that XMM mapping is sufficient. The old ZMM mapping
> is changed to reserved.
Hmm, okay. It's not obvious to me why those couldn't be re-used. Plus
it explains only 32 of the 34 values.
Jan