qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/6] Emulation of GRLIB GPTimer as defined in


From: Fabien Chouteau
Subject: Re: [Qemu-devel] [PATCH v2 1/6] Emulation of GRLIB GPTimer as defined in GRLIB IP Core User's Manual.
Date: Mon, 17 Jan 2011 12:43:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.6

On 01/04/2011 07:46 PM, Blue Swirl wrote:
On Mon, Jan 3, 2011 at 2:07 PM, Fabien Chouteau<address@hidden>  wrote:+}
+static uint32_t grlib_gptimer_readl(void *opaque, target_phys_addr_t addr)
+{
+    GPTimerUnit *unit  = opaque;
+    uint32_t     value = 0;
+
+    addr&= 0xff;

Not needed.


When io-memory starts at 0x8000300 and its size is 48 bytes, Qemu gives me
address like this one (for example):

0x320

But only the last two bytes of the address are significant, that's why I use
this bit-mask.

Maybe I do not initialize io-memory in a proper way...

--
Fabien Chouteau




reply via email to

[Prev in Thread] Current Thread [Next in Thread]