hw/riscv: sifive_u: Simplify the GEM IRQ connect code a little bit
authorBin Meng <bin.meng@windriver.com>
Mon, 8 Jun 2020 14:17:32 +0000 (07:17 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 19 Jun 2020 15:24:07 +0000 (08:24 -0700)
commit5874f0a7155e262e96c91ed60b5f728f592cd516
tree7f689f05a38e1eb1645056c5c8495f79b8fd4073
parent894944624bd986383ff403368bdae902ec97cc57
hw/riscv: sifive_u: Simplify the GEM IRQ connect code a little bit

There is no need to retrieve all PLIC IRQ information in order to
just connect the GEM IRQ. Use qdev_get_gpio_in() directly like
what is done for other peripherals.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 1591625864-31494-4-git-send-email-bmeng.cn@gmail.com
Message-Id: <1591625864-31494-4-git-send-email-bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/sifive_u.c