Skip to content
Unverified Commit 21ccdccd authored by Vineet Gupta's avatar Vineet Gupta Committed by Palmer Dabbelt
Browse files

riscv: mm: don't advertise 1 num_asid for 0 asid bits



Even if mmu doesn't support ASID, current code calculates @num_asids=1
which is misleading, so avoid setting any asid related variables in such
case.

Also while here, print the number of asid bits discovered even for the
disabled case.

Verified this on Hifive Unmatched.

Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Signed-off-by: default avatarVineet Gupta <vgupta@kernel.org>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent f2928e22
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