Skip to contentSkip to conversation

target/i386: Pass const CPUX86State to x86_cpu_pending_interrupt()

PATCH Zhao Liu 2 participants 2 messages Jan 21, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Zhao Liu

author Reviewed-by
#1 lore raw
Quoted 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.1

Directly pass CPUX86State to x86_cpu_pending_interrupt(). Since it doesn't modify the dereferenced fields, make the argument const.

Quoted 7 lines
---
 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
#2 lore raw
In reply to a message not in the archive
Quoted 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.

---
  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(-)

r~