[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/5] hw/nios2: Machine with a Vectored Interrupt Controlle
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 5/5] hw/nios2: Machine with a Vectored Interrupt Controller |
Date: |
Fri, 4 Mar 2022 12:58:59 +0000 |
On Thu, 3 Mar 2022 at 15:39, Amir Gonnen <amir.gonnen@neuroblade.ai> wrote:
>
> Demonstrate how to use nios2 VIC on a machine.
> Introduce a new machine "10m50-ghrd-vic" which is based on "10m50-ghrd"
> with a VIC attached and internal interrupt controller removed.
>
> When VIC is present, irq0 connects the VIC to the cpu, intc_present
> is set to false to disable the internal interrupt controller, and the
> devices on the machine are attached to the VIC (and not directly to cpu).
> To allow VIC update EIC fields, we set the "cpu" property of the VIC
> with a reference to the nios2 cpu.
>
> Signed-off-by: Amir Gonnen <amir.gonnen@neuroblade.ai>
> ---
> hw/nios2/10m50_devboard.c | 64 ++++++++++++++++++++++++++++++++++++---
> hw/nios2/Kconfig | 1 +
> 2 files changed, 61 insertions(+), 4 deletions(-)
My remarks about this from the earlier version of the patchset still
stand:
(1) if this isn't an actual config of the real hardware, then
presumably there aren't any guests which will run on it with the
VIC enabled
(2) if we do want to do this, we should have a machine property
for "vic=true" rather than a complete new machine type
thanks
-- PMM
- [PATCH v3 0/5] target/nios2: Shadow register set, EIC and VIC, Amir Gonnen, 2022/03/03
- [PATCH v3 1/5] target/nios2: Check supervisor on eret, Amir Gonnen, 2022/03/03
- [PATCH v3 3/5] target/nios2: Exteral Interrupt Controller (EIC), Amir Gonnen, 2022/03/03
- [PATCH v3 4/5] hw/intc: Vectored Interrupt Controller (VIC), Amir Gonnen, 2022/03/03
- [PATCH v3 5/5] hw/nios2: Machine with a Vectored Interrupt Controller, Amir Gonnen, 2022/03/03
- Re: [PATCH v3 5/5] hw/nios2: Machine with a Vectored Interrupt Controller,
Peter Maydell <=
- [PATCH v3 2/5] target/nios2: Shadow register set, Amir Gonnen, 2022/03/03