Thread (7 messages) flat view 7 messages, 3 authors, 2011-08-10

Re: union/struct representations for MAS Registers

From: Jimi Xenidis <hidden>
Date: 2011-08-10 17:31:20

On Aug 10, 2011, at 12:25 PM, Kumar Gala wrote:
=20
On Aug 10, 2011, at 12:21 PM, Jimi Xenidis wrote:
=20
quoted
I have some and use them in some code, they represent ISA 2.06 MAVN=3D1=
 (version 2)
quoted
Can I keep them?
if so, should I put them somewhere useful to others?
=20
Examples:
union mas1 {
	u32 _val;
	struct {
		u32 v:1;
		u32 iprot:1;
		u32 tid:14;
		u32 _reserved_1:2;
		u32 ind:1;
		u32 ts:1;
		u32 tsize:4;
		u32 _reserved_2:8;
	};
};
=20
Uugh, we really have avoided unions for such things and it would be =
nice to keep it that way.

I like "nice", I'll convert
-JX

=20
- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help