|
From: | Richard Henderson |
Subject: | Re: [PATCH v1 11/12] accel/tcg: allow plugin instrumentation to be disable via cflags |
Date: | Tue, 9 Feb 2021 13:05:18 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 2/9/21 10:27 AM, Alex Bennée wrote: > When icount is enabled and we recompile an MMIO access we end up > double counting the instruction execution. To avoid this we introduce > the CF_NOINSTR cflag which disables instrumentation for the next TB. > As this is part of the hashed compile flags we will only execute the > generated TB while coming out of a cpu_io_recompile. > > While we are at it delete the old TODO. We might as well keep the > translation handy as it's likely you will repeatedly hit it on each > MMIO access. > > Reported-by: Aaron Lindsay <aaron@os.amperecomputing.com> > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > --- > include/exec/exec-all.h | 3 ++- > accel/tcg/translate-all.c | 17 ++++++++--------- > accel/tcg/translator.c | 2 +- > 3 files changed, 11 insertions(+), 11 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |