Skip to content

Commit

Permalink
android: switch to armv8-a+memtag target ARM architecture
Browse files Browse the repository at this point in the history
this is required for hardened_malloc to work on MTE-enabled devices (currently, 8th and 9th generation Pixels). As PVMFW only supports ARMv8 cores.
ref: https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/tags/android-15.0.0_r1/pvmfw/platform.dts#100
  • Loading branch information
maade93791 committed Sep 9, 2024
1 parent 3f07acf commit 186bb8d
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+memtag"]
},
},
apex_available: [
Expand Down

0 comments on commit 186bb8d

Please sign in to comment.