Commit c96cc03f authored by Xiang Wang's avatar Xiang Wang Committed by Anup Patel
Browse files

lib: Fix CPU capabilities detection function



On some platforms, misa may not be implemented. On such a platform,
reading misa will get 0. At this time, platform is required to
implement a non-standard function to detect the CPU's capabilities.
Therefore, this modification add interfaces for non-standard function.

The MXL field of misa is always at the highest two bits, whether it
is a 32-bit 64-bit or a 128-bit machine. Therefore, this modification
fixes the use of a fixed offset to detect the machine length.

Signed-off-by: default avatarXiang Wang <merle@hardenedlinux.org>
Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 75f903dd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment