Skip to content
Commit efabefb0 authored by Sahil Siddiq's avatar Sahil Siddiq Committed by Stafford Horne
Browse files

openrisc: Refactor struct cpuinfo_or1k to reduce duplication



The "cpuinfo_or1k" structure currently has identical data members for
different cache components.

Remove these fields out of struct cpuinfo_or1k and into its own struct.
This reduces duplication while keeping cpuinfo_or1k extensible so more
cache descriptors can be added in the future.

Also add a new field "sets" to the new structure.

Signed-off-by: default avatarSahil Siddiq <sahilcdq0@gmail.com>
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
parent 38fec10e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment