All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel]  timer configure for QEMU versatilepb
@ 2017-05-09  4:32 heavybird
  2017-05-30 11:44 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: heavybird @ 2017-05-09  4:32 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] timer configure for QEMU versatilepb
  2017-05-09  4:32 [Qemu-devel] timer configure for QEMU versatilepb heavybird
@ 2017-05-30 11:44 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2017-05-30 11:44 UTC (permalink / raw)
  To: heavybird; +Cc: qemu-devel

On 9 May 2017 at 05:32, heavybird <4345099@qq.com> wrote:
> 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.

These devices are not part of the CPU, so it is expected
that they will differ from board to board.

> 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.

The documentation for the hardware board that we model as the
'versatilepb' is this one:
http://infocenter.arm.com/help/topic/com.arm.doc.dui0224i/index.html

thanks
-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-30 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09  4:32 [Qemu-devel] timer configure for QEMU versatilepb heavybird
2017-05-30 11:44 ` Peter Maydell

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.