Skip to content

Commit

Permalink
hw/loongarch/virt: Remove unused ipistate
Browse files Browse the repository at this point in the history
Field ipistate in LoongArch CPU object is not used any more,
remove it here.

Signed-off-by: Bibo Mao <[email protected]>
Reviewed-by: Bibo Mao <[email protected]>
  • Loading branch information
bibo-mao committed Feb 12, 2025
1 parent 28bec94 commit 2d2c37c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions hw/loongarch/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
DeviceState *pch_pic, *pch_msi, *cpudev;
DeviceState *ipi, *extioi;
SysBusDevice *d;
LoongArchCPU *lacpu;
CPULoongArchState *env;
CPUState *cpu_state;
int cpu, pin, i, start, num;

Expand Down Expand Up @@ -386,12 +384,9 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
for (cpu = 0; cpu < ms->smp.cpus; cpu++) {
cpu_state = qemu_get_cpu(cpu);
cpudev = DEVICE(cpu_state);
lacpu = LOONGARCH_CPU(cpu_state);
env = &(lacpu->env);

/* connect ipi irq to cpu irq */
qdev_connect_gpio_out(ipi, cpu, qdev_get_gpio_in(cpudev, IRQ_IPI));
env->ipistate = ipi;
}

/* Create EXTIOI device */
Expand Down
2 changes: 0 additions & 2 deletions target/loongarch/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ typedef struct CPUArchState {
bool load_elf;
uint64_t elf_address;
uint32_t mp_state;
/* Store ipistate to access from this struct */
DeviceState *ipistate;

struct loongarch_boot_info *boot_info;
#endif
Expand Down

0 comments on commit 2d2c37c

Please sign in to comment.