mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/riscv: Implement SGEIP bit in hip and hie CSRs
A hypervisor can optionally take guest external interrupts using SGEIP bit of hip and hie CSRs. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <anup@brainfault.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Frank Chang <frank.chang@sifive.com> Message-id: 20220204174700.534953-3-anup@brainfault.org Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
dceecac8a2
commit
881df35d3d
3 changed files with 16 additions and 8 deletions
|
@ -540,6 +540,8 @@ typedef enum RISCVException {
|
|||
#define IRQ_S_EXT 9
|
||||
#define IRQ_VS_EXT 10
|
||||
#define IRQ_M_EXT 11
|
||||
#define IRQ_S_GEXT 12
|
||||
#define IRQ_LOCAL_MAX 16
|
||||
|
||||
/* mip masks */
|
||||
#define MIP_USIP (1 << IRQ_U_SOFT)
|
||||
|
@ -554,6 +556,7 @@ typedef enum RISCVException {
|
|||
#define MIP_SEIP (1 << IRQ_S_EXT)
|
||||
#define MIP_VSEIP (1 << IRQ_VS_EXT)
|
||||
#define MIP_MEIP (1 << IRQ_M_EXT)
|
||||
#define MIP_SGEIP (1 << IRQ_S_GEXT)
|
||||
|
||||
/* sip masks */
|
||||
#define SIP_SSIP MIP_SSIP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue