qemu-discuss
[Top][All Lists]
Advanced

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

Re: how to access 64bit register? only lower 32 bits are written in aarc


From: Peter Maydell
Subject: Re: how to access 64bit register? only lower 32 bits are written in aarch64..
Date: Thu, 27 May 2021 11:42:17 +0100

On Thu, 27 May 2021 at 10:57, <ckim@etri.re.kr> wrote:
> And this is the print from the run.
>
>
>
> # size = 4
>
> qemu written ddeeff00 at 1618
>
> # size = 4
>
> read-back : arg = ddeeff00
>
> # size = 4
>
> qemu written 55667788 at 1610
>
> # size = 4
>
> read-back : cmd = 55667788
>
>
>
> I wanted to write two 64-bit values but it’s writing only two 32-bit values. 
> (for the upper 32-bit values, it doesn’t write because the address mismatch – 
> my address are only 8byte aligned) and it’s causing a problem.

Does your device's MemoryRegionOps set the .valid.min_access_size,
.valid.max_access_size, .impl.min_access_size and .impl.max_access_size
appropriately to tell the core code that it should get and can handle
64-bit accesses ?

-- PMM



reply via email to

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