On 9/22/25 19:04, 李威威 wrote:
 > If there's a problem with 1 tb, there's also a problem with 2 tb like
 >
 >         jal     zero, #4
 >         jal     zero, #-4
 >

I tried this case. And it didn't have this problem.
This problem seems only existed in single tb loop.

 >
 > But unlinking the tb should be part of invalidation, so I don't quite see 
where the
 > problem is.  You need to expand on the description of the problem.
 >

I think the problem is the single tb is always in use  when the single tb is linked with itself,
and it cannot be updated when we update the code。

There's no use count for tb's, so that explanation doesn't make sense.
Can you please share a testcase for this?

For extra kudos, a small assembly test for tests/tcg/loongarch64/system/, so that we have a regression test for the issue. :-)


r~

Reply via email to