qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX


From: Richard Henderson
Subject: Re: [PATCH v1 2/6] target/loongarch: Add set_vec_extctx to set LSX/LASX instructions extctx_flags
Date: Tue, 31 Oct 2023 07:50:46 -0700
User-agent: Mozilla Thunderbird

On 10/30/23 23:16, gaosong wrote:
Anyway, I think my previous suggestion is better:

Oh,  Could you  show more details?  I think I didn't get you point.

If you want to track what the program is using, you should do it exactly like the real kernel: disable the execution unit, have the program trap, and the enable the execution unit when the trap occurs. At this point, CSR_EUEN enable bits contain

Untested, but something like this.


r~

Attachment: 0001-linux-user-loongarch64-Use-traps-to-track-LSX-LASX-u.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]