diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-02-05 11:36:13 +0800 |
---|---|---|
committer | Bibo Mao <maobibo@loongson.cn> | 2025-02-12 10:02:39 +0800 |
commit | 2d2c37c492770ab627c0e60836198745a45c0385 (patch) | |
tree | c890b573c9486c35649041cec21b78e96e9794a7 | |
parent | 28bec94c7da29860c27394b1668afc85762db981 (diff) | |
download | qemu-2d2c37c492770ab627c0e60836198745a45c0385.zip qemu-2d2c37c492770ab627c0e60836198745a45c0385.tar.gz qemu-2d2c37c492770ab627c0e60836198745a45c0385.tar.bz2 |
hw/loongarch/virt: Remove unused ipistate
Field ipistate in LoongArch CPU object is not used any more,
remove it here.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
-rw-r--r-- | hw/loongarch/virt.c | 5 | ||||
-rw-r--r-- | target/loongarch/cpu.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c index db48217..da98b21 100644 --- a/hw/loongarch/virt.c +++ b/hw/loongarch/virt.c @@ -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; @@ -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 */ diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h index 8eee49a..f2a23b7 100644 --- a/target/loongarch/cpu.h +++ b/target/loongarch/cpu.h @@ -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 |