Skip to content

Commit

Permalink
android: use more basic CPU target for memtag
Browse files Browse the repository at this point in the history
This is required for hardened_malloc to work in microdroid on MTE-enabled devices (currently, 8th
and 9th generation Pixels) since PVMFW only supports ARMv8 cores.

https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/tags/android-15.0.0_r1/pvmfw/platform.dts#100
  • Loading branch information
maade93791 authored and thestinger committed Sep 9, 2024
1 parent 3f07acf commit 17be852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ cc_library {
cflags: ["-DLABEL_MEMORY"],
},
device_has_arm_mte: {
cflags: ["-DHAS_ARM_MTE", "-march=armv9-a+memtag"]
cflags: ["-DHAS_ARM_MTE", "-march=armv8-a+dotprod+memtag"]
},
},
apex_available: [
Expand Down

0 comments on commit 17be852

Please sign in to comment.