Message ID | 20210613180838.21349-1-davoronetskiy@gmail.com |
---|---|
State | New |
Headers | show |
Series | target/i386/tcg/sysemu/bpt_helper.c: typo since cpu_breakpoint and cpu_watchpoint are in a union, the code should access only one of them | expand |
On 6/13/21 11:08 AM, Dmitry Voronetskiy wrote: > Signed-off-by: Dmitry Voronetskiy<davoronetskiy@gmail.com> > --- > target/i386/tcg/sysemu/bpt_helper.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> I've got a small queue of other i386 tcg stuff, so I'll include this. r~
diff --git a/target/i386/tcg/sysemu/bpt_helper.c b/target/i386/tcg/sysemu/bpt_helper.c index 9bdf7e170b..de284dbdcb 100644 --- a/target/i386/tcg/sysemu/bpt_helper.c +++ b/target/i386/tcg/sysemu/bpt_helper.c @@ -109,9 +109,9 @@ static void hw_breakpoint_remove(CPUX86State *env, int index) case DR7_TYPE_DATA_WR: case DR7_TYPE_DATA_RW: - if (env->cpu_breakpoint[index]) { + if (env->cpu_watchpoint[index]) { cpu_watchpoint_remove_by_ref(cs, env->cpu_watchpoint[index]); - env->cpu_breakpoint[index] = NULL; + env->cpu_watchpoint[index] = NULL; } break;
Signed-off-by: Dmitry Voronetskiy <davoronetskiy@gmail.com> --- target/i386/tcg/sysemu/bpt_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)