On 7/15/21 4:21 AM, LIU Zhiwei wrote:
Also on a side note, could you give me some advice for the following question?
I have been supporting running 32bit application on qemu-riscv64. After this
patch set,
it is hard to define a method, such as gpr_dst_s or gpr_dst_u, to extend the
destination
register. I can only extend the destination register(ext32s or ext32u) in each
instruction
with scattered code.
Can we just omit the extension of the destination register?
It's hard to give advice on code that I haven't seen.
In general I would think that the destination register need not be extended for 32-bit
mode, unless the architecture says otherwise. (What does the architecture say about the
contents of the registers when transitioning from a 32-bit mode user program to a 64-bit
mode kernel?)
r~