From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Wu, Wentong" <wentong.wu@intel.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
"marex@denx.de" <marex@denx.de>,
"thuth@redhat.com" <thuth@redhat.com>,
"crwulff@gmail.com" <crwulff@gmail.com>
Subject: Re: [PATCH] hw/nios2: Update interrupt request when CR_STATUS_PIE disabled
Date: Fri, 12 Jun 2020 17:31:55 +0200 [thread overview]
Message-ID: <b1396e1a-ed01-2ea4-1ad1-359911d28a31@redhat.com> (raw)
In-Reply-To: <DM5PR11MB1833DA1D82CD4DEAF8DE514F8D810@DM5PR11MB1833.namprd11.prod.outlook.com>
Hi,
On 6/12/20 3:43 PM, Wu, Wentong wrote:
> Hi,
> Can any body help review this patch ? Thanks in advance!
You just sent this patch yesterday... Please give reviewers more time.
See:
https://wiki.qemu.org/Contribute/SubmitAPatch#Participating_in_Code_Review
In particular:
https://wiki.qemu.org/Contribute/SubmitAPatch#If_your_patch_seems_to_have_been_ignored
>
> BR
>
> -----Original Message-----
> From: Wu, Wentong <wentong.wu@intel.com>
> Sent: Thursday, June 11, 2020 4:13 PM
> To: qemu-devel@nongnu.org
> Cc: qemu-trivial@nongnu.org; crwulff@gmail.com; marex@denx.de; thuth@redhat.com; Wu, Wentong <wentong.wu@intel.com>
> Subject: [PATCH] hw/nios2: Update interrupt request when CR_STATUS_PIE disabled
>
> Update interrupt request when external interupt pends for STATUS_PIE disabled. Otherwise on icount enabled nios2 target there will be cpu abort when guest code changes state register with wrctl instruction.
It'd help if you provide more information, what code where you testing,
how you ran QEMU, enough for reviewers to reproduce the issue you had
and test if your patch indeed resolves the issue you described.
Regards,
Phil.
>
> Signed-off-by: Wentong Wu <wentong.wu@intel.com>
> ---
> hw/nios2/cpu_pic.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/nios2/cpu_pic.c b/hw/nios2/cpu_pic.c index 1c1989d5..2abc8fa8 100644
> --- a/hw/nios2/cpu_pic.c
> +++ b/hw/nios2/cpu_pic.c
> @@ -42,6 +42,8 @@ static void nios2_pic_cpu_handler(void *opaque, int irq, int level)
> } else if (!level) {
> env->irq_pending = 0;
> cpu_reset_interrupt(cs, type);
> + } else {
> + cs->interrupt_request |= type;
> }
> } else {
> if (level) {
> --
> 2.21.3
>
>
next prev parent reply other threads:[~2020-06-12 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 8:13 [PATCH] hw/nios2: Update interrupt request when CR_STATUS_PIE disabled wentongw
2020-06-12 13:43 ` Wu, Wentong
2020-06-12 15:31 ` Philippe Mathieu-Daudé [this message]
2020-06-16 15:05 ` Wu, Wentong
2020-06-16 15:39 ` Peter Maydell
2020-06-18 3:08 ` Wu, Wentong
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=b1396e1a-ed01-2ea4-1ad1-359911d28a31@redhat.com \
--to=philmd@redhat.com \
--cc=crwulff@gmail.com \
--cc=marex@denx.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=thuth@redhat.com \
--cc=wentong.wu@intel.com \
/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).