Skip to content

Commit

Permalink
hw/riscv: Use misa_mxl instead of misa_mxl_max
Browse files Browse the repository at this point in the history
The effective MXL value matters when booting.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20240103173349.398526-23-alex.bennee@linaro.org>
Message-Id: <20231213-riscv-v7-1-a760156a337f@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
  • Loading branch information
akihikodaki authored and stsquad committed Jan 15, 2024
1 parent 977542d commit ff7707a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/riscv/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

bool riscv_is_32bit(RISCVHartArrayState *harts)
{
return harts->harts[0].env.misa_mxl_max == MXL_RV32;
return harts->harts[0].env.misa_mxl == MXL_RV32;
}

/*
Expand Down

0 comments on commit ff7707a

Please sign in to comment.