[Libre-soc-bugs] [Bug 550] binutils support needed for svp64
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sat Jan 22 22:27:48 GMT 2022
https://bugs.libre-soc.org/show_bug.cgi?id=550
--- Comment #83 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
dmitry, saw the message to binutils (thank you for ccing me)
my thoughts after a week are, the struct is ok - but will need
separating out into a separate struct, so that it can be
copied into the ppc_binutils field which is #ifdef'd out
struct svp64_stuff // no more than 64 bits
{
bitfield1: 1
bitfield2: 1
...
};
struct svp64_autogenerated_list
{
char *name;
struct svp64_stuff stuff;
};
struct svp64_autogenerated_list list[200]=
{{name="add", ....}
...
}
and in binutils:
struct ppc_binutils_fields
....
.....
#ifdef SVP64
struct svp64_stuff svp64;
#endif
};
note: *not* a *pointer* to struct svp64_stuff. repeat: *not* a pointer
because the total number of bits going into any svp64_stuff *will* be
*below* 64-bit and will *never* go above 64-bit, ever.
(it may be useful therefore to dedicate one bit to indicate that the
entry is valid)
struct svp64_stuff // no more than 64 bits
{
valid: 1;
bitfield1: 1
bitfield2: 1
...
};
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list