target/i386: Pass const CPUX86State to x86_cpu_pending_interrupt()
A message that is not in the archive (sent off-list or not yet received): [email protected]
Zhao Liu
Reviewed-byQuoted 10 lines · Philippe Mathieu-Daudé
Date: Mon, 20 Jan 2025 07:15:44 +0100
From: Philippe Mathieu-Daudé <[email protected]>
Subject: [PATCH] target/i386: Pass const CPUX86State to
x86_cpu_pending_interrupt()
X-Mailer: git-send-email 2.47.1Directly pass CPUX86State to
x86_cpu_pending_interrupt(). Since it doesn't modify the dereferenced fields, make the argument const.
Quoted 7 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/i386/cpu.h | 2 +- target/i386/cpu.c | 8 +++----- target/i386/tcg/system/seg_helper.c | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-)
Reviewed-by Zhao Liu <[email protected]>
Richard Henderson
Reviewed-byQuoted 10 lines · Philippe Mathieu-Daudé
Directly pass CPUX86State to
x86_cpu_pending_interrupt(). Since it doesn't modify the dereferenced fields, make the argument const.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/i386/cpu.h | 2 +- target/i386/cpu.c | 8 +++----- target/i386/tcg/system/seg_helper.c | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~