提交 6f2c3fa0 编写于 作者: R Ralf Baechle

[MIPS] Fix alignment hole in struct cache_desc; shrink struct.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 714cfe78
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
* Descriptor for a cache * Descriptor for a cache
*/ */
struct cache_desc { struct cache_desc {
unsigned short linesz; /* Size of line in bytes */
unsigned short ways; /* Number of ways */
unsigned short sets; /* Number of lines per set */
unsigned int waysize; /* Bytes per way */ unsigned int waysize; /* Bytes per way */
unsigned int waybit; /* Bits to select in a cache set */ unsigned short sets; /* Number of lines per set */
unsigned int flags; /* Flags describing cache properties */ unsigned char ways; /* Number of ways */
unsigned char linesz; /* Size of line in bytes */
unsigned char waybit; /* Bits to select in a cache set */
unsigned char flags; /* Flags describing cache properties */
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册