From: Gabriele Galeotti <gabriele.galeotti.xyz@gmail.com>
To: qemu-devel@nongnu.org
Cc: chouteau@adacore.com
Subject: [Qemu-devel] LEON3 timer patch
Date: Thu, 30 Mar 2017 21:30:13 +0200 [thread overview]
Message-ID: <e72bc20d-9da1-255b-bc44-e6e8786799be@gmail.com> (raw)
Hi all.
According to "GR712RC Dual-Core LEON3FT SPARC V8 Processor User’s Manual",
"11.3 Registers", pg 87-88, Table 55 Timer control register, the IP
"interrupt pending"
bit:
Interrupt Pending (IP): The core sets this bit to ‘1’ when an interrupt
is signalled. This bit remains ‘1’
until cleared by writing ‘0’ to this bit.
Thus the code handling should changed so that the pending bit is
mantained when "value" has a 1
in that position.
Signed-off-by: Gabriele Galeotti <gabriele.galeotti.xyz@gmail.com>
---
hw/timer/grlib_gptimer.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/hw/timer/grlib_gptimer.c b/hw/timer/grlib_gptimer.c
index 4ed96e9..c555ae8 100644
--- a/hw/timer/grlib_gptimer.c
+++ b/hw/timer/grlib_gptimer.c
@@ -276,9 +276,6 @@ static void grlib_gptimer_write(void *opaque, hwaddr
addr,
trace_grlib_gptimer_writel(id, addr, value);
.
if (value & GPTIMER_INT_PENDING) {
- /* clear pending bit */
- value &= ~GPTIMER_INT_PENDING;
- } else {
/* keep pending bit */
value |= unit->timers[id].config & GPTIMER_INT_PENDING;
}
--.
2.9.0
next reply other threads:[~2017-03-30 19:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 19:30 Gabriele Galeotti [this message]
2017-04-03 16:56 ` [Qemu-devel] LEON3 timer patch Fabien Chouteau
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=e72bc20d-9da1-255b-bc44-e6e8786799be@gmail.com \
--to=gabriele.galeotti.xyz@gmail.com \
--cc=chouteau@adacore.com \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.