Skip to content

Commit

Permalink
Define values for unallocated prefetch modes
Browse files Browse the repository at this point in the history
The assembler API provides prefetch functions that accept an enumeration for
the prefetch mode, but that relies on C++ undefined behaviour when used with
integer mode specifiers absent from the enumeration. This patch adds those
unallocated values.

Change-Id: I03fce9158deed2dda43ed35e5c6cbc93a4c3f9af
  • Loading branch information
mmc28a committed Sep 23, 2020
1 parent 4c55093 commit 63ceff5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/aarch64/constants-aarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,19 +427,36 @@ enum PrefetchOperation {
PLDL3KEEP = 0x04,
PLDL3STRM = 0x05,

PrfUnallocated06 = 0x06,
PrfUnallocated07 = 0x07,

PLIL1KEEP = 0x08,
PLIL1STRM = 0x09,
PLIL2KEEP = 0x0a,
PLIL2STRM = 0x0b,
PLIL3KEEP = 0x0c,
PLIL3STRM = 0x0d,

PrfUnallocated0e = 0x0e,
PrfUnallocated0f = 0x0f,

PSTL1KEEP = 0x10,
PSTL1STRM = 0x11,
PSTL2KEEP = 0x12,
PSTL2STRM = 0x13,
PSTL3KEEP = 0x14,
PSTL3STRM = 0x15
PSTL3STRM = 0x15,

PrfUnallocated16 = 0x16,
PrfUnallocated17 = 0x17,
PrfUnallocated18 = 0x18,
PrfUnallocated19 = 0x19,
PrfUnallocated1a = 0x1a,
PrfUnallocated1b = 0x1b,
PrfUnallocated1c = 0x1c,
PrfUnallocated1d = 0x1d,
PrfUnallocated1e = 0x1e,
PrfUnallocated1f = 0x1f,
};

constexpr bool IsNamedPrefetchOperation(int op) {
Expand Down

0 comments on commit 63ceff5

Please sign in to comment.