[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] m68k: Fix regression causing Single-Step via GDB/RSP to not
From: |
Richard Henderson |
Subject: |
Re: [PATCH] m68k: Fix regression causing Single-Step via GDB/RSP to not single step |
Date: |
Wed, 15 Jan 2020 11:54:45 -1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 1/15/20 1:03 AM, Laurent Vivier wrote:
> + if (dc->base.singlestep_enabled) {
> + tcg_gen_movi_i32(QREG_PC, dc->pc);
> + gen_helper_raise_exception(cpu_env, tcg_const_i32(EXCP_DEBUG));
This leaks the temporary, and so not quite ideal. It would be of more concern
if the rest of the m68k port was audited, so that you could turn on leak
detection.
I would suggest routing all calls to gen_helper_raise_exception through a
function (gen_raise_exception, usually), which takes an int argument, and does
all of the TCGv_i32 management internally.
But otherwise,
Reviewed-by: Richard Henderson <address@hidden>
r~