qemu-arm
[Top][All Lists]
Advanced

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

Re: [Qemu-arm] [PATCH v5 30/33] target-arm/cpu: don't reset TLB structur


From: Richard Henderson
Subject: Re: [Qemu-arm] [PATCH v5 30/33] target-arm/cpu: don't reset TLB structures, use cputlb to do it
Date: Thu, 27 Oct 2016 09:10:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 10/27/2016 08:10 AM, Alex Bennée wrote:
cputlb owns the TLB entries and knows how to safely update them in
MTTCG.

Signed-off-by: Alex Bennée <address@hidden>
---
 target-arm/cpu.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index 1b9540e..ff8c594 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -121,7 +121,13 @@ static void arm_cpu_reset(CPUState *s)

     acc->parent_reset(s);

+#ifdef CONFIG_SOFTMMU
+    memset(env, 0, offsetof(CPUARMState, tlb_table));
+    tlb_flush(s, 0);
+#else
     memset(env, 0, offsetof(CPUARMState, features));
+#endif
+

Why special case this for softmmu? And don't we (or if not, shouldn't we) handle the tlb_flush generically for reset?


r~




reply via email to

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