]> git.proxmox.com Git - mirror_qemu.git/commit
hw/nios2: exit to main CPU loop only when unmasking interrupts
authorWentong Wu <wentong.wu@intel.com>
Mon, 13 Jul 2020 13:36:11 +0000 (14:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jul 2020 13:36:11 +0000 (14:36 +0100)
commitdcef727e5e45f679908c90a7ff3b816c5d61f602
tree3e4e84d9b9a082142d6ba2e0b73ce49719736048
parent77b3f2af57a37b1c30174a911e03d6ff715ef4aa
hw/nios2: exit to main CPU loop only when unmasking interrupts

Only when guest code is unmasking interrupts, terminate the excution
of translated code and exit to the main CPU loop to handle previous
pended interrupts because of the interrupts mask by guest code.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
Message-id: 20200710233433.19729-4-wentong.wu@intel.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/nios2/cpu_pic.c