[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH for 4.1?] target/ppc: move opcode decode tab
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [RFC PATCH for 4.1?] target/ppc: move opcode decode tables to PowerPCCPU |
Date: |
Tue, 16 Jul 2019 07:50:15 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
On 7/16/19 12:13 PM, Alex Bennée wrote:
> The opcode decode tables aren't really part of the CPUPPCState but an
> internal implementation detail for the translator. This can cause
> problems with memcpy in cpu_copy as any table created during
> ppc_cpu_realize get written over causing a memory leak. To avoid this
> move the tables into PowerPCCPU which is better suited to hold
> internal implementation details.
>
> Attempts to fix: https://bugs.launchpad.net/qemu/+bug/1836558
> Cc: address@hidden
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> target/ppc/cpu.h | 8 ++++----
> target/ppc/translate.c | 3 ++-
> target/ppc/translate_init.inc.c | 16 +++++++---------
> 3 files changed, 13 insertions(+), 14 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~