On 01/04/2011 07:46 PM, Blue Swirl wrote:
On Mon, Jan 3, 2011 at 2:07 PM, Fabien Chouteau<chout...@adacore.com> 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