From: heavybird <4345099@qq.com>
To: "Peter Maydell" <peter.maydell@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] timer configure for QEMU versatilepb
Date: Tue, 9 May 2017 12:32:57 +0800 [thread overview]
Message-ID: <tencent_025CFFC03619731459E0872A@qq.com> (raw)
Hi Peter and qemu-devel,
I am trying to port one simple RTOS to QEMU versatilepb, however, i found the SIC address(actually PIC) is different from the PIC in the integratorcp.c even though they are same arm926, besides, the PIC register bit definition is some different between versatilepb and integratorcp compared by the icp_pic_read/icp_pic_read interface.
1 address defferent between versatilepb and integratorcp
versatilepb integratorcp
TIMER_0 adress 0x101e2000 0x13000000
ADDRESS_PIC 0x10003000 0x14000000
i had tried the 2 address above to turn on the timer0 but it is failed with versatilepb, it is ok to turn on the integratorcp timer0 with 0x13000000 timer0 addr and 0x14000000 for PIC.
2 PIC register bit difference after bit8
2.1 intergratorcp definition
case 8: /* FRQ_STATUS */
return s->level & s->fiq_enabled;
case 9: /* FRQ_RAWSTAT */
return s->level;
case 10: /* FRQ_ENABLESET */
return s->fiq_enabled;
case 11: /* FRQ_ENABLECLR */
versatilepb SIC definition
case 8: /* PICENABLE */
return s->pic_enable;
case 9: /* PICENCLR */
s->pic_enable &= ~value;
vpb_sic_update_pic(s);
break;
Could you confirm for me PIC register bit definition and the PIC address/timer0 address in the versatilepb QEMU or where i can find some information exactly.
thanks
jason
next reply other threads:[~2017-05-09 4:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 4:32 heavybird [this message]
2017-05-30 11:44 ` [Qemu-devel] timer configure for QEMU versatilepb 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=tencent_025CFFC03619731459E0872A@qq.com \
--to=4345099@qq.com \
--cc=peter.maydell@linaro.org \
--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 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).