Index: test/cctest/test-assembler-arm64.cc |
diff --git a/test/cctest/test-assembler-arm64.cc b/test/cctest/test-assembler-arm64.cc |
index 26b65ee41d1c47ff72e0d1b3c306a897d03e65d4..25f3adb502da94019ff3565101559016173d9311 100644 |
--- a/test/cctest/test-assembler-arm64.cc |
+++ b/test/cctest/test-assembler-arm64.cc |
@@ -177,7 +177,11 @@ static void InitializeVM() { |
CpuFeatures::Probe(false); |
#define RESET() \ |
- __ Reset(); |
+ __ Reset(); \ |
+ /* Reset the machine state (like simulator.ResetState()). */ \ |
+ __ Msr(NZCV, xzr); \ |
+ __ Msr(FPCR, xzr); |
+ |
#define START_AFTER_RESET() \ |
__ SetStackPointer(csp); \ |