On 2021/8/5 下午3:20, Bin Meng wrote:
On Thu, Aug 5, 2021 at 3:16 PM LIU Zhiwei <zhiwei_...@c-sky.com> wrote:
On 2021/8/5 下午2:01, Alistair Francis wrote:
On Thu, Aug 5, 2021 at 12:55 PM LIU Zhiwei <zhiwei_...@c-sky.com> wrote:
This patch set implements UXL field in mstatus register. Programmer can change
UXLEN by writting to this field. So that you can run a 32 bit program
on a 64 bit CPU.
Awesome! Do you have any steps for building a rootFS to test this?
Not yet. It depends on Linux support which will not start until
October. Maybe as a rough test,
we can run the 32 glibc test cases on qemu-riscv64 with an option
uxl32=true(not implement yet).
That's my understanding as well. Currently there is no software stack
that supports mode switch, e.g.: OpenSBI boots in 64-bit but loading a
32-bit payload to execute.
Do you plan to support SXL as well?
Sorry, SXL is not planned. If I have enough time later, I will have
a try.
Zhiwei
Regards,
Bin