[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 61/74] cpu: convert to interrupt_request
From: |
Robert Foley |
Subject: |
[PATCH v9 61/74] cpu: convert to interrupt_request |
Date: |
Thu, 21 May 2020 12:39:58 -0400 |
From: "Emilio G. Cota" <address@hidden>
This finishes the conversion to interrupt_request.
Reviewed-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
Signed-off-by: Robert Foley <address@hidden>
---
hw/core/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/core/cpu.c b/hw/core/cpu.c
index be9efbeaf4..ee20f8e0ad 100644
--- a/hw/core/cpu.c
+++ b/hw/core/cpu.c
@@ -271,7 +271,7 @@ static void cpu_common_reset(DeviceState *dev)
log_cpu_state(cpu, cc->reset_dump_flags);
}
- cpu->interrupt_request = 0;
+ cpu_interrupt_request_set(cpu, 0);
cpu_halted_set(cpu, 0);
cpu->mem_io_pc = 0;
cpu->icount_extra = 0;
@@ -411,7 +411,7 @@ static vaddr cpu_adjust_watchpoint_address(CPUState *cpu,
vaddr addr, int len)
static void generic_handle_interrupt(CPUState *cpu, int mask)
{
- cpu->interrupt_request |= mask;
+ cpu_interrupt_request_or(cpu, mask);
if (!qemu_cpu_is_self(cpu)) {
qemu_cpu_kick(cpu);
--
2.17.1
- [PATCH v9 49/74] lm32: convert to cpu_interrupt_request, (continued)
- [PATCH v9 49/74] lm32: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 50/74] m68k: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 51/74] mips: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 53/74] s390x: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 52/74] nios: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 55/74] moxie: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 56/74] sparc: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 58/74] unicore32: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 57/74] openrisc: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 54/74] alpha: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 61/74] cpu: convert to interrupt_request,
Robert Foley <=
- [PATCH v9 60/74] accel/tcg: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 62/74] cpu: call .cpu_has_work with the CPU lock held, Robert Foley, 2020/05/21
- [PATCH v9 59/74] microblaze: convert to cpu_interrupt_request, Robert Foley, 2020/05/21
- [PATCH v9 63/74] cpu: introduce cpu_has_work_with_iothread_lock, Robert Foley, 2020/05/21
- [PATCH v9 64/74] ppc: convert to cpu_has_work_with_iothread_lock, Robert Foley, 2020/05/21
- [PATCH v9 65/74] mips: convert to cpu_has_work_with_iothread_lock, Robert Foley, 2020/05/21
- [PATCH v9 67/74] riscv: convert to cpu_has_work_with_iothread_lock, Robert Foley, 2020/05/21
- [PATCH v9 66/74] s390x: convert to cpu_has_work_with_iothread_lock, Robert Foley, 2020/05/21
- [PATCH v9 68/74] sparc: convert to cpu_has_work_with_iothread_lock, Robert Foley, 2020/05/21