|
From: | Helge Deller |
Subject: | Re: [RFC][PATCH] accel/tcg: Use lookup_and_goto_ptr() for linux-user in translator_use_goto_tb() |
Date: | Sun, 30 Jul 2023 20:19:36 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 7/30/23 20:02, Richard Henderson wrote:
On 7/30/23 11:01, Richard Henderson wrote:On 7/30/23 10:56, Helge Deller wrote:+++ b/accel/tcg/translator.c @@ -124,8 +124,13 @@ bool translator_use_goto_tb(DisasContextBase *db, vaddr dest) return false; } +#ifndef CONFIG_USER_ONLY /* Check for the dest on the same page as the start of the TB. */ return ((db->pc_first ^ dest) & TARGET_PAGE_MASK) == 0; +#else + /* linux-user doesn't need to fear pagefaults for exec swap-in */ + return false; +#endif }No, we still need to stop at pages for breakpoints.... and munmap for e.g. dlclose.
Ok, so we can't optimize for linux-user. But what about my other question: Shouldn't it be return ((db->pc_first ^ dest) & TARGET_PAGE_MASK) != 0; ? helge
[Prev in Thread] | Current Thread | [Next in Thread] |