alignment may overlap the TLB flags
Bug #1868527 reported by
Hansni Bu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
In QEMU-4.2.0, or git-9b26a610936
For example, the alignment: MO_ALIGN_32,
MO_ALIGN_32 = 5 << MO_ASHIFT,
and the TLB flag: TLB_DISCARD_WRITE
#define TLB_DISCARD_WRITE (1 << (TARGET_
then, in the function "get_alignment_
#if defined(
/* The requested alignment cannot overlap the TLB flags. */
tcg_
#endif
However, the alignment of MO_ALIGN_32 is not used for now, so the assert cannot be triggered in current version. Anyway it seems like a potential conflict.
Changed in qemu: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
That is of course completely dependent on the target page size. So, yes, a target with a very small page size cannot use large alignments. The assert makes sure.
Is this comment simply by inspection, or did you have an actual bug to report?