Use atomic load/store for volatile IGET/IPUT/SGET/SPUT.
Bug: 14112919
Change-Id: I79316f438dd3adea9b2653ffc968af83671ad282
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index 7c0befc..3529c27 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -687,6 +687,12 @@
} else if (feature == "nodiv") {
// Turn off support for divide instruction.
result.SetHasDivideInstruction(false);
+ } else if (feature == "lpae") {
+ // Supports Large Physical Address Extension.
+ result.SetHasLpae(true);
+ } else if (feature == "nolpae") {
+ // Turn off support for Large Physical Address Extension.
+ result.SetHasLpae(false);
} else {
Usage("Unknown instruction set feature: '%s'", feature.c_str());
}