diff options
author | Michael Clark <mjc@sifive.com> | 2019-03-16 01:20:54 +0000 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-03-19 05:14:39 -0700 |
commit | d26f5a423438e579d3ff0ca35e44edb966a36233 (patch) | |
tree | f274bdd1f5eb6f9d8434403683cb9d486c6cceb0 /pc-bios/optionrom/pvh_main.c | |
parent | 5836c3eccedb6dfab16b8f606f2de24b8938b69c (diff) | |
download | qemu-d26f5a423438e579d3ff0ca35e44edb966a36233.zip |
RISC-V: Change local interrupts from edge to level
This effectively changes riscv_cpu_update_mip
from edge to level. i.e. cpu_interrupt or
cpu_reset_interrupt are called regardless of
the current interrupt level.
Fixes WFI doesn't return when a IPI is issued:
- https://github.com/riscv/riscv-qemu/issues/132
To test:
1) Apply RISC-V Linux CPU hotplug patch:
- http://lists.infradead.org/pipermail/linux-riscv/2018-May/000603.html
2) Enable CONFIG_CPU_HOTPLUG in linux .config
3) Try to offline and online cpus:
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 0 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu2/online
Reported-by: Atish Patra <atishp04@gmail.com>
Cc: Atish Patra <atishp04@gmail.com>
Cc: Alistair Francis <Alistair.Francis@wdc.com>
Signed-off-by: Michael Clark <mjc@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'pc-bios/optionrom/pvh_main.c')
0 files changed, 0 insertions, 0 deletions