qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* A question regarding TARGET_ALIGNED_ONLY flag
@ 2024-05-19 14:23 Michael Rolnik
  2024-05-19 15:26 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Rolnik @ 2024-05-19 14:23 UTC (permalink / raw)
  To: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

Hi all,

Previously there was *TARGET_ALIGNED_ONLY* option that caused all memory
accessed to be aligned, now it seems to be removed.
Is there a way to achieve memory access alignment with QEMU v9.0.0 when I
am building a custom target?


-- 
Best Regards,
Michael Rolnik

[-- Attachment #2: Type: text/html, Size: 501 bytes --]

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

* Re: A question regarding TARGET_ALIGNED_ONLY flag
  2024-05-19 14:23 A question regarding TARGET_ALIGNED_ONLY flag Michael Rolnik
@ 2024-05-19 15:26 ` Richard Henderson
  2024-05-20  6:19   ` Michael Rolnik
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2024-05-19 15:26 UTC (permalink / raw)
  To: Michael Rolnik, QEMU Developers

On 5/19/24 16:23, Michael Rolnik wrote:
> Hi all,
> 
> Previously there was *TARGET_ALIGNED_ONLY* option that caused all memory accessed to be 
> aligned, now it seems to be removed.
> Is there a way to achieve memory access alignment with QEMU v9.0.0 when I am building a 
> custom target?

Explicitly add MO_ALIGN to the MemOp argument of tcg_gen_qemu_{ld,st}_{i32,i64,i128}.


r~



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

* Re: A question regarding TARGET_ALIGNED_ONLY flag
  2024-05-19 15:26 ` Richard Henderson
@ 2024-05-20  6:19   ` Michael Rolnik
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Rolnik @ 2024-05-20  6:19 UTC (permalink / raw)
  To: Richard Henderson; +Cc: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

Thank you Richard.

On Sun, May 19, 2024 at 6:26 PM Richard Henderson <
richard.henderson@linaro.org> wrote:

> On 5/19/24 16:23, Michael Rolnik wrote:
> > Hi all,
> >
> > Previously there was *TARGET_ALIGNED_ONLY* option that caused all memory
> accessed to be
> > aligned, now it seems to be removed.
> > Is there a way to achieve memory access alignment with QEMU v9.0.0 when
> I am building a
> > custom target?
>
> Explicitly add MO_ALIGN to the MemOp argument of
> tcg_gen_qemu_{ld,st}_{i32,i64,i128}.
>
>
> r~
>
>

-- 
Best Regards,
Michael Rolnik

[-- Attachment #2: Type: text/html, Size: 1025 bytes --]

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

end of thread, other threads:[~2024-05-20  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-19 14:23 A question regarding TARGET_ALIGNED_ONLY flag Michael Rolnik
2024-05-19 15:26 ` Richard Henderson
2024-05-20  6:19   ` Michael Rolnik

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