From: Amir Gonnen <amir.gonnen@neuroblade.ai>
To: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
Chris Wulff <crwulff@gmail.com>, Marek Vasut <marex@denx.de>,
Richard Henderson <richard.henderson@linaro.org>
Cc: Amir Gonnen <amir.gonnen@neuroblade.ai>
Subject: [PATCH v3 0/5] target/nios2: Shadow register set, EIC and VIC
Date: Thu, 3 Mar 2022 17:39:01 +0200 [thread overview]
Message-ID: <20220303153906.2024748-1-amir.gonnen@neuroblade.ai> (raw)
Based-on: 20220227182125.21809-1-richard.henderson@linaro.org
("target/nios2: Rewrite interrupt handling")
Implement nios2 Shadow register set, EIC and VIC.
Currently nios2 on QEMU contains an internal Interrupt Controller.
The nios2 architecture can support a more powerful External Interrupt
Controller (EIC) instead of the internal, and implements special cpu
features to support it: Shadow register set and External Interrupt
Controller Interface.
This patch series introduces the necessary changes to the nios2 cpu to
support an External Interrupt Controller, and includes a Vectored
Interrupt Controller (VIC) device that can be attached to the EIC.
Changes from v2
===============
- Rebase patchest on "target/nios2: Rewrite interrupt handling", which
introduces fixes to nios2 interrupt handling
- Check supervisor on eret as a separate patch
- Check supervisor on rdprs and wrprs
- Use FIELD_EX32 and FIELD_DP32 to access IL, CRS and PRS
- Added a comment on helper_eret
- Compute rdprs and wrprs inline, without helper functions
- Check nios2_take_eic_irq on nios2_cpu_exec_interrupt
- Check regs[CR_IPENDING] instead of env->irq_pending
- Fix Kconfig (remove defaults and depends)
- Added URL to VIC documentaion on Intel website
- Removed LOG_VIC
- Added comments in nios_vic.c
- Report an error in case of write to invalid CSR address
Changes from v1
===============
- Splitted into several independant patches
- Added a board that wires up the VIC
Signed-off-by: Amir Gonnen
Amir Gonnen (5):
target/nios2: Check supervisor on eret
target/nios2: Shadow register set
target/nios2: Exteral Interrupt Controller (EIC)
hw/intc: Vectored Interrupt Controller (VIC)
hw/nios2: Machine with a Vectored Interrupt Controller
hw/intc/Kconfig | 3 +
hw/intc/meson.build | 1 +
hw/intc/nios2_vic.c | 341 ++++++++++++++++++++++++++++++++++++++
hw/nios2/10m50_devboard.c | 64 ++++++-
hw/nios2/Kconfig | 1 +
target/nios2/cpu.c | 55 ++++--
target/nios2/cpu.h | 69 +++++++-
target/nios2/helper.c | 33 +++-
target/nios2/helper.h | 1 +
target/nios2/op_helper.c | 18 ++
target/nios2/translate.c | 66 +++++++-
11 files changed, 621 insertions(+), 31 deletions(-)
create mode 100644 hw/intc/nios2_vic.c
--
2.25.1
next reply other threads:[~2022-03-03 16:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 15:39 Amir Gonnen [this message]
2022-03-03 15:39 ` [PATCH v3 1/5] target/nios2: Check supervisor on eret Amir Gonnen
2022-03-04 12:57 ` Peter Maydell
2022-03-04 20:58 ` Richard Henderson
2022-03-03 15:39 ` [PATCH v3 2/5] target/nios2: Shadow register set Amir Gonnen
2022-03-04 21:45 ` Richard Henderson
2022-03-03 15:39 ` [PATCH v3 3/5] target/nios2: Exteral Interrupt Controller (EIC) Amir Gonnen
2022-03-04 22:25 ` Richard Henderson
2022-03-03 15:39 ` [PATCH v3 4/5] hw/intc: Vectored Interrupt Controller (VIC) Amir Gonnen
2022-03-04 12:55 ` Peter Maydell
2022-03-03 15:39 ` [PATCH v3 5/5] hw/nios2: Machine with a Vectored Interrupt Controller Amir Gonnen
2022-03-04 12:58 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220303153906.2024748-1-amir.gonnen@neuroblade.ai \
--to=amir.gonnen@neuroblade.ai \
--cc=crwulff@gmail.com \
--cc=marex@denx.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).